Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

centos

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


garry at schoolteachers

May 13, 2008, 12:14 AM

Post #1 of 4 (493 views)
Permalink
centos

Does anyone have any experience running Zope on Centos 5. I have some Python
scripts which just will not work. They work on Windows, Ubuntu, and SuSe but
just don't do anything on Centos. I have tried various Zope 2.9.0 and
2.9.6-final, various psycopg connectors and Postgres 8.1 and 8.3.
Here is an example script that works everywhere except Centos(excuse email
formatting):

request=context.REQUEST
datefrom=request.datefrom
dateto=request.dateto
today = DateTime(datefrom)
end = DateTime(dateto)
auth=request.auth
year=request.year
while today <= end:
for result in context.getstudentsbyyear(year=year):
studentid=result.studentid
if context.getday(today=today): #picks out non-weekend days only
if context.checkholidays(today=today): #picks out holidays
pass
else:

\\\\\\\\context.insertabsence(entered=today,auth=auth,studentid=studentid)

today += 1
return "<b class=red>Absences entered</b>"

Any ideas because I am getting very frustrated here.
Regards
Garry
_______________________________________________
Zope maillist - Zope[at]zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


lists at zopyx

May 13, 2008, 12:09 AM

Post #2 of 4 (471 views)
Permalink
Re: centos [In reply to]

--On 13. Mai 2008 08:14:05 +0100 Garry Saddington
<garry[at]schoolteachers.co.uk> wrote:

> Does anyone have any experience running Zope on Centos 5. I have some
> Python scripts which just will not work. They work on Windows, Ubuntu,
> and SuSe but just don't do anything on Centos. I have tried various Zope
> 2.9.0 and 2.9.6-final, various psycopg connectors and Postgres 8.1 and
> 8.3. Here is an example script that works everywhere except Centos(excuse
> email formatting):

Such functionality should be (and is) basically independent of the OS.
If there is an issue, debug the script step-by-step using pdb.

-aj


dev101 at magma

May 13, 2008, 3:54 AM

Post #3 of 4 (466 views)
Permalink
Re: centos [In reply to]

----- Original Message -----
From: "Garry Saddington" <garry[at]schoolteachers.co.uk>
To: <zope[at]zope.org>
Sent: Tuesday, May 13, 2008 3:14 AM
Subject: [Zope] centos


> Does anyone have any experience running Zope on Centos 5. I have some
> Python
> scripts which just will not work. They work on Windows, Ubuntu, and SuSe
> but
> just don't do anything on Centos. I have tried various Zope 2.9.0 and
> 2.9.6-final, various psycopg connectors and Postgres 8.1 and 8.3.
> Here is an example script that works everywhere except Centos(excuse email
> formatting):
>
> request=context.REQUEST
> datefrom=request.datefrom
> dateto=request.dateto
> today = DateTime(datefrom)
> end = DateTime(dateto)
> auth=request.auth
> year=request.year
> while today <= end:
> for result in context.getstudentsbyyear(year=year):
> studentid=result.studentid
> if context.getday(today=today): #picks out non-weekend days only
> if context.checkholidays(today=today): #picks out holidays
> pass
> else:
>
> \\\\\\\\context.insertabsence(entered=today,auth=auth,studentid=studentid)
>
> today += 1
> return "<b class=red>Absences entered</b>"

We run Zope 2.9.2 and 2.9.4 on centos 4.3 without any problems. What error
is being generated?

Jonathan

_______________________________________________
Zope maillist - Zope[at]zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


garry at schoolteachers

May 13, 2008, 9:15 AM

Post #4 of 4 (458 views)
Permalink
Re: centos [In reply to]

On Tuesday 13 May 2008 08:09, Andreas Jung wrote:
> --On 13. Mai 2008 08:14:05 +0100 Garry Saddington
>
> <garry[at]schoolteachers.co.uk> wrote:
> > Does anyone have any experience running Zope on Centos 5. I have some
> > Python scripts which just will not work. They work on Windows, Ubuntu,
> > and SuSe but just don't do anything on Centos. I have tried various Zope
> > 2.9.0 and 2.9.6-final, various psycopg connectors and Postgres 8.1 and
> > 8.3. Here is an example script that works everywhere except Centos(excuse
> > email formatting):
>
> Such functionality should be (and is) basically independent of the OS.
> If there is an issue, debug the script step-by-step using pdb.
I have now traced it to the wrong datestyle in zope.conf - a new server and
only half the brain awake!. It was set to US and we use international so the
method did not do anything because the entered dates were presented wrongly
to the database.
Thanks anyway
Garry

_______________________________________________
Zope maillist - Zope[at]zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.