logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Psycopg Problem with Zope's strftime: msg#00025

Subject: Re: Psycopg Problem with Zope's strftime
On 2006-05-22 at 21:55:52 [+0200], fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx 
wrote:
> On Mon, May 22, 2006 at 09:13:46PM +0200, Charlie Clark wrote:
> > > mm, problem is, it's on a production system at the moment so I would be
> > > happier fixing it before testing Psycopg2
> > 
> > Problem is recurrent - it happens wthen I call .strftime() on a DateTime
> > object in Zope and happens all the time with psycopg2.
> > 
> > Can't see anything in the log apart from something relating to tilevel in
> > line 122 of DA.py. I have just dropped a new DA using psycopg2 into my 
> > site
> > as I have over a hundred ZSQL methods which I do not wish to replace!
> 
> Can you provide me with a test case? I'll try to fix it ASAP.

Test case for the formatting problem:

Query: SELECT datetime FROM table

result = context.SQL[0]
print result.datetime.strftime('%d.%m.%Y')

Traceback (innermost last):

    * Module ZPublisher.Publish, line 100, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 306, in __call__
    * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
    * Module Products.PythonScripts.PythonScript, line 318, in _exec
    * Module None, line 3, in date
      <PythonScript at /date>
      Line 3
    * Module DateTime.DateTime, line 1448, in strftime
    * Module DateTime.DateTime, line 414, in safegmtime

TimeError: The time -1149984000.000000 is beyond the range of this Python 
implementation, running on Win32

The other error to do with _set_state seems more difficult to reproduce.

Charlie


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe