1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122
|
2010-01-06 Tim Waugh <twaugh@redhat.com>
* cupsipp.c (IPPRequest_getAttributes): Continue to next
attribute if we can't translate a value.
2010-01-04 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_cancelJob): Optional second
argument is now a keyword.
2009-12-22 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_init): Use more descriptive
exception message (trac #10).
2009-12-21 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (cups_setPasswordCB2): Allow None.
2009-12-18 Jiri Popelka <jpopelka@redhat.com>
* cupsconnection.c (Connection.cancelJob):
Added optional purge_job patameter.
2009-12-16 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (password_callback,
Connection_setPasswordCB): New method.
2009-12-08 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printFile): If cupsPrintFile2()
fails it returns zero, not -1 (trac #9).
2009-09-03 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDevices): Added optional timeout
parameter.
2009-08-18 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c: Define some IPP attribute tag constants.
* cupsipp.c (IPPRequest_getAttributes): Handle IPP_TAG_ZERO
attributes which have no attribute name.
2009-08-17 Tim Waugh <twaugh@redhat.com>
* cupsipp.c: New file implementing IPPRequest and IPPAttribute
types.
* setup.py: Include it as part of the module.
* Makefile: Add to SOURCES.
* cupsmodule.c: Define IPP constants.
2009-08-10 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c: Fixed missing newline in documentation for
getPPDs.
2009-07-07 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_moveJob): New method.
2009-06-19 Tim Waugh <twaugh@redhat.com>
* examples/cupstree.py (getippqueue): IPP printers won't support
CUPS-Get-Printers so don't try recursing.
(getqueue): Slightly prettier display.
2009-06-18 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.46.
2009-06-18 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (do_model_compare): Handle wide characters.
(cups_modelSort): Coersce arguments to Unicode and convert them to
wide character strings (trac #8).
2009-06-18 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDevices): Removed unused
variable.
2009-04-14 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (cups_ppdSetConformance): New method (trac #3).
2009-03-20 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDevices): New optional arguments
limit, exclude_schemes and include_schemes.
2009-03-18 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPPDs): New optional arguments
limit, exclude_schemes, include_schemes, ppd_device_id, ppd_make,
ppd_make_and_model, ppd_model_number, ppd_product, ppd_psversion,
ppd_type and ppd_natural_language (trac #5).
2009-03-10 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): The marker-*
attributes are lists.
2009-01-08 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.45.
2008-12-23 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getServerPPD): Fixed version
check.
(Connection_getDocument): Likewise.
* cupsmodule.c (initcups): Likewise.
2008-12-23 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (PPD_localizeIPPReason): New method.
(PPD_localizeMarkerName): Likewise.
2008-12-17 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): Look for
"testprint" as well as "testprint.ps", as that is the name of the
test page file in CUPS 1.4 (bug #476612).
2008-12-17 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): Only set a
document-format attribute if one is specified.
2008-12-17 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): Avoid crash when
given bad parameters.
2008-11-28 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.44.
2008-11-25 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getFile): Save thread state during
call.
(Connection_putFile): Likewise.
(Connection_getDests): Likewise.
(Connection_getDefault): Likewise.
(Connection_getPPD): Likewise.
(Connection_printFile): Likewise.
(Connection_printFiles): Likewise.
2008-11-24 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_adminGetServerSettings): Save
thread state during call.
(Connection_adminSetServerSettings): Likewise.
2008-11-21 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.43.
2008-11-13 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_begin_allow_threads,
Connection_end_allow_threads): Fix these functions so they
actually work.
2008-11-13 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobs): Set printer-uri
attribute instead of job-uri attribute.
2008-11-12 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection): Store thread state in Connection
data.
(Connection_begin_allow_threads): Save current thread state.
(Connection_end_allow_threads): Restore current thread state.
(Connection_init): Use new functions.
(Connection_getPPDs): Likewise.
(Connection_getServerPPD): Likewise.
(Connection_getDocument): Likewise.
(Connection_getDevices): Likewise.
2008-08-28 Tim Waugh <tim@localhost.localdomain>
* cupsconnection.c (Connection_methods): Documentation fix for
getJobAttributes.
2008-08-28 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobAttributes): New parameter
requested_attributes.
2008-08-28 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (get_requested_attrs): New function for
extracting requested attributes from list.
(free_requested_attrs): Deallocate memory.
(Connection_getPrinterAttributes): Use get/free_requested_attrs.
2008-08-22 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobs): Support limit and
first-job-id attributes (trac #1).
2008-07-15 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPPDs): Return all attributes,
not just a selection.
2008-07-14 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.41.
2008-07-14 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_putFile): Allow destination to be a
file descriptor or a Python file object, and call cupsPutFd() in
those cases.
2008-07-09 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): Fixed
requested_attributes parameter.
2008-06-20 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.40.
2008-06-20 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (Attribute_repr): New method.
(cups_AttributeType): Set repr function.
* cupsppd.c (Group_repr): New method.
(cups_GroupType): Set repr function.
* cupsppd.c (Option_repr): New method.
(cups_OptionType): Set repr function.
* cupsconnection.c (Dest_repr): New method.
(cups_DestType): Set repr function.
* cupsconnection.c (Connection): New structure member, host.
(Connection_init): Store connected host name.
(Connection_dealloc): Free it.
(Connection_repr): New method. Include host name in repr string.
(cups_ConnectionType): Set repr function.
* cupsconnection.c (Connection_init): New optional arguments host,
port, and encryption.
2008-06-17 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): Enum-type
attributes may be lists.
2008-05-30 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): New
optional requested_attributes argument.
2008-05-29 Tim Waugh <twaugh@redhat.com>
* configure.in: Version 1.9.39.
2008-05-29 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_authenticateJob): Allow auth
parameter to be optional in order to allow for Kerberos
authentication.
2008-05-27 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (free_string_list): New helper function.
(Connection_printFiles): New method.
Patch from Fabian Knittel.
* cupsconnection.c (Connection_printFile): New method. Patch from
Fabian Knittel.
2008-04-09 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): Test for existence
of testprint.ps before performing operation, and look around for
it if necessary.
2008-04-03 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.38.
2008-04-03 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDocument): Fixed missing
argument to snprintf.
2008-04-01 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getFile): Allow destination to be a
file descriptor or a Python file object, and call cupsGetFd() in
those cases.
2008-03-17 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.37.
2008-03-15 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): Prevent
memory leak.
(Connection_getNotifications): Likewise.
(Dest_getOptions): Likewise.
2008-03-14 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): Add CUPS_PRINTER_DISCOVERED constant.
2008-03-12 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_authenticateJob): New method.
2008-03-10 Tim Waugh <twaugh@redhat.com>
* Makefile (PYTHONVERS): Removed.
2008-03-05 Norm Jacobs <Norm.Jacobs@Sun.COM>
* cupsppd.c (getline): emulate getline() for systems without it.
(PPD_writeFd): replace strndup with calloc/strncpy for portability.
* cupsconnection.c (Connection_getDocument): generate tempfile template
with snprintf instead of alloc, copy, copy.
(Connection_addPrinter): generate tempfile template with snprintf
instead of strpcpy, strcpy.
(PyObject_to_String): avoid using alloca() by declaring a buffer at
the top of the function.
(Connection_getServerPPD): test for CUPS version using cups.h supplied
values.
(Connection_getDocument): test for CUPS version using cups.h supplied
values.
* cupsmodule.c: test for CUPS version using cups.h supplied values.
2008-03-05 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.36.
2008-03-01 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_renewSubscription): New optional
parameter lease_duration.
2008-02-28 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getNotifications): State reasons
are always a list.
(Connection_getJobAttributes): Likewise.
2008-02-19 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.35.
2008-02-19 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobAttributes): New method.
2008-02-07 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_cancelAllJobs): New method.
(Connection_getPrinterAttributes): Don't free name string before
use.
(Connection_getPrinterAttributes): Construct the URI in the
correct buffer.
(Connection_printTestPage): Avoid compiler warning.
2008-02-06 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): The
printer-state-reasons attribute is always a list.
2008-02-04 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.34.
2008-02-04 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getNotifications): Pass through the
sequence numbers.
2008-01-29 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): Don't default to
user guest.
2008-01-23 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.33.
2008-01-23 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_cancelJob): Revert back to using
job-uri since it is a required attribute.
2008-01-02 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_setJobHoldUntil): Fixed typo
(Ubuntu #179520).
2007-12-17 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.32.
2007-12-14 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinter): Don't deallocate
the Python objects that are our arguments.
2007-12-11 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (Option_getChoices): Don't leak Unicode objects.
(Option_getChoices): Add 'marked' attribute, based on patch by
Romain Jacquet.
2007-11-30 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (do_printer_request): Fixed debugging output.
2007-11-27 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_cancelJob): Use job-id instead of
job-uri.
(Connection_getPrinterAttributes): New uri keyword to allow
non-CUPS URIs.
2007-11-22 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): Fixed
job-sheets-default tuple.
2007-11-22 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.31.
2007-11-22 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDocument): New method.
* cupsmodule.h: Check for CUPS 1.4.
2007-11-21 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDefault): New method.
* cupsmodule.c (cups_require): Don't read uninitialised memory.
* cupsconnection.c (Connection_printTestPage): Don't use
uninitialised variables (bug #390431).
2007-11-19 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.30.
2007-11-19 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinter): Fixed typo.
(Connection_addPrinter): Fixed double-free.
(Connection_getDests): Handle there being no default printer.
2007-11-15 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.29.
2007-11-15 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDests): Don't leak each
destobj.
(build_list_from_attribute_strings): Don't leak each string
object.
(Connection_getPrinters): Don't leak each dict.
(Connection_getClasses): Don't leak each members list.
(Connection_getPPDs): Don't leak each dict.
(Connection_getDevices): Likewise.
(Connection_addPrinter): Don't leak converted strings.
(Connection_getPrinterAttributes): Removed unused code.
(Connection_adminGetServerSettings): Don't leak each setting
value.
(Connection_getSubscriptions): Don't leak each value and
subscription.
(Connection_getNotifications): Don't leak each value, event and
item.
2007-11-14 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (PyObj_from_UTF8): New function. Used in lots
of places where text attributes are decoded (part of bug #382291).
(UTF8_from_PyObj): New function. Used in lots of places where
text attributes are given in a request (rest of bug #382291).
2007-10-15 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.28.
2007-10-15 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getDests): Add a (None,None) entry
for the default printer.
2007-09-19 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.27.
2007-09-19 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (PyObject_from_attr_value): IPP_TAG_NOVALUE
tags are now handled, and are translated as None.
2007-09-12 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c: Missed some doc strings.
2007-09-12 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.26.
2007-09-12 Tim Waugh <twaugh@redhat.com>
* cupsppd.c: Better doc strings throughout.
2007-09-11 Tim Waugh <twaugh@redhat.com>
* cupsppd.c: Start of better doc strings for PPD functions.
2007-09-07 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c: Better doc strings throughout.
2007-09-06 Tim Waugh <twaugh@redhat.com>
* Makefile (doc): New rule.
* cupsconnection.c: Start of better documentation.
2007-08-30 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.25.
2007-08-30 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_adminGetServerSettings): Fix
compilation with CUPS 1.3.
(Connection_adminSetServerSettings): Likewise.
* Makefile: Removed 'tag' target, updated 'dist' target for svn.
* cupsconnection.c (Connection_getServerPPD): New method.
* cupsmodule.c (initcups): Define CUPS_SERVER_REMOTE_ANY.
* cupsmodule.h: Check for CUPS 1.3.
2007-07-06 Tim Waugh <twaugh@redhat.com>
* cupsppd.c: Better docstring for PPD.markOption.
2007-06-08 Tim Waugh <twaugh@redhat.com>
* Makefile: Ship examples directory correctly.
2007-06-08 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.24.
2007-06-08 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_adminSetServerSettings): In Python
2.5, PyDict_Next() uses a ssize_t-like type for the position, not
int (bug #239805).
* cupsconnection.c (Connection_getClasses): Fixed typo in
debugging output.
2007-06-07 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.23.
2007-06-07 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_adminSetServerSettings): Debug
output.
* cupsppd.c (cautious_PyUnicode_DecodeUTF8): New function to
safe-guard against supposed UTF-8 strings that are incorrect (bug
#242962).
2007-05-18 Tim Waugh <twaugh@redhat.com>
* examples/cupstree.py: New file.
2007-05-17 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (cups_require): New method.
* Makefile: Build with VERSION set.
2007-05-17 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.22.
2007-05-16 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPPDs): Allow threads during
cupsDoRequest.
(Connection_getDevices): Likewise.
2007-05-04 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): New optional
parameters in order to perform maintenance functions.
2007-04-16 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.21.
2007-04-11 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getSubscriptions): New method.
(Connection_createSubscription): New method.
(Connection_getNotifications): New method.
(Connection_renewSubscription): New method.
(Connection_cancelSubscription): New method.
2007-04-10 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): CUPS_PRINTER_COMMANDS.
2007-04-04 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.20.
2007-04-04 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinters): printer-state-reasons
is a list.
2007-03-27 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.19.
2007-03-27 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): Job state constants.
2007-03-18 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.18.
2007-03-18 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobs): Include job-state
attribute.
(Connection_getJobs): Include job-preserved attribute.
(Connection_getJobs): Include time-at-creation, time-at-processing
and time-at-completed attributes.
(Connection_getJobs): Include job-media-sheets and
job-media-sheets-completed attributes.
(Connection_getJobs): New optional parameters 'which_jobs' and
'my_jobs'.
(Connection_setJobHoldUntil): New method.
(Connection_restartJob): New Method.
2007-01-03 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.17.
2007-01-03 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (ppd_encoding_is_utf8): Handle there being no known
encoding for the PPD file (bug #220136).
2006-12-15 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (PPD_localize): New method.
2006-12-07 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.16.
2006-12-07 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinters): Include
printer-state-reasons attribute.
2006-11-30 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinters): Include
printer-state-message attribute.
(do_printer_request): Set printer-state-message if reason given.
(Connection_methods): Updated help strings.
(Connection_adminSetServerSettings): Fixed small memory leak.
(Connection_init): More debug.
(Connection_dealloc): Likewise.
(do_printer_request): Likewise.
(Connection_getDests): Likewise.
(Connection_getPrinters): Likewise.
(set_http_error): Likewise.
(set_ipp_error): Likewise.
(build_list_from_attribute_strings): Likewise.
(Connection_getClasses): Likewise.
(Connection_getPPDs): Likewise.
(Connection_getDevices): Likewise.
(Connection_getJobs): Likewise.
(Connection_getFile): Likewise.
(Connection_putFile): Likewise.
2006-11-29 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobs): Include job-priority
attribute.
2006-11-10 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.15.
2006-11-10 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getJobs): New method.
(Connection_cancelJob): New method.
2006-11-02 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.14.
2006-11-02 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (Option_getChoices): Handle enum values already set
outside the range (bug #213136).
2006-10-24 Tim Waugh <twaugh@redhat.com>
* cupsmodule.h: Removed bit-rotten CUPS 1.1.x compatibility code.
2006-10-02 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.13.
2006-10-02 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): Export HTTP_FORBIDDEN as well.
2006-07-05 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.12.
2006-07-05 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinterOptionDefault): Send
strings as strings, not character sequences.
2006-05-25 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.11.
2006-05-25 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): Selected HTTP status codes.
2006-05-16 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (PPD_writeFd): Follow upstream behaviour for
PaperDimension and ImageableArea (see STR #1689).
2006-05-15 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.10.
2006-05-15 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinter): Put debug messages
in.
* cupsmodule.c (debugprintf): Implemented.
* cupsmodule.h: Declare debugprintf().
2006-05-05 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getClasses): Handle IPP_NOT_FOUND,
which is returned when there are no classes.
(Connection_getPrinterAttributes): 'finishings-supported' is a
list.
(Connection_addPrinterOptionDefault): Prevent buffer overrun.
2006-05-04 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.9.
2006-05-04 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): Make
'requesting-user-name-*' attributes lists.
(Connection_getPrinters): Handle IPP_NOT_FOUND, which is returned
when there are no queues.
2006-05-03 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): IPP finishings.
* cupsconnection.c (Connection_getPrinterAttributes): Multi-valued
network default options should appear as lists.
2006-04-21 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinterOptionDefault): Support
lists as values.
2006-04-19 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.8.
2006-04-19 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): String constants from adminutil.h.
* cupsconnection.c (Connection_addPrinterOptionDefault): Handle
different types for the value.
(Connection_adminGetServerSettings): Implemented.
(Connection_adminSetServerSettings): Implemented.
2006-04-15 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.7.
2006-04-15 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPrinterAttributes): Fetch all of
the printer attributes, not just a named selection.
(Connection_deletePrinterOptionDefault): Implemented.
2006-04-14 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Dest_new): cups.Dest type.
(Connection_getDests): Use cups.Dest type.
(Dest_getName): New method.
(Dest_getInstance): New method.
2006-04-13 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_setPrinterOptionDefault):
Implemented.
(Connection_getDests): Implemented.
2006-04-07 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_init): Allow threads during
httpConnectEncrypt().
2006-04-04 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.6.
2006-04-03 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPPD): Better exception when
cupsGetPPD2() fails.
2006-03-28 Tim Waugh <twaugh@redhat.com>
* cupsppd.c, cupsppd.h, cupsmodule.c: Added Attribute object,
and PPD.attributes attribute.
(PPD_findAttr): Implemented.
(PPD_findNextAttr): Implemented.
2006-03-24 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.5.
2006-03-23 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_printTestPage): Implemented.
(Connection_getPPDs): Handle broken UTF-8 strings, since CUPS
1.1.x doesn't transcode PPD strings for CUPS_GET_PPDS.
(Connection_printTestPage): Return job ID.
2006-03-22 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPPDs): Include ppd-make
attribute.
(Connection_getPPDs): Use Unicode objects for any string that
comes from a PPD file.
* cupsmodule.c (do_model_compare): Fix comparisons where one
string is a substring of the other.
2006-03-20 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_setPrinterShared): Handle classes.
(Connection_setPrinterJobSheets): Likewise.
(Connection_setPrinterErrorPolicy): Likewise.
(Connection_setPrinterOpPolicy): Likewise.
(do_requesting_user_names): Likewise.
(Connection_getPrinterAttributes): Likewise.
2006-03-17 Tim Waugh <twaugh@redhat.com>
* cupsmodule.c (initcups): Added IPP_MAX_NAME.
2006-03-17 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.4.
2006-03-16 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinter): Initialise local ppd
variable.
(docstrings): Better doc strings for addPrinterToClass and
deletePrinterFromClass.
(Connection_deleteClass): Implemented.
(Connection_setPrinterInfo): Handle classes.
(Connection_setPrinterLocation): Handle classes.
2006-03-14 Tim Waugh <twaugh@redhat.com>
* Makefile: Support DESTDIR.
2006-03-14 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_disablePrinter): Use
IPP_PAUSE_PRINTER.
(Connection_enablePrinter): Use IPP_RESUME_PRINTER.
(Connection_setPrinterJobSheets): Fixed typo.
2006-03-10 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.3.
2006-03-10 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_setPrinterShared): Renamed.
(Connection_getPrinterAttributes): Find
requesting-user-name-allowed and requesting-user-name-denied
attributes.
(Connection_setPrinterUsersAllowed): Implemented.
(Connection_setPrinterUsersDenied): Implemented.
2006-03-09 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getClasses): Handle empty classes.
* cupsmodule.c (initcups): Always define CUPS 1.2.x CUPS_PRINTER_*
constants.
* cupsmodule.h (CUPS_PRINTER_*): More CUPS 1.1.x compatibility
stuff.
2006-03-08 Tim Waugh <twaugh@redhat.com>
* cupsppd.c (PPD_init): Handle fopen failure.
(utf8_to_ppd_encoding): Nul-terminate the string.
(Option_getseters) Better docstring for conflicted attribute.
2006-03-07 Tim Waugh <twaugh@redhat.com>
* cupsppd.h (PPD struct): New members for encoding conversion.
* cupsppd.c (PPD_new): Initialise encoding conversion members in
PPD struct.
(PPD_init): Likewise.
(PPD_dealloc): Deallocate encoding conversion handles.
(ppd_encoding_is_utf8): New function.
(make_PyUnicode_from_ppd_string): New function.
(utf8_to_ppd_encoding): New function.
(Option_getKeyword): Convert to Unicode.
(Option_getDefchoice): Likewise.
(Option_getText): Likewise.
(Option_getChoices): Likewise.
(Group_getText): Likewise.
(Group_getName): Likewise.
(Constraint_getOption1): Likewise.
(Constraint_getChoice1): Likewise.
(Constraint_getOption2): Likewise.
(Constraint_getChoice2): Likewise.
(PPD_markOption): Convert to PPD encoding.
2006-03-03 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.2.
2006-03-03 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (do_printer_request): Watch out for exceptions
from the password callback.
(Connection_addPrinter): Likewise.
(Connection_setPrinterDevice): Likewise.
(Connection_setPrinterInfo): Likewise.
(Connection_setPrinterLocation): Likewise.
(Connection_setPrinterPublished): Likewise.
(Connection_setPrinterJobSheets): Likewise.
(Connection_setPrinterErrorPolicy): Likewise.
(Connection_setPrinterOpPolicy): Likewise.
(Connection_addPrinterToClass): Likewise.
(Connection_deletePrinterFromClass): Likewise.
2006-03-01 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (set_ipp_error): Use ippErrorString().
(Connection_getPrinters): Fixed typo.
* cupsmodule.c (initcups): IPP error codes.
* cupsppd.c (PPD_writeFd): Treat PageRegion specially, like CUPS
does.
(nondefaults_are_marked): New function.
(PPD_nondefaultsMarked): Implemented.
2006-02-27 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_setPrinterInfo): Use IPP_TAG_TEXT
here.
(Connection_setPrinterLocation): Likewise.
(get_printer_attributes_request): Removed.
* cupsconnection.c (do_printer_request): Use ippNewRequest().
(Connection_getPrinters): Likewise.
(Connection_getClasses): Likewise.
(Connection_getPPDs): Likewise.
(add_modify_printer_request): Likewise.
(Connection_addPrinterToClass): Likewise.
(Connection_deletePrinterFromClass): Likewise.
* cupsmodule.h (ippNewRequest): Implemented, for compatibility
with CUPS 1.1.x.
* cupsconnection.c (get_printer_attributes_request): New function.
(build_list_from_attribute_strings): New function.
(Connection_getPrinterAttributes): Implemented.
(Connection_setPrinterJobSheets): Implemented.
(Connection_setPrinterErrorPolicy): Implemented.
(Connection_setPrinterOpPolicy): Implemented.
(Connection_getClasses): Use build_list_from_attribute_strings().
2006-02-23 Tim Waugh <twaugh@redhat.com>
* Makefile: Better 'dist' target.
2006-02-23 Tim Waugh <twaugh@redhat.com>
* Makefile: Version 1.9.1.
2006-02-23 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_setPrinterPublished): Implemented.
(Connection_getPrinters): Add 'printer-is-shared' Boolean into
requested attributes.
* cupsmodule.c (cups_getUser): Implemented.
(cups_getServer): Implemented.
(cups_getPort): Implemented.
(cups_getEncryption): Implemented.
* cupsppd.h (PPD): Moved this here from..
* cupsppd.c: ..here.
(PPD_writeFd): No longer static.
(PPD_findOption): Implemented.
* cupsconnection.c (Connection_addPrinter): Accept 'ppd' keyword,
for cups.PPD object.
* cupsppd.c (PPD_init): Open handle to PPD file.
(PPD_dealloc): Close it.
(PPD_writeFd): Implemented.
* cupsmodule.c (cups_setPort): Implemented.
2006-02-22 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_addPrinterToClass): Implemented.
(Connection_deletePrinterFromClass): Implemented.
(Connection_addPrinter): Added 'info', 'location', and 'device'
keywords.
(add_modify_printer_request): New utility function.
(Connection_setPrinterInfo): Implemented.
(Connection_setPrinterLocation): Implemented.
(Connection_getClasses): Implemented.
* cupsmodule.c (initcups): Added printer states constants.
* cupsconnection.c: More consistent error handling.
(do_printer_request): Fixed ipp_t leak.
(Connection_addPrinter): Likewise.
(Connection_setPrinterDevice): Likewise.
(set_ipp_error): Make use of cupsLastErrorString conditional on
CUPS 1.2.
* cupsconnection.c (Connection_putFile): Fixed ipp_t leak.
(set_ipp_error): "i" -> "(is)" for IPPError.
* cupsmodule.h: New file.
* cupsconnection.c (Connection_getDevices): Implemented.
2006-02-21 Tim Waugh <twaugh@redhat.com>
* cupsconnection.c (Connection_getPPDs): Implemented.
* cupsppd.c (Group_getOptions): Return a list, not a dict, to
preserve the order of options.
* test.py (test_cups_module): Updated.
* cupsconnection.c (Connection_addPrinter): Allow adding a printer
from a ppd-name instead of a filename.
* cupsconnection.c (Connection_getFile): Fixed ipp_t leak.
* cupsppd.c (PPD_getOptionGroups): Make this an attribute not a
method.
* test.py (test_cups_module): Updated.
* cupsppd.c: Implement 'Constraint' type.
* cupsppd.h: Declare cups_ConstraintType.
* cupsmodule.c (initcups): Add 'Constraint' type.
* cupsconnection.c (Connection_getPrinters): Do this inline
instead of in a separate function.
|