Re: [Zope] Re: Zope 2.10.0 released

2006-10-03 Thread Andreas Jung



--On 3. Oktober 2006 15:27:12 + Maurits van Rees 
<[EMAIL PROTECTED]> wrote:



Andreas Jung, on 2006-10-03:

Feel free to file a collector issue.


Probably better, yes.  Done:

http://www.zope.org/Collectors/Zope/2201



Possibly this issue is caused by a different umask on my new Linux box.
However either the step for generating the tar ball or Python Distutils
module should be in charge for dealing with the file permissions properly.
No idea how and where to address this problem at the moment.

-aj

pgp96vZbtrMID.pgp
Description: PGP signature
___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
Sorry, just noticed thats already been considered...On 04/10/06, Josh Burvill <[EMAIL PROTECTED]> wrote:
there is some info in zopebook 2.6 edition in the advanced scripting chapter:
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx
where there are some links in this chapter where it mentions "activestate":
http://www.zope.org/Members/andym/wiki/FrontPage
http://downloads.activestate.com/Zope-Perl/
hth,Josh


___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
there is some info in zopebook 2.6 edition in the advanced scripting chapter:http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx
where there are some links in this chapter where it mentions "activestate":
http://www.zope.org/Members/andym/wiki/FrontPagehttp://downloads.activestate.com/Zope-Perl/
hth,Josh
___
Zope maillist  -  Zope@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 )


Re: [Zope] zope gets killed on startup

2006-10-03 Thread Einar Næss Jensen
On 10/3/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
Einar Næss Jensen wrote at 2006-10-2 21:12 +0200:>the full traceback and the error is this:>>2006-10-02 21:07:15 ERROR BeforeTraverse Error while invoking hook:>"acl_users">Traceback (most recent call last):
>  File "/usr/local/zope/zope295/lib /python/ZPublisher/BeforeTraverse.py",>line 145, in __call__>meth(*(container, request, None)[:args])>AttributeError: __call__Looks like a buggy "acl_users".
  Apparently, you have deleted one.Yes. I guessed that somehow, the acl_users in the root object, had been deleted (or was missing). Why this happened I do not know. I do not think I did it myselfe ( I certanly do not have a memory of doing so). 
  Deletion should have caused the uninstallation of its  "BeforeTraverse" hook. But, for some reasons (a bug),
  this has not happend. That's the cause for the "ERROR".Usually, apart from the ERROR log entry, nothing bad happens.Alternatively, the "acl_users" could be "broken".
This might bring serious problems -- not easy to analyse.Look into your logfile whether you find entries"could not import ...".2006-10-02T01:26:36 WARNING ZODB Could not import class 'PluggableAuthService' f    rom module ' 
Products.PluggableAuthService.PluggableAuthService'--2006-10-02T01:26:36 WARNING ZODB Could not import class 'PloneSite' from module 'Products.CMFPlone.Portal'--
2006-10-02T01:26:36 WARNING ZODB Could not import class 'PlacelessTranslationSer    vice' from module 'Products.PlacelessTranslationService.PlacelessTranslationServ    ice'
To me, this is strange because I installed Plone, and added an instance and filled it with (some) content about one week before the crashAlso, from the Data.fs I can see that everytime I restart zope, PlacelessTranslationService is installing.
I thought maybe I could fix this by adding a new acl_users (presuming I had deleted the old one), but didnt quite find a way to do it.So I just deleted all the entries concerning Plone in Data.fs, and now my zope works (without Plone, think I will create another instance for that)
Thanks to everyone who helped. -- -- Einar Næss Jensenhttp://einarblog.homemade.no/einarblog
http://www.homemade.notlf: +47 90990249(\__/)(='.'=)This is Bunny. Copy and paste bunny into your(")_(")signature to help him gain world domination.
___
Zope maillist  -  Zope@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 )


Re: [Zope] external method: importing and updating method

2006-10-03 Thread Jonathan


- Original Message - 
From: "Dieter Maurer" <[EMAIL PROTECTED]>

To: "Alan" <[EMAIL PROTECTED]>
Cc: 
Sent: Tuesday, October 03, 2006 2:06 PM
Subject: Re: [Zope] external method: importing and updating method



