Changeset 823 for vanHelsing/trunk/src/resource.py
- Timestamp:
- Feb 12, 2010, 2:50:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/src/resource.py
r816 r823 83 83 return None 84 84 85 def getByName(self,name ):85 def getByName(self,name,type=None): 86 86 result=[] 87 if self.getName()==name :87 if self.getName()==name and (type==None or self.type==type): 88 88 result.append(self) 89 89 for i in self.items: 90 r=i.getByName(name )90 r=i.getByName(name,type) 91 91 if len(r)!=0: 92 92 for a in r:
Note:
See TracChangeset
for help on using the changeset viewer.