Changeset 243
- Timestamp:
- 07/16/10 14:25:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PBSQuery.py
r242 r243 351 351 352 352 def __getattr__(self, name): 353 """ 354 override the class attribute get method. Return the value 355 from the Userdict 356 """ 353 357 try: 354 358 return self.data[name] … … 356 360 error = 'Attribute key error: %s' %(name) 357 361 raise PBSError(error) 362 363 ## Disabled for this moment, BvdV 16 July 2010 364 # 365 #def __setattr__(self, name, value): 366 # """ 367 # override the class attribute set method only when the UserDict 368 # has set its class attribute 369 # """ 370 # if self.__dict__.has_key('data'): 371 # self.data[name] = value 372 # else: 373 # self.__dict__[name] = value 358 374 359 375 def __iter__(self):
Note: See TracChangeset
for help on using the changeset viewer.