Alan wrote at 2006-10-2 18:48 +0100:

In my external method I have something like this:
...
sys.path.insert(0, CCPNPYTHON)


This is not a good idea!

The source of an "External Method" can be read arbitrarily often --
and each time, you extend "sys.path"...


We get around this 'evergrowing' path problem by (if there is a problem with 
this solution let me know!):


import sys
SOMEPATH = '/some/path/goes/here'
if SOMEPATH not in sys.path:
   sys.path.append(SOMEPATH)


Jonathan 



___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Lennart Regebro

On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:

Perhaps refactor wasn't the best choice of words. The site is a very large 
online gaming website
(not gambling). The legacy perl code does many, many things (administration, 
game play,
accounting, message boards, publishing, mail, etc...) and really is around a 
million lines.
Rewriting the current perl code in python/zope would take a small eternity even 
with the rapid
development that zope permits.


Well, you don't need to rewrite most of it, as Zope handles some of
this already, and there are products for some of the rest.

But yes. It would be a lerge project, of course.


I saw that the zope-perl project is virtually dead and was hoping that some 
magical zope to perl
bridge existed. Something that would allow me to use our existing perl code as 
an external method
or someting similar.


Well, that wouldn't help you. You would then still have one million
lines of perl code/crap, just wrapped in a Zope layer.


Which way should I go?


Hard to say. If the Perl code was NOT spaghetti-code (is there Perl
code that is not) then a perl framework would probably have been the
natural way to go. Now I don't even know if that would help you,
because that assumes you can extract relevant parts from you current
app and reuse them. And if you can, well, then it's not spaghetti. :)

If it really is spaghetti, you'll end up rewriting everything anyway.
Install something like CPS and Plone and look at Plones third-party
products, and you'll get a feeling for how much you really need to
write from scratch. There's a lot out there.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Marco Bizzarri

If I can provide any suggestion, take a look at "Refactoring", by
Martin Fowler, and start applying the refactorings there provided.
This is not, I think a Zope/Perl/Python/PHP issue, but rather a
refactoring/migration problem, and it should be explored in that
places (just a suggestion, of course).

Regards
Marco


On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:

--- Jonathan <[EMAIL PROTECTED]> wrote:




Yes, the application is currently deployed but it is the gnarliest mess of ten 
year old spaghetti
code you have ever seen. No session handling, no automatic CGI variable 
parsing, no
authenticationno fun. I am attempting to find a path towards a proper web 
application
framework without having to rewrite every single line of legacy code. For 
example, all new
projects would adhere to framework xyz and the legacy code would still play 
nicely with the
framework.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Zope maillist  -  Zope@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 )




--
Marco Bizzarri
http://notenotturne.blogspot.com/
___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Dieter Maurer
Derek Basch wrote at 2006-10-2 15:22 -0700:
>I have about a million lines of Perl code/crap that I would like to refactor 
>to Zope. Is this even
>possible?

I think I have seen a Python-Perl adapter (search for such a thing;
I will not search for you).

If you find one, you may be able to use Perl from Python (and
by extension from Zope).



-- 
Dieter
___
Zope maillist  -  Zope@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 )


Re: [Zope] zope gets killed on startup

2006-10-03 Thread Dieter Maurer
Einar Næss Jensen wrote at 2006-10-2 21:12 +0200:
>the full traceback and the error is this:
>
>2006-10-02 21:07:15 ERROR BeforeTraverse Error while invoking hook:
>"acl_users"
>Traceback (most recent call last):
>  File "/usr/local/zope/zope295/lib /python/ZPublisher/BeforeTraverse.py",
>line 145, in __call__
>meth(*(container, request, None)[:args])
>AttributeError: __call__

Looks like a buggy "acl_users".

  Apparently, you have deleted one.

  Deletion should have caused the uninstallation of its
  "BeforeTraverse" hook. But, for some reasons (a bug),
  this has not happend. That's the cause for the "ERROR".

Usually, apart from the ERROR log entry, nothing bad happens.

Alternatively, the "acl_users" could be "broken".
This might bring serious problems -- not easy to analyse.


