Re: [Zope] Documentation and Books

2006-04-19 Thread Erik Billing


Ok, I found
the reference to ZopeWiki under Zope Exits on zope.org, stupid of me to not
look around properly before I start complaining. :P

/ErikOn 4/19/06, Erik Billing <[EMAIL PROTECTED]> wrote:
Yes, the
developers guide I've seen, and the Zope Book of course, they are both pretty good
I guess, but certainly the Zope book seams pretty outdated if you ask me. I
found several unanswered comments in the plone version of the book which were
from 2002, it does not that look good if you are a new user and think that you
are reading the main documentation of zope.  

Anyhow, the
ZopeWiki seams to be great, I'm surprised that I didn't find any link from zope.org!



Thanx you
all for your answers. I guess I will have a lot to dig into before I guy a book
anyway =)

/ErikOn 4/19/06, Dieter Maurer <
[EMAIL PROTECTED]> wrote:
Bakhtiar A Hamid wrote at 2006-4-19 13:54 +0800:>On 4/19/06, Erik Billing <[EMAIL PROTECTED]> wrote:
> ...>> By the way, I'm surprised how little zope documentation I've found on the
>> web. I'm missing a complete API reference for example. And is there a living>> Wiki available somewhere? If not, why not start one?

http://www.plope.com/Books/2_7Edition>and zopewiki,orgAnd the "Zope Developper Guide" (online).--Dieter___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] Documentation and Books

2006-04-19 Thread Erik Billing
Yes, the
developers guide I've seen, and the Zope Book of course, they are both pretty good
I guess, but certainly the Zope book seams pretty outdated if you ask me. I
found several unanswered comments in the plone version of the book which were
from 2002, it does not that look good if you are a new user and think that you
are reading the main documentation of zope.  

Anyhow, the
ZopeWiki seams to be great, I'm surprised that I didn't find any link from zope.org!



Thanx you
all for your answers. I guess I will have a lot to dig into before I guy a book
anyway =)

/ErikOn 4/19/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
Bakhtiar A Hamid wrote at 2006-4-19 13:54 +0800:>On 4/19/06, Erik Billing <[EMAIL PROTECTED]> wrote:> ...>> By the way, I'm surprised how little zope documentation I've found on the
>> web. I'm missing a complete API reference for example. And is there a living>> Wiki available somewhere? If not, why not start one?
http://www.plope.com/Books/2_7Edition>and zopewiki,orgAnd the "Zope Developper Guide" (online).--Dieter___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] Permissions, files and folders

2006-04-19 Thread Erik Billing


This is
what they should put on the documentation page on zope.org instead of a link to
the zope book, thank your very much for telling me!/Erik

On 4/19/06, Sascha Welter <[EMAIL PROTECTED]> wrote:
(Tue, Apr 18, 2006 at 12:00:12PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:> From: "Erik Billing" <[EMAIL PROTECTED]
>> Thank you, that worked nicely. But I was unable to call the LazyFilter from> the DTML document, I figure I have to import the ZTUtils module first. Is> there a special DTML-tag to do import?
>> By the way? Is there some obvious documentation about the different modules> that I have missed? As I mentioned in an earlier letter I'm new to Zope and> I find it very hard to get an overview of all the different modules
If you are new to Zope you should drop DTML like a hot potatoe and startdoing your logic in python and your presentation in ZPT -- strictlyparted.Also don't bother too much with implementing stuff with TTW means
("through the web" - the stuff you do from the ZMI). Better start doingfilesystem python products. Read for examplehttp://zopewiki.org/ZopeStarter - including the link to the "new"
tutorial from upfrontsystems.The ZopeStarter page is a 5 minute read, but has good pointers to stuffthat will get you started in the right directioin.Regards,Sascha___
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] REQUEST.form variables order

2006-04-19 Thread Tino Wildenhain
Gaute Amundsen wrote:
> I want to retrieve the form fields in the order that they where submitted in 
> the http POST. I know this has been brought up before, and that the answer is 
> "You cant."
> 
> http://mail.zope.org/pipermail/zope/2005-October/162460.html
> 
> For zope to refuse to expose this information to me is really quite arrogant 
> and un-unix like behavior. After all unix lets you do "rm -rf /"...

I'd say blaming zope for not reading the docs is somewhat arrogant .-)

> Now in addition to that, it happens that I have almost a hundred forms 
> scattered around maybe 50 sites that all used to use the formmail.pl script, 
> that now use our own zope based workalike.

After all, modularized rewrite would not be so bad I guess ;)

> That is, it can not "work-alike" because zope discards the information I need 
> to make it so!
> 
> To painstakingly alter them all to add this sequence ordering information, 
> just because zope refuses to do as every other scripting system out there 
> that I am aware of, is just out of the queston.

Sorry, not getting the problem. Last time I saw the formholemail.pl,
it used named form variables. You can easily access form variables
by name in Zope.

