Zugriff von einem Utility auf die Datenbank

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <CADmZVq-xh46XP_3tPPv-_WsUpoOv8O2XxBRLpsP+r1DTv6zxsg@mail.gmail.com>
Hallo,

wie kann ich von einem Utility auf die Datenbank zugreifen?

class IGreeter(Interface):

     def greet(name):
         """Say hello"""

class Greeter(MyZopeObject):
    implements(IGreeter)
    def greet(self,ss):
        return self.objectIds():


gsm = getGlobalSiteManager()
greet = Greeter()
gsm.registerUtility(greet, IGreeter)

class SiteSchema():
    countries_ = values=getUtility(IGreeter))

Eventuell ist es auch der Falsche Ansatz um einem Attribut dynamisch
werte aus der Datenbank zuzuweisen.
Kann mir jemand ein Tip geben wie es geht?

Gruß
Vlad

-- 
Best Regards
Vlad Vorobiev


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.