[Zope-dev] Announcing ZPatterns & TransWarp list and CVS

2001-05-28 Thread Ty Sarna

I'm pleased to announce that I've finished the last task in setting up a
bunch of new services for ZPatterns and TransWarp users: writing this
announcement. :-)

First, we now have mailing lists: [EMAIL PROTECTED] and
[EMAIL PROTECTED] To subscribe, visit:

http://www.eby-sarna.com/mailman/listinfo

Second, we've made our CVS repository more accessible.  Major packages
of interest are ZPatterns, PlugIns, and LoginManager under the ZProducts
directory, and TW (TransWarp) under the pylib directory.  There's other
stuff there as well, but most of it is currently in flux and lacking
documentation, and you should ask before deciding to base any code
on it.

You may browse the cvs tree with ViewCVS at:

http://cvs.eby-sarna.com/

Or access it via anoncvs using the CVSROOT:

:pserver:[EMAIL PROTECTED]:/cvsroot

You will need to login with the password "anoncvs" before you
will be able to access file. Sample session:

For sh-type shells:
$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot

For csh-type shells:
$ setenv CVSROOT :pserver:[EMAIL PROTECTED]:/cvsroot

Now, log in:
$ cvs login
(Logging in to [EMAIL PROTECTED])
CVS password: anoncvs

Now you can "cvs co ZProducts/ZPatterns", or whatever.

There is an additional mailing list, [EMAIL PROTECTED], that
carries cvs commit messages.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-28 Thread Andy McKay

> ...and how about a list-of-objects type too?

Hmm what is that? You can have a list already.

Cheers.
--
  Andy McKay.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] What would *you* like to have in PropertyManagerand friends?

2001-05-28 Thread marc lindahl



> From: "Chris Withers" <[EMAIL PROTECTED]>
> 
> ...and how about a list-of-objects type too?

If you had a 'objects' type, could that object be a list (of, say, objects)?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Xron running under linux

2001-05-28 Thread Homan Els


Hi Nick,
The point is that linux has a different thread system then other platforms. 
Under standard UNIX (hpux, sgi, etc.), you have the possibility to create
a thread. When creating one or more threads, you will have:
1 process with one or more threads sharing the same environment 
(such as uid, etc.). In this case, when changing a env. var. this will
be available in both threads.
But, when creating a thread in linux you will have:
for each thread one process (you can see this with ps -ef|grep python).  
In this case, when changing a env.var. this will give a problem, because
the other thread still have the old uid.
Zope is starting as root.  Zope initializes its products (create
a thread) as root, and then changes to user "nobody"  
(or to user <>given by -u   (in the startup).
So, the thread does have another uid, and this is giving
the problem!
I just change my: rczope:
 
su wwwrun -c "$zope_start 2>/dev/null"
because in my start script, I call:
  exec /usr/local/zope/bin/python
$PYTHONHOME/z2.py -u wwwrun -a 127.0.0.1 "$@"
You might need to chown the files in your zope directory.
I did try to run the Xron product and everything is working correctly
now.
Enjoy it !.
Els
 
Nicholas Lo wrote:
Hi Els,
Sorry for I couldnt give you the code in time. BTW, what are your tricks
in
making Xron working under Linux??? If Xron works under Linux, I can
throw
away my old code and follow the Xron way.
-- Nick
- Original Message -
From: "Homan Els" <[EMAIL PROTECTED]>
To: "Nicholas Lo" <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 6:47 PM
Subject: [Fwd: [Zope-dev] Xron on linux: Dispatcher thread stops after
a
while]
> Hi Nicholas,
>
> It is working !
> (I will now try to test to correctness of the product).
>
> See email from Xron on linux.
>
> Regards,
>
> Els
>
>
>



Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-28 Thread Zopista

ZWiki's seem a little wonky at the moment so Im commenting here.

The one big that would be hugely helpful is a dict property class. Should be
quite simple and very useful IHMO without having to rely on TinyTables etc.

Cheers and thanks for starting up the project.

- Original Message -
From: "Lalo Martins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 27, 2001 4:38 PM
Subject: [Zope-dev] What would *you* like to have in PropertyManager and
friends?


> raise
ZopeProject('http://dev.zope.org/Wikis/DevSite/Proposals/PropertyRevamp')
>
> We at Hiperlogica realize a lot of you people prefer to write
> your code in Python in the filesystem. However, we also believe
> the power of Zope's trough-the-web RAD framework is one of the
> reasons for its success; more importantly, it's a good part of
> the reason it works for *us*.
>
> In this spirit, we fired up HiperDom a few months ago, and
> we're now working on ZUnitTTW to allow developers to unit test
> their ZClasses and even their very sites.
>
> Now, we've been taking note of a lot of peeves we have with
> Properties, in the past one year or so. After all this time,
> and dealing with some Zope internals, we feel confident enough
> to propose to fix them.
>
> So we're "raising" a Project in the fishbowl to implement these
> changes. But before we dive in the mud, we'd like to hear from
> people that really use Properties (and/or ZClasses), or that
> would use them if they were more powerful. Please go to the
> Proposal page, linked above, and tell us what you think.
>
> []s,
>|alo
>+
> --
>I say a prayer now our love's departed
> That you'll come back to stay
>   Bring back the perfect day
>
> http://www.laranja.org/mailto:[EMAIL PROTECTED]
>  pgp key: http://www.laranja.org/pessoal/pgp
>
> Brazil of Darkness (RPG)  ---   http://www.BroDar.org/
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] dtml-in bug?