> My best Idea so far, is to use the apache proxying we use anyway, to run all 
> requests to this url through a small perl or php proxy, that ads the ordering 
> info to the POST.
> 
> Does anyone have any better ideas?
> 
Yes. Give the description of your real problem. With more details please!
Show example form as it is and where exactly your problem is.

I've yet to see a form problem zope cant handle (provided
the information is actually sent by the browser)

Regards
Tino
___
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: REQUEST.form variables order

2006-04-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gaute Amundsen wrote:
> I want to retrieve the form fields in the order that they where submitted in 
> the http POST. I know this has been brought up before, and that the answer is 
> "You cant."
> 
> http://mail.zope.org/pipermail/zope/2005-October/162460.html
> 
> For zope to refuse to expose this information to me is really quite arrogant 
> and un-unix like behavior. After all unix lets you do "rm -rf /"...

The answer isn't arrogant, and we aren't *preventing* you from gaining
access to that information.  The implementation which we use for
extracting the form data from the request is the standard Python
'cgi.py' module:  it doesn't preserve that information, so we can't pass
it on to you.  That we accept this state of affairs is a sign that we
don't share your itch, not that we doubt you have it.

Given that this is open source, you *can* modify ZPublisher such that it
uses a different mechanism to parse the form data, and are free to
submit back such a patch to be included in a future Zope release.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFERo7z+gerLs4ltQ4RAl98AKDF3B/ErUoUhrsBjfLiDbeLxLcamwCeNGIT
ZGsRGlVaSuv99TFzCxjT+rI=
=njQy
-END 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] Cookie Crumbler/Authentication Question

2006-04-19 Thread Palermo, Tom
Hi Dieter,

Yes, I googled around a bit more and found this method. Works nicely:
self.restrictedTraverse(['','login']).credentialsChanged(user,username,req.p
assword)

Thanks,
Tom Palermo 

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 1:44 PM
To: Palermo, Tom
Cc: 'zope@zope.org'
Subject: Re: [Zope] Cookie Crumbler/Authentication Question

Palermo, Tom wrote at 2006-4-18 22:29 -0400:
>I am working on a site that uses CookieCrumbler for the authentication. 
>Part of this site allows a user to change their password via this line:
>userfolder.manage_users(submit='Change', REQUEST=user_info). 
> 
>This works fine except after changing the password, the user is no 
>longer authenticated and an Unauthorized exception is raised. Is there 
>anyway to automatically keep the user logged in or re-authenticate them.

Look at the CookieCrumblers "credentialChanged" method.


--
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] Custom 404 - Resource not found

2006-04-19 Thread Dieter Maurer
Andy Yates wrote at 2006-4-18 14:53 -0500:
>Is there a way to customize the Zope 404 error page? 

404 ("NotFound") responses go through the normal error handling.
Thus, they are handled by "standard_error_message" -- however
maybe one higher than you expect:

  Error handling starts as soon as the first URL segment cannot
  be located. Starting from this point, "raise_standardErrorMessage"
  is looked for upwards when then looks for "standard_error_message"
  via acquisition.

> ...
>Changing standard_error_message does not seem change this error page.

Maybe, you made a mistake?
If your "standard_error_message" causes an exception a
default error handling is used.

> I
>need to do this inside Zope or via the apache front end which talks to
>Zope through mod_rewrite/proxy and Virtual Host Monster.

You can do it inside Zope.

But, you may also be able to do it in Apache.

-- 
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] Cookie Crumbler/Authentication Question

2006-04-19 Thread Dieter Maurer
Palermo, Tom wrote at 2006-4-18 22:29 -0400:
>I am working on a site that uses CookieCrumbler for the authentication. Part
>of this site allows a user to change their password via this line:
>userfolder.manage_users(submit='Change', REQUEST=user_info). 
> 
>This works fine except after changing the password, the user is no longer
>authenticated and an Unauthorized exception is raised. Is there anyway to
>automatically keep the user logged in or re-authenticate them.

Look at the CookieCrumblers "credentialChanged" method.


-- 
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] Documentation and Books

2006-04-19 Thread Dieter Maurer
Bakhtiar A Hamid wrote at 2006-4-19 13:54 +0800:
>On 4/19/06, Erik Billing <[EMAIL PROTECTED]> wrote:
> ...
>> By the way, I'm surprised how little zope documentation I've found on the
>> web. I'm missing a complete API reference for example. And is there a living
>> Wiki available somewhere? If not, why not start one?
>>
>
>http://www.plope.com/Books/2_7Edition
>and zopewiki,org

And the "Zope Developper Guide" (online).

-- 
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] Documentation and Books

