[orm-devel] Update problem - string quoting

Diedrich Vorberg orm-devel@mailman.tux4web.de
Mon, 3 Mar 2003 13:57:57 +0100


>w = test(WINENAME='some new ORM stuff')
>
>but in update I have to think of putting in the escaped quotes, or is 
>just me?
the update() method is not ment to be used directly. It is called by
dbclass.__setattr__(). It should be protected, but all classes 
derived from dbclass would need their own update() method in each 
datasource class than. Python's attribute access mechanism is not as 
sophisticated as e.g. C++'s.

Diedrich

-- 
           _..._                            Diedrich Vorberg
         .'     '.
        /  _   _  \                         http://www.tux4web.de
        | (o)_(o) |                         info@tux4web.de
         \(     ) /            .---.
         //'._.'\ \           /     \       Internet Dienstleistungen
        //   .   \ \          \.@-@./       und 'Consulting'.
       ||   .     \ \         /`\_/`\
       |\   :     / |        //  _  \\      Linux Rules!
       \ `) '   (`  /_      | \     )|_
     _)``".____,.'"` (_    /`\_`>  <_/ \
     )     )'--'(     (    \__/'---'\__/
      '---`      `---`