2001-05-28 Thread Christian Scholz

Hi!

ok, some more people told me now about it.. ;-)

It's not that intuitive nevertheless.. (IMHO) ;-)

cheers and thx,
  Christian

On Mon, May 28, 2001 at 05:20:39PM +0200, Tino Wildenhain wrote:
> Hi Christian,
> 
> --On Montag, 28. Mai 2001 15:38 +0200 Christian Scholz <[EMAIL PROTECTED]> 
> wrote:
> 
> > Hi!
> >
> > Dunno if it's again my "strange" setup, but I have some problem with
> > dtml-in or maybe I simply didn't get something right..
> >
> > Well, I used the following dtml code:
> >
> > 
> > 
> > a
> > 
> > 
> 
> 
> *rustle* try orphan=0 :-)
> 
> Greetings
> Tino
> >
> > and I thought I will get three a's as output.. instead I get 6..
> > If I do size=3 it's ok (3 output), if I do size=4 or 5 or 6 I get
> > them all..
> > (actually it happened with some more complex list of Result objects but
> >  this seems to do the same here)
> >
> > Can someone explain that to me..?
> >
> > (it's Zope 2.3.2, Python 1.5.2, SuSE Linux 7.0)
> >
> > cheers,
> >   Christian
> >
> > --
> > COM.lounge  http://comlounge.net/
> > communication & design [EMAIL PROTECTED]
> >
> > ___
> > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> 
> 
> 
> 

-- 
COM.lounge  http://comlounge.net/
communication & design [EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] dtml-in bug?

2001-05-28 Thread Tino Wildenhain

Hi Christian,

--On Montag, 28. Mai 2001 15:38 +0200 Christian Scholz <[EMAIL PROTECTED]> 
wrote:

> Hi!
>
> Dunno if it's again my "strange" setup, but I have some problem with
> dtml-in or maybe I simply didn't get something right..
>
> Well, I used the following dtml code:
>
> 
> 
> a
> 
> 


*rustle* try orphan=0 :-)

Greetings
Tino
>
> and I thought I will get three a's as output.. instead I get 6..
> If I do size=3 it's ok (3 output), if I do size=4 or 5 or 6 I get
> them all..
> (actually it happened with some more complex list of Result objects but
>  this seems to do the same here)
>
> Can someone explain that to me..?
>
> (it's Zope 2.3.2, Python 1.5.2, SuSE Linux 7.0)
>
> cheers,
>   Christian
>
> --
> COM.lounge  http://comlounge.net/
> communication & design [EMAIL PROTECTED]
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] dtml-in bug?

2001-05-28 Thread Christian Scholz

Hi!

Dunno if it's again my "strange" setup, but I have some problem with dtml-in or
maybe I simply didn't get something right..

Well, I used the following dtml code:



a




and I thought I will get three a's as output.. instead I get 6..
If I do size=3 it's ok (3 output), if I do size=4 or 5 or 6 I get
them all..
(actually it happened with some more complex list of Result objects but
 this seems to do the same here)

Can someone explain that to me..?

(it's Zope 2.3.2, Python 1.5.2, SuSE Linux 7.0)

cheers,
  Christian

-- 
COM.lounge  http://comlounge.net/
communication & design [EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Xron on linux: Dispatcher thread stops after a while

2001-05-28 Thread Steve Alexander

Homan Els wrote:

> ZOPE 2.2.2 , Xron -0-0-9, Python 1.5.2
> 
> Hi Steve,
> 
> I am running Zope  under linux (Suse 6.4).   And I would like to use
> Xron.  But, I can not get it running.
> I did read your email : Xron on linux. And therefore I would like to
> know, how you did manage to use Xron.
> I have the general Xron problem, that the zope-server is not responding
> anymore after the installation of Xron.



What user do you run Zope as?

There's a problem with Linux where if you start off a thread, then 
change uid in the main thread, the thread that you spawned before will 
remain in the old uid, or unexpected things will happen.

This is what Zope does when you run it as root. Zope initializes its 
products as root, and then changes to user "nobody".

You can find out more about this if you search for discussions about 
BIND and Linux.

The solution for Zope and Xron is to run Zope as user "nobody". You 
might need to chown the files in your zope directory.

Note that you will not be able to run Zope on a privileged port (below 
1024) if you do this.

The alternative is to hack Zope so that it calls Xron after it has 
changed use to "nobody", so Xron can safely spawn its thread as user 
"nobody". If you do this, you'll be able to run zope as the root user, 
and Zope + Xron will work running on port 80.

--
Steve Alexander
Software Engineer
Cat-Box limited





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Xron on linux: Dispatcher thread stops after a while

2001-05-28 Thread Homan Els

ZOPE 2.2.2 , Xron -0-0-9, Python 1.5.2

Hi Steve,

I am running Zope  under linux (Suse 6.4).   And I would like to use
Xron.  But, I can not get it running.
I did read your email : Xron on linux. And therefore I would like to
know, how you did manage to use Xron.
I have the general Xron problem, that the zope-server is not responding
anymore after the installation of Xron.

Thanks,

Els Homan







___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )