>
>
>    You can use both at the same time:
>
> class MyTable(SQLObject):
>   clas sqlmeta:
>      fromDatabase=True
>   name = StringCol(dbName="a$col")
>
>   I.e. draw the columns' descriptions from the database but override some
> of them.
>
> I was trying above mentioned....
on the Win machine still the same error message:
  File
"C:\Python25\lib\site-packages\sqlobject-0.10dev_r3187-py2.5.egg\sqlobject\main.py",
line 369, in addColumn
    setter = eval('lambda self, val: self._SO_setValue(%s, val, self.%s,
self.%s)' % (repr(name), '_SO_from_python_%s' % name, % name))
  File "<string>", line 1
    lambda self, val: self._SO_setValue('p$defkod', val,
self._SO_from_python_p$defkod, self._SO_to_python_p$defkod)

^
SyntaxError: invalid syntax

on the Linux machine not a syntax error but:
kinterbasdb.OperationalError: (-902, 'isc_attach_database: \n  Unable to
complete network request to host "172.18.0.10".\n  Failed to establish a
connection.\n  Connection timed out')


Trying to connect to the database using kinterdb works:

import kinterbasdb; kinterbasdb.init(type_conv=200),
kinterbasdb.typeconv_text_unicode
con = kinterbasdb.connect(dsn='172.18.0.10:d:\\sgdata\\test\\sysdat01.gdb',
user=uzivatel,
                password=heslo, charset='UNICODE_FSS')
cur = con.cursor()

Petr
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to