Look into your logfile whether you find entries
"could not import ...".



-- 
Dieter
___
Zope maillist  -  Zope@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 )


Re: [Zope] CatalogPatch && PloneSecurityInjector

2006-10-03 Thread Dieter Maurer
Javier Subervi wrote at 2006-10-2 11:46 -0700:
>No, it only shows up when I add the CatalogPatch.

This tells you that the problem is in "CatalogPatch" ;-)



-- 
Dieter
___
Zope maillist  -  Zope@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 )


Re: [Zope] Unsubscription problems.

2006-10-03 Thread Dieter Maurer
Michael Dexter wrote at 2006-10-2 21:11 +0300:
> ...
>>Reading helps. Why don't you follow the instructions on the mailman pages
>>like ?
>
>Sorry? I did, hence "and the mailman page" in my original message, as above.
>
>I must do this at the "zope-dev" list to unsubscribe to "zope?" That is 
>unintuitive to say the least.

Of course, not.

You unsubscribe from "zope@zope.org" via
""

>What it did was go to the "zope" mailman page:
>http://mail.zope.org/mailman/listinfo/zope
>
>Verified via recent message what address the mail was going to and entered 
>taht in "To unsubscribe from Zope, get a password reminder, or change your 
>subscription options enter your subscription email address:" and clicked 
>"Unsubscribe or edit options."
>
>This generated me an unsubscription message and I read its instructions to 
>send a message to [EMAIL PROTECTED] with only the confirmation string. I 
>confess I left the subject in place but that didn't seem to be a problem on 
>several other mailman-managed lists I have recently unsubscribed from.

You can alternatively set "Delivery off".
While it will keep you subscribed, you will no longer get
messages...



-- 
Dieter
___
Zope maillist  -  Zope@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 )


Re: [Zope] external method: importing and updating method

2006-10-03 Thread Dieter Maurer
Alan wrote at 2006-10-2 18:48 +0100:
>In my external method I have something like this:
>...
>sys.path.insert(0, CCPNPYTHON)

This is not a good idea!

The source of an "External Method" can be read arbitrarily often --
and each time, you extend "sys.path"...

The "imp" module allows you to import modules without the need
to modify "path".

> ...
>the problem I am facing now it that if I update my memops stuff (which
>is found in CCPNPYTHON path) it seems not to be being updated in Zope,
>because Zope is still using the old version. (If I run outside Zope,
>the code works).

That's typical Python behaviour:

  Python does not recognize at runtime when a module source has
  changed.

  It provides however a builtin "reload" which you can use
  to explicitely reload a module.

  Be warned the "reload" is dangerous. Funny effects can happen.


As someone else suggested, restarting Zope is the safest way
(although not the fasted one).



-- 
Dieter
___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Jonathan


- Original Message - 
From: "Derek Basch" <[EMAIL PROTECTED]>

To: "Jonathan" <[EMAIL PROTECTED]>; 
Sent: Tuesday, October 03, 2006 1:54 PM
Subject: Re: [Zope] Legacy Perl code and Zope. A pipe dream?



--- Jonathan <[EMAIL PROTECTED]> wrote:



- Original Message - 
From: "Derek Basch" <[EMAIL PROTECTED]>

To: "Lennart Regebro" <[EMAIL PROTECTED]>; 
Sent: Tuesday, October 03, 2006 1:25 PM
Subject: Re: [Zope] Legacy Perl code and Zope. A pipe dream?


> --- Lennart Regebro <[EMAIL PROTECTED]> wrote:
>
>> On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:
>> > I have about a million lines of Perl code/crap that I would like to
>> > refactor to Zope.
>> > Is this even possible?
>>
>> Refactor? No. But it's quite likely that you can redo it quite quickly
>> with Zope thanks to all the third-party products.
>>
>> What does you perl code/crap do? What type of site is it?
>
> Thanks for the responses everyone.
>
> Perhaps refactor wasn't the best choice of words. The site is a very 
> large

> online gaming website
> (not gambling). The legacy perl code does many, many things
> (administration, game play,
> accounting, message boards, publishing, mail, etc...) and really is 
> around

> a million lines.
> Rewriting the current perl code in python/zope would take a small 
> eternity

> even with the rapid
> development that zope permits.
>
> I saw that the zope-perl project is virtually dead and was hoping that
> some magical zope to perl
> bridge existed. Something that would allow me to use our existing perl
> code as an external method
> or someting similar. Forgive me if my zope terminology is a bit off as 
> I

> haven't worked with zope
> in about three years.
>
> As it stands it looks like I will need to use a PHP or Perl web
> application framework.
>
> PHP because it has decent Perl to PHP support:
>
> http://www.zend.com/php5/articles/php5-perl.php
>
> Or Perl, for obvious reasons. Perhaps something like Catalyst:
>
> http://www.catalystframework.org/
>
> However, neither of the above solutions is as enticing as the joy I am
> sure I would get from Zope.
> Which way should I go?

It sounds like you already have a web application (in perl) up and 
running,

so what do you want Zope (or anything else) to accomplish for you?


Jonathan


Yes, the application is currently deployed but it is the gnarliest mess of 
ten year old spaghetti
code you have ever seen. No session handling, no automatic CGI variable 
parsing, no
authenticationno fun. I am attempting to find a path towards a proper 
web application
framework without having to rewrite every single line of legacy code. For 
example, all new
projects would adhere to framework xyz and the legacy code would still 
play nicely with the

framework.


If you want to maintain this application within Zope then you will have to 
eventually rewrite the perl scripts into python.  However, as a first step, 
perhaps you could turn your perl scripts into standalone routines which can 
be invoked by a Zope External Method (use an 'os' call), and then 
communicate with the perl script via pipes or temporary files.


This should allow you to create an intial framework in Zope, but continue to 
use the business logic in the perl scripts.


This approach is based on the assumption that the perl scripts can be turned 
into 'functions' which take some input parameters, then apply some internal 
logic, and then return some value(s) which you then process/store in Zope.


I don't know if this approach will buy you anything or not... it all depends 
on how the perl routines are written and what they do.


It may be easier to rewrite the whole thing! The end result will probably be 
more maintainable and remember 1000 lines of Perl = 10 lines of python ;-) 
(ok, i may have exaggerated just a little...)



Jonathan


___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Derek Basch
--- Jonathan <[EMAIL PROTECTED]> wrote:

> 
> - Original Message - 
> From: "Derek Basch" <[EMAIL PROTECTED]>
> To: "Lennart Regebro" <[EMAIL PROTECTED]>; 
> Sent: Tuesday, October 03, 2006 1:25 PM
> Subject: Re: [Zope] Legacy Perl code and Zope. A pipe dream?
> 
> 
> > --- Lennart Regebro <[EMAIL PROTECTED]> wrote:
> >
> >> On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:
> >> > I have about a million lines of Perl code/crap that I would like to 
> >> > refactor to Zope.
> >> > Is this even possible?
> >>
> >> Refactor? No. But it's quite likely that you can redo it quite quickly
> >> with Zope thanks to all the third-party products.
> >>
> >> What does you perl code/crap do? What type of site is it?
> >
> > Thanks for the responses everyone.
> >
> > Perhaps refactor wasn't the best choice of words. The site is a very large 
> > online gaming website
> > (not gambling). The legacy perl code does many, many things 
> > (administration, game play,
> > accounting, message boards, publishing, mail, etc...) and really is around 
> > a million lines.
> > Rewriting the current perl code in python/zope would take a small eternity 
> > even with the rapid
> > development that zope permits.
> >
> > I saw that the zope-perl project is virtually dead and was hoping that 
> > some magical zope to perl
> > bridge existed. Something that would allow me to use our existing perl 
> > code as an external method
> > or someting similar. Forgive me if my zope terminology is a bit off as I 
> > haven't worked with zope
> > in about three years.
> >
> > As it stands it looks like I will need to use a PHP or Perl web 
> > application framework.
> >
> > PHP because it has decent Perl to PHP support:
> >
> > http://www.zend.com/php5/articles/php5-perl.php
> >
> > Or Perl, for obvious reasons. Perhaps something like Catalyst:
> >
> > http://www.catalystframework.org/
> >
> > However, neither of the above solutions is as enticing as the joy I am 
> > sure I would get from Zope.
> > Which way should I go?
> 
> It sounds like you already have a web application (in perl) up and running, 
> so what do you want Zope (or anything else) to accomplish for you?
> 
> 
> Jonathan 