2006-04-19 Thread Paul Winkler
On Wed, Apr 19, 2006 at 01:54:19PM +0800, Bakhtiar A Hamid wrote:
> On 4/19/06, Erik Billing <[EMAIL PROTECTED]> wrote:
> >
> >
> > I quite recently began looking at Zope and now I'm looking for a good book
> > on the subject. I'm fairly familiar with both Python and webapp development
> > in general, so I'm looking for a book covering pretty much everything about
> > Zope I need to know, rather then an introduction. I've read a few reviews on
> > Amazon and Web Component Development with Zope 3 seams to be a good
> > choice.
> >
> > Does anyone have another to recommend?
> >
> > By the way, I'm surprised how little zope documentation I've found on the
> > web. I'm missing a complete API reference for example. And is there a living
> > Wiki available somewhere? If not, why not start one?
> >
> 
> http://www.plope.com/Books/2_7Edition
> and zopewiki,org

... which are both great, and both about zope 2.
(Well, there is a small amount of stuff about zope 3 in zopewiki.org,
hopefully there will be more.)

For Zope 3, both the available print books are pretty good, but you need
to know going in that some things are already out of date; for example,
Services no longer exist, there are only Utilities.  The general
concepts still apply.

-- 

Paul Winkler
http://www.slinkp.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] REQUEST.form variables order

2006-04-19 Thread Gaute Amundsen

I want to retrieve the form fields in the order that they where submitted in 
the http POST. I know this has been brought up before, and that the answer is 
"You cant."

http://mail.zope.org/pipermail/zope/2005-October/162460.html

For zope to refuse to expose this information to me is really quite arrogant 
and un-unix like behavior. After all unix lets you do "rm -rf /"...

Now in addition to that, it happens that I have almost a hundred forms 
scattered around maybe 50 sites that all used to use the formmail.pl script, 
that now use our own zope based workalike.

That is, it can not "work-alike" because zope discards the information I need 
to make it so!

To painstakingly alter them all to add this sequence ordering information, 
just because zope refuses to do as every other scripting system out there 
that I am aware of, is just out of the queston.

My best Idea so far, is to use the apache proxying we use anyway, to run all 
requests to this url through a small perl or php proxy, that ads the ordering 
info to the POST.

Does anyone have any better ideas?

Get hold of the original http data somehow and parse them myself?
Patch zope to use a dictionary type that keeps order for req.post?
Patch zope to save the ordering as a property in req.post?

Regards

Gaute Amundsen

___
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] Getting www.domain.com:8080/manage to go through Apache

2006-04-19 Thread michael nt milne
Ok, good to know that.So if I get this right I add in _vh_manage to the VirtualHostRoot in Zope which will cause /manage/ to be appended onto the all the URLs within Zope. The correct pages will still be served and the Apache re-write rule will be satisfied...
On 4/18/06, Alexis Roda <[EMAIL PROTECTED]> wrote:
michael nt milne escribió:> ok, thanks. Does anyone know how to re-write everything going through> /manage/ ?>Part of the answer is here (from the Virtual Host Monster's "About" tab):
Inside-out hostingAnother use for virtual hosting is to make Zope appear to be part of asite controlled by another server. For example, Zope might only servethe contents of 
http://www.mycause.org/dynamic_stuff. To accomplishthis, you want to add "dynamic_stuff" to the start of all Zope-generatedURLs.If you insert VirtualHostRoot, followed by one or more path elements
that start with '_vh_', then these elements will be ignored duringtraversal and then added (without the '_vh_') to the start of generatedURLs. For instance, a request for "/a/VirtualHostRoot/_vh_z/" will
traverse "a" and then generate URLs that start with /z.In our example, you would have the main server send requests forhttp://www.mycause.org/dynamic_stuff/anything
 to Zope, rewritten as/VirtualHostRoot/_vh_dynamic_stuff/anything.HTH-- michael
___
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] Permissions, files and folders

2006-04-19 Thread Sascha Welter
(Tue, Apr 18, 2006 at 12:00:12PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "Erik Billing" <[EMAIL PROTECTED]>
> Thank you, that worked nicely. But I was unable to call the LazyFilter from
> the DTML document, I figure I have to import the ZTUtils module first. Is
> there a special DTML-tag to do import?
> 
> By the way? Is there some obvious documentation about the different modules
> that I have missed? As I mentioned in an earlier letter I'm new to Zope and
> I find it very hard to get an overview of all the different modules

If you are new to Zope you should drop DTML like a hot potatoe and start
doing your logic in python and your presentation in ZPT -- strictly
parted. 

Also don't bother too much with implementing stuff with TTW means
("through the web" - the stuff you do from the ZMI). Better start doing
filesystem python products. Read for example
http://zopewiki.org/ZopeStarter - including the link to the "new"
tutorial from upfrontsystems. 

The ZopeStarter page is a 5 minute read, but has good pointers to stuff
that will get you started in the right directioin.

Regards,

Sascha

___
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 )