[Subversion] / PyDicia / pydicia.py  

Diff of /PyDicia/pydicia.py

Parent Directory | Revision Log

version 2507, Wed Mar 5 16:52:09 2008 UTC version 2696, Thu Apr 14 21:18:07 2011 UTC
Line 20 
Line 20 
     'Postcard', 'Envelope', 'Flat', 'RectangularParcel',      'Postcard', 'Envelope', 'Flat', 'RectangularParcel',
     'NonRectangularParcel', 'FlatRateEnvelope', 'FlatRateBox',      'NonRectangularParcel', 'FlatRateEnvelope', 'FlatRateBox',
     'FlatRateLargeBox', 'ToAddress', 'ReturnAddress', 'RubberStamp',      'FlatRateLargeBox', 'ToAddress', 'ReturnAddress', 'RubberStamp',
       'FlatRateSmallBox', 'FlatRatePaddedEnvelope',
     # ...and many more symbols added dynamically!      # ...and many more symbols added dynamically!
 ]  ]
   
Line 38 
Line 39 
         yield ob          yield ob
   
   
   
 class Package:  class Package:
     """The XML for a single package/label"""      """The XML for a single package/label"""
     finished = False      finished = False
Line 442 
Line 442 
 FlatRateEnvelope     = PackageType('FLATRATEENVELOPE')  FlatRateEnvelope     = PackageType('FLATRATEENVELOPE')
 FlatRateBox          = PackageType('FLATRATEBOX')  FlatRateBox          = PackageType('FLATRATEBOX')
 FlatRateLargeBox     = PackageType('FLATRATELARGEBOX')  FlatRateLargeBox     = PackageType('FLATRATELARGEBOX')
   FlatRateSmallBox     = PackageType('FLATRATESMALLBOX')
   FlatRatePaddedEnvelope = PackageType('FLATRATEPADDEDENVELOPE')
   
   
   
   
   
 try:  try:
     from _winreg import HKEY_CURRENT_USER, HKEY_CLASSES_ROOT      from _winreg import HKEY_CURRENT_USER, HKEY_CLASSES_ROOT
Line 474 
Line 480 
     exe_path = _get_registry_string(      exe_path = _get_registry_string(
         HKEY_CLASSES_ROOT, 'lytfile\\shell\\open\\command'          HKEY_CLASSES_ROOT, 'lytfile\\shell\\open\\command'
     )      )
   
     #@staticmethod      #@staticmethod
     def get_preference(prefname):      def get_preference(prefname):
         return _get_registry_string(          return _get_registry_string(
             HKEY_CURRENT_USER,              HKEY_CURRENT_USER,
             'Software\\Envelope Manager\\dazzle\\Preferences', prefname              'Software\\Envelope Manager\\dazzle\\Preferences', prefname
         )          )
   
     XMLDirectory = get_preference('XMLDirectory')      XMLDirectory = get_preference('XMLDirectory')
     LayoutDirectory = get_preference('LayoutDirectory')      LayoutDirectory = get_preference('LayoutDirectory')
   
     get_preference = staticmethod(get_preference)      get_preference = staticmethod(get_preference)
   
   
   
   
     @staticmethod      @staticmethod
     def run(args=(), sync=True):      def run(args=(), sync=True):
         """Start DAZzle with arguments, returning a process or return code"""          """Start DAZzle with arguments, returning a process or return code"""
Line 512 
Line 512 
     Express    = MailClass('EXPRESS')      Express    = MailClass('EXPRESS')
     PresortedFirstClass = MailClass('PRESORTEDFIRST')      PresortedFirstClass = MailClass('PRESORTEDFIRST')
     PresortedStandard   = MailClass('PRESORTEDSTANDARD')      PresortedStandard   = MailClass('PRESORTEDSTANDARD')
       ParcelSelect = MailClass('PARCELSELECT')
   
 class International:  class International:
     FirstClass = MailClass('INTLFIRST')      FirstClass = MailClass('INTLFIRST')
Line 530 
Line 531 
 Today = DateAdvance(0)  Today = DateAdvance(0)
 Tomorrow = DateAdvance(1)  Tomorrow = DateAdvance(1)
   
   
 class Customs:  class Customs:
     _make_symbols(      _make_symbols(
         locals(), 'value', "NONE GEM CN22 CP72".split(), CustomsFormType          locals(), 'value', "NONE GEM CN22 CP72".split(), CustomsFormType


Generate output suitable for use with a patch program
Legend:
Removed from v.2507  
changed lines
  Added in v.2696

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help