Not quite sure what the real problem you are facing is, but if all you
want to do is call the 'send' method without instantiating your class,
can you use the @staticmethod (or perhaps @classmethod) decorator?
e.g.
class SyslogPoll2(SQLObject):
@staticmethod
def send(data):
print data
I don't think you want to be overriding sqlobject's __init__
(http://www.sqlobject.org/SQLObject.html#initializing-the-objects),
apparently that is Very Bad.
If you want to do some introspection of the class to know what the
class needs to initialize, you should be able to get everything you
need out of SyslogPoll2.sqlmeta.columns attribute.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---