daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest May 31st, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class IFaxLine(IStormContainer):
  2.     """Interface for FaxLine objects"""
  3.  
  4.     username = schema.TextLine(
  5.         title=_('Username'),
  6.         max_length=255,
  7.         required=True,
  8.     )
  9.    
  10.     faxnumber = schema.Object(
  11.         factory="FaxNumber",
  12.         order_by='number',
  13.         token='number',
  14.         title=_('FaxNumber'),
  15.         required=True,
  16.     )
  17.    
  18.     password = schema.TextLine(
  19.         title=_('Password'),
  20.         max_length=255,
  21.         required=True,
  22.     )
  23.    
  24.     delivery_email = schema.TextLine(
  25.         title=_('delivery email'),
  26.         constraint=re.compile("([a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*"
  27.             "@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)(,(\s)*[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*"
  28.             "@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*$").match,
  29.         required=True,
  30.     )
  31.    
  32.     delivery_name = schema.TextLine(
  33.         title=_('delivery name'),
  34.         required=False,
  35.     )
  36.    
  37.     sent_fax = schema.Int(
  38.         title=_('Number sent faxes'),
  39.         required=True,
  40.     )
  41.    
  42.     status = schema.TextLine(
  43.         title=_('Line Status'),
  44.         required=True,
  45.     )
  46.    
  47.     salelist = schema.Object(
  48.         factory="List",
  49.         order_by='description',
  50.         token='description',
  51.         title=_('List'),
  52.         required=True,
  53.     )
  54.    
  55.     department = schema.Object(
  56.         factory="Department",
  57.         order_by='description',
  58.         token='description',
  59.         title=_('Department'),
  60.         required=True,
  61.     )
  62.    
  63.     security = schema.ExtjsBool(
  64.         title=_('Security'),
  65.         required=True,
  66.         default=True,
  67.     )
  68.  
  69.     faxdetailrecords = Attribute(u'Fdrs')
  70.    
  71.     senderemails = Attribute(u'SenderMail')
  72.    
  73.     #serviceslines = Attribute(u'ServiceLine')
  74.    
  75.     #flatratestatus = Attribute(u'FlatrateStatus')
  76.    
  77.     account = Attribute(u'Account')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top