Yes, the application is currently deployed but it is the gnarliest mess of ten 
year old spaghetti
code you have ever seen. No session handling, no automatic CGI variable 
parsing, no
authenticationno fun. I am attempting to find a path towards a proper web 
application
framework without having to rewrite every single line of legacy code. For 
example, all new
projects would adhere to framework xyz and the legacy code would still play 
nicely with the
framework.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Jonathan


- Original Message - 
From: "Derek Basch" <[EMAIL PROTECTED]>

To: "Lennart Regebro" <[EMAIL PROTECTED]>; 
Sent: Tuesday, October 03, 2006 1:25 PM
Subject: Re: [Zope] Legacy Perl code and Zope. A pipe dream?



--- Lennart Regebro <[EMAIL PROTECTED]> wrote:


On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:
> I have about a million lines of Perl code/crap that I would like to 
> refactor to Zope.

> Is this even possible?

Refactor? No. But it's quite likely that you can redo it quite quickly
with Zope thanks to all the third-party products.

What does you perl code/crap do? What type of site is it?


Thanks for the responses everyone.

Perhaps refactor wasn't the best choice of words. The site is a very large 
online gaming website
(not gambling). The legacy perl code does many, many things 
(administration, game play,
accounting, message boards, publishing, mail, etc...) and really is around 
a million lines.
Rewriting the current perl code in python/zope would take a small eternity 
even with the rapid

development that zope permits.

I saw that the zope-perl project is virtually dead and was hoping that 
some magical zope to perl
bridge existed. Something that would allow me to use our existing perl 
code as an external method
or someting similar. Forgive me if my zope terminology is a bit off as I 
haven't worked with zope

in about three years.

As it stands it looks like I will need to use a PHP or Perl web 
application framework.


PHP because it has decent Perl to PHP support:

http://www.zend.com/php5/articles/php5-perl.php

Or Perl, for obvious reasons. Perhaps something like Catalyst:

http://www.catalystframework.org/

However, neither of the above solutions is as enticing as the joy I am 
sure I would get from Zope.

Which way should I go?


It sounds like you already have a web application (in perl) up and running, 
so what do you want Zope (or anything else) to accomplish for you?



Jonathan 



___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Derek Basch
--- Lennart Regebro <[EMAIL PROTECTED]> wrote:

> On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:
> > I have about a million lines of Perl code/crap that I would like to 
> > refactor to Zope.
> > Is this even possible?
> 
> Refactor? No. But it's quite likely that you can redo it quite quickly
> with Zope thanks to all the third-party products.
> 
> What does you perl code/crap do? What type of site is it?

Thanks for the responses everyone.

Perhaps refactor wasn't the best choice of words. The site is a very large 
online gaming website
(not gambling). The legacy perl code does many, many things (administration, 
game play,
accounting, message boards, publishing, mail, etc...) and really is around a 
million lines.
Rewriting the current perl code in python/zope would take a small eternity even 
with the rapid
development that zope permits.

I saw that the zope-perl project is virtually dead and was hoping that some 
magical zope to perl
bridge existed. Something that would allow me to use our existing perl code as 
an external method
or someting similar. Forgive me if my zope terminology is a bit off as I 
haven't worked with zope
in about three years.

As it stands it looks like I will need to use a PHP or Perl web application 
framework.

PHP because it has decent Perl to PHP support:

http://www.zend.com/php5/articles/php5-perl.php

Or Perl, for obvious reasons. Perhaps something like Catalyst:

http://www.catalystframework.org/

However, neither of the above solutions is as enticing as the joy I am sure I 
would get from Zope.
Which way should I go?

