Thank you. will post this in trunk tomorrow.

Massimo

On Jun 22, 10:10 pm, Jose <[email protected]> wrote:
> elif self._uri[:11] == 'firebird://':
>             self._dbname = 'firebird'
>             m = \
>                 re.compile('^(?P<user>[^:@]+)(\:(?P<passwd>[...@]*))?@(?
> P<host>[^\:/]+)(\:(?P<port>[0-9]+))?/(?P<db>.+)(\?set_encoding=(?
> P<charset>\w+))?$'
>                            ).match(self._uri[11:])
>             if not m:
>                 raise SyntaxError, "Invalid URI string in SQLDB"
>             user = m.group('user')
>             if not user:
>                 raise SyntaxError, 'User required'
>             passwd = m.group('passwd')
>             if not passwd:
>                 passwd = ''
>             host = m.group('host')
>             if not host:
>                 raise SyntaxError, 'Host name required'
>             db = m.group('db')
>             if not db:
>                 raise SyntaxError, 'Database name required'
>             port = m.group('port')
>             if not port:
>                 port = '3050'
>             charset = m.group('charset')
>             if not charset:
>                 charset = 'UTF8'
>             self._pool_connection(lambda : \
>                                   kinterbasdb.connect(dsn='%s:%s'
>                                    % (host, db), user=user,
>                                   password=passwd, charset=charset))
>             self._cursor = self._connection.cursor()
>             self._execute = lambda *a, **b: self._cursor.execute(*a,
> **b)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to