/[papo]/gnue/common/src/GComm.py
ViewVC logotype

Diff of /gnue/common/src/GComm.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by charlie, Tue Aug 27 18:15:51 2002 UTC revision 1.4 by styxman, Fri Nov 15 15:32:54 2002 UTC
# Line 28  Line 28 
28  #  #
29    
30  import GDebug  import GDebug
31  from gnue.common import dyn_import, openResource  from gnue.common.FileUtils import dyn_import, openResource
32    
33    
34  ##############################################################################  ##############################################################################
# Line 223  class UserError(Error): Line 223  class UserError(Error):
223    pass    pass
224    
225    
226    
227    #
228    # Some conversion functions to allow a client to describe the type of
229    # the argument that should be passed instead of autodetection
230    #
231    # i.e. Donutplace.send(base64(photo.jpg))
232    
233    class base64:
234      def __init__(self,value):
235        self._type='base64'
236        self._value=value
237    
238    class binary:
239      def __init__(self,value):
240        self._type='binary'
241        self._value=value
242        
243    class date:
244      def __init__(self,value):
245        self._type='date'
246        self._value=value
247    
248    # value has to be a 6 tuple: ex: datetime(1,1,1,1,1,1)
249    class datetime:
250      def __init__(self,value):
251        self._type='date'
252        self._value=value    
253    
254    class boolean:
255      def __init__(self,value):
256        self._type='boolean'
257        self._value=value
258    
259    class integer:
260      def __init__(self,value):
261        self._type='integer'
262        self._value=value
263    
264    class number:
265      def __init__(self,value):
266        self._type='number'
267        self._value=value
268    
269    class string:
270      def __init__(self,value):
271        self._type='string'
272        self._value=value
273    
274    class none:
275      def __init__(self,value):
276        self._type='none'
277        self._value=value

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26