Thanks,
Derek Basch 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@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 )


Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-03 Thread michaelntmilne
>Well, sure. But if this doesn't work on windows, this should be>clearly stated and documented. If not, it's a bug. :-)Exactly and both ZopeScheduler and TimerService claim to work on Windows. That's the point I was making. Fair enough if it can't be done on a platform but that isn't the case here. So I think 'nonsense' is slightly emotive shall we say.- Original Message From: Lennart Regebro <[EMAIL PROTECTED]>To: Andreas Jung <[EMAIL PROTECTED]>Cc: michaelntmilne <[EMAIL PROTECTED]>; zope@zope.orgSent: Tuesday, 3 October, 2006 4:57:58 PMSubject: Re: [Zope] TimerService/ZopeScheduler runs but
 doesn't run scripts..On 10/3/06, Andreas Jung <[EMAIL PROTECTED]> wrote:> Nonsense. There are always reasons why a software might only certain> operating systems - either because on some limitations of the operating> systems itself or because of software constraints.Well, sure. But if this doesn't work on windows, this should beclearly stated and documented. If not, it's a bug. :-)-- Lennart Regebro, Nuxeo http://www.nuxeo.com/CPS Content Management http://www.cps-project.org/___
Zope maillist  -  Zope@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 )


Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-03 Thread Lennart Regebro

On 10/3/06, Andreas Jung <[EMAIL PROTECTED]> wrote:

Nonsense. There are always reasons why a software might only certain
operating systems - either because on some limitations of the operating
systems itself or because of software constraints.


Well, sure. But if this doesn't work on windows, this should be
clearly stated and documented. If not, it's a bug. :-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@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 )


Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-03 Thread Andreas Jung



--On 3. Oktober 2006 15:32:07 + michaelntmilne 
<[EMAIL PROTECTED]> wrote:



but it *should* work on windows as well. Ok, it's not the ultimate
platform but ignoring it or not making sure products work on it
undermines the expansion of zope and zope related products



Nonsense. There are always reasons why a software might only certain
operating systems - either because on some limitations of the operating
systems itself or because of software constraints.

-aj

pgp4SrZLkfDsa.pgp
Description: PGP signature
___
Zope maillist  -  Zope@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 )


Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-03 Thread michaelntmilne
but it *should* work on windows as well. Ok, it's not the ultimate platform but ignoring it or not making sure products work on it undermines the expansion of zope and zope related products- Original Message From: Chris McDonough <[EMAIL PROTECTED]>To: michaelntmilne <[EMAIL PROTECTED]>Cc: zope@zope.orgSent: Monday, 2 October, 2006 5:58:58 PMSubject: Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts..Forget it.  You're on Windows.  nevermind.- COn Oct 2, 2006, at 11:42 AM, michaelntmilne wrote:> Hi>> I've set up ZopeScheduler
 and TimerService to run a basic pack the  > ZODB script based on a time period. It won't run for some reason.  > TimerService starts up fine and listend.>> I get this in the log but no info on a script being run. I have the  > correct path and time info in ZopeScheduler. Zope 2.8.7 Windows.>> Thanks>> 2006-09-30T13:20:09 INFO ZopeScheduler Process timer tick at Sat  > Sep 30 13:20:09 2006>> --> 2006-09-30T13:30:09 INFO ZopeScheduler Process timer tick at Sat  > Sep 30 13:30:09 2006>> --> 2006-09-30T13:40:09 INFO ZopeScheduler Process timer tick at Sat  > Sep 30 13:40:09 200ch> ___> Zope maillist  -  Zope@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 maillist  -  Zope@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] Re: Zope 2.10.0 released

2006-10-03 Thread Maurits van Rees
Andreas Jung, on 2006-10-03:
> Feel free to file a collector issue.

Probably better, yes.  Done:

http://www.zope.org/Collectors/Zope/2201

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
   GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc
"Do only what only you can do." --- Edsger Wybe Dijkstra

___
Zope maillist  -  Zope@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 )


Re: [Zope] Re: Zope 2.10.0 released

2006-10-03 Thread Andreas Jung



--On 3. Oktober 2006 10:50:34 + Maurits van Rees 
<[EMAIL PROTECTED]> wrote:



Maurits van Rees, on 2006-10-03:

Andreas Jung, on 2006-10-03:

on behalf of Zope developer community I am pleased to announce the
release=20 of Zope 2.10.0.

