217 |
return "" |
return "" |
218 |
|
|
219 |
# |
# |
220 |
|
# __str__ |
221 |
|
# |
222 |
|
# This executes at a different level than the __setattr__ |
223 |
|
# While __setattr__ is executed in the parent object to protect |
224 |
|
# it's namespace object links, this routine is called by the |
225 |
|
# object referenced |
226 |
|
# |
227 |
|
# Example: foo = int(form.block1.entry1) |
228 |
|
# |
229 |
|
# This __int__ would execute against the entry1 object |
230 |
|
# |
231 |
|
def __int__(self): |
232 |
|
if self._triggerGet: |
233 |
|
return int(self._triggerGet()) |
234 |
|
else: |
235 |
|
return 0 |
236 |
|
|
237 |
|
# |
238 |
# __cmp__ |
# __cmp__ |
239 |
# |
# |
240 |
# Forces the system to compare the string values of |
# Forces the system to compare the string values of |