You can download Zope 2.10.0 from:

  http://www.zope.org/Products/Zope/2.10.0/


Great, thanks!

First problem that I see, which has happened before in some Zope tar
files IIRC, is that the files in the skel dir don't have the right
permissions.  Only root can view them.  So when you make an instance
you run into an error:

[Errno 13] Permission denied: './README.txt'



Oh, and some other files as well, like:
lib/python/Zope2/Startup/zopeschema.xml
lib/python/zope/contenttype/mime.types

Running this:

find -execdir sudo chmod a+r {} +

fixes it for me.  Now Zope starts up fine.



Feel free to file a collector issue.

-aj


--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting


pgpj468Sqtz8i.pgp
Description: PGP signature
___
Zope maillist  -  Zope@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 )


Re: [Zope] Programmatically logging out a user

2006-10-03 Thread Jonathan



We use a 'home-grown' cookie-based authentication 
process, and when we want to log the user out we over-write the cookie with 
invalid data and send the user to a 'so long and thanks for all the fish' 
page.
 
 
Jonathan
 

  - Original Message - 
  From: 
  Sinang, 
  Danny 
  To: zope@zope.org 
  Sent: Tuesday, October 03, 2006 8:24 
  AM
  Subject: [Zope] Programmatically logging 
  out a user
  
  Hello,
   
  How do I 
  programmatically log out a user from Zope ?
   
  I've asked this 
  question before, but was told to :
   
  1. Redirect the 
  user to a page that always raises Unauthenticated. 
  Seemanage_zmi_logout.
  2. from AccessControl.SecurityManagement import 
  noSecurityManagernoSecurityManager()
  Are there any 
  other ways out there ?
   
  Regards,Danny
   
   
  
  

  ___Zope maillist  
  -  
  Zope@zope.orghttp://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 maillist  -  Zope@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 )


Re: [Zope] Programmatically logging out a user

2006-10-03 Thread Andrew Milton
+---[ Sinang, Danny ]--
| Hello,
|  
| How do I programmatically log out a user from Zope ?
|  
| I've asked this question before, but was told to :
|  
| 1. Redirect the user to a page that always raises Unauthenticated. See
| manage_zmi_logout.
| 2. from AccessControl.SecurityManagement import noSecurityManager
| noSecurityManager()
| Are there any other ways out there ?

That depends on the type of 'authentication' you're using.

If you're using Cookie based auth, the convention for zope user folders (and
CookieCrumbler) is to use the __ac cookie, so you can also try deleting that.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@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] Programmatically logging out a user

2006-10-03 Thread Sinang, Danny



Hello,
 
How do I 
programmatically log out a user from Zope ?
 
I've asked this 
question before, but was told to :
 
1. Redirect the user 
to a page that always raises Unauthenticated. 
Seemanage_zmi_logout.
2. from AccessControl.SecurityManagement import 
noSecurityManagernoSecurityManager()
Are there any other 
ways out there ?
 
Regards,Danny
 
 
___
Zope maillist  -  Zope@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 )


Re: [Zope] Proposal System

2006-10-03 Thread Andreas Jung



--On 3. Oktober 2006 04:34:49 -0700 wekoweko <[EMAIL PROTECTED]> wrote:



Hi, has anyone ever implemented a pdf generating/creating proposal system
in Zope? (i.e. creates a pdf that is customized and editable). Mostly just
manipulating a pdf in Zope, if anyone has any recommendations or
suggestions, please post, thanks.



No idea what you mean in detail. You can generate PDF either through 
Reportlab, HTMLDOC or e.g. through XSLFO. There also several other 
solutions...


-aj

pgpzxkEkU105a.pgp
Description: PGP signature
___
Zope maillist  -  Zope@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] Proposal System

2006-10-03 Thread wekoweko

Hi, has anyone ever implemented a pdf generating/creating proposal system in
Zope? (i.e. creates a pdf that is customized and editable). Mostly just
manipulating a pdf in Zope, if anyone has any recommendations or
suggestions, please post, thanks.
-- 
View this message in context: 
http://www.nabble.com/Proposal-System-tf2375642.html#a6618378
Sent from the Zope - General mailing list archive at Nabble.com.

___
Zope maillist  -  Zope@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] Re: Zope 2.10.0 released

2006-10-03 Thread Maurits van Rees
Maurits van Rees, on 2006-10-03:
> Andreas Jung, on 2006-10-03:
>> on behalf of Zope developer community I am pleased to announce the release=20
>> of Zope 2.10.0.
>>
>> You can download Zope 2.10.0 from:
>>
>>   http://www.zope.org/Products/Zope/2.10.0/
>
> Great, thanks!
>
> First problem that I see, which has happened before in some Zope tar
> files IIRC, is that the files in the skel dir don't have the right
> permissions.  Only root can view them.  So when you make an instance
> you run into an error:
>
> [Errno 13] Permission denied: './README.txt'
>

Oh, and some other files as well, like:
lib/python/Zope2/Startup/zopeschema.xml
lib/python/zope/contenttype/mime.types

Running this:

find -execdir sudo chmod a+r {} +

fixes it for me.  Now Zope starts up fine.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
   GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc
"Do only what only you can do." --- Edsger Wybe Dijkstra

___
Zope maillist  -  Zope@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] Re: Zope 2.10.0 released

2006-10-03 Thread Maurits van Rees
Andreas Jung, on 2006-10-03:
> on behalf of Zope developer community I am pleased to announce the release=20
> of Zope 2.10.0.
>
> You can download Zope 2.10.0 from:
>
>   http://www.zope.org/Products/Zope/2.10.0/

Great, thanks!

First problem that I see, which has happened before in some Zope tar
files IIRC, is that the files in the skel dir don't have the right
permissions.  Only root can view them.  So when you make an instance
you run into an error:

[Errno 13] Permission denied: './README.txt'

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
   GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc
"Do only what only you can do." --- Edsger Wybe Dijkstra

___
Zope maillist  -  Zope@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 )


Re: [Zope] delete latest transactions

2006-10-03 Thread Einar Næss Jensen
On 10/2/06, Stefan H. Holek <[EMAIL PROTECTED]> wrote:
http://www.zope.org/Members/itamar/CorruptedZODBStefanGreat! It worked. I deleted the latest transactions and my zope  is no longer on dope.
Related: Is it safe to only delete the transactions I want, or do I have to truncate the Data.fs file, including a few transactions I still want?)
___
Zope maillist  -  Zope@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 )


Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Lennart Regebro

On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:

I have about a million lines of Perl code/crap that I would like to refactor to 
Zope.
Is this even possible?


Refactor? No. But it's quite likely that you can redo it quite quickly
with Zope thanks to all the third-party products.

What does you perl code/crap do? What type of site is it?

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@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] Zope 2.10.0 released

2006-10-03 Thread Andreas Jung



Hi all,

on behalf of Zope developer community I am pleased to announce the release 
of Zope 2.10.0.


You can download Zope 2.10.0 from:

 http://www.zope.org/Products/Zope/2.10.0/

Some new features of Zope 2.10:

 - ZPT implementation based on Zope 3

 - experimental WSGI and Twisted integration

 - Zope 3.3, Five 1.5 integration

 - clock server

 - lots of minor improvements and fixes

 - replaced several Zope 2 modules with their sister implementation
   of Zope 3


For more information on what is new in this release, see the
CHANGES.txt files for the release:

  http://www.zope.org/Products/Zope/2.10.0/CHANGES.txt

Please bring all the bugs you have found to the Zope bugtracker:

  http://collector.zope.org/Zope

For more information on the available Zope releases, guidance for selecting
the right distribution and installation instructions, please see:

 http://www.plope.com/Books/2_7Edition/InstallingZope.stx


Supported Python versions:

 Zope 2.10 requires Python 2.4.3 (Python 2.4.2 is still acceptable).
 Older Python versions are no longer supported. Using Python 2.5
 is also *unsupported*.

Many thanks to all everyone who contributed. Very special thanks go to
Philipp von Weiterhausen for his continuous and outstanding work in
the Zope 2 *and* Zope 3 world.


--
Andreas Jung




pgpfhoMn9BbwB.pgp
Description: PGP signature
___
Zope maillist  -  Zope@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 )