Re: [Zope] Custom authentication page...

2006-09-13 Thread David H

Chris Withers wrote:


David H wrote:


If necessary add
 
to your standard_error_message (if using dtml) for a clearer error 
expression



This is not good advice. There are reasons why the traceback was 
dropped from standard_error_message in the first place ;-)



When have I ever given good advise? LOL

Much better is just to look in the error_log object which not only 
stores more info, it also does it in a secure way...



Thanks Chris O:-)

___
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 authentication page...

2006-09-13 Thread Chris Withers

David H wrote:

If necessary add
 
to your standard_error_message (if using dtml) for a clearer error 
expression


This is not good advice. There are reasons why the traceback was dropped 
from standard_error_message in the first place ;-)


Much better is just to look in the error_log object which not only 
stores more info, it also does it in a secure way...


Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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 authentication page...

2006-09-12 Thread Steve

Olavo Santos wrote:
Is this a bug with "Cookie Crumbler" (version 0.3 downloaded from 
zope.org used against Zope 2.9.4, python 2.4.3, win32)?


That is a really old version.
Go here: http://hathawaymix.org/Software/CookieCrumbler
Upgrade to version 1.2. :-)
  

Sorted; Thanks!

I had been using the version published on zope.org, as opposed to the 
one on hathawaymix.org - I'd expected the version hosted on the main 
zope site to at least work... :-)  The comments do mention 
hathawaymix.org, but don't give that full URL - and 
http://hathawaymix.org/ doesn't take me somewhere useful to me... )


Steve

___
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 authentication page...

2006-09-12 Thread Olavo Santos
From: "Steve" <[EMAIL PROTECTED]>
Sent: Tuesday, 12 de September de 2006 18:14

Hello.

> Is this a bug with "Cookie Crumbler" (version 0.3 downloaded from 
> zope.org used against Zope 2.9.4, python 2.4.3, win32)?

That is a really old version.

Go here: http://hathawaymix.org/Software/CookieCrumbler

Upgrade to version 1.2. :-)

Best regards,

@787, Nbk

___
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 authentication page...

2006-09-12 Thread Steve

David H wrote:
I've read that I should use the "Cookie Crumbler" product... but 
after I've added this to the folder that I intend to protect, I click 
on cookie_authentication (the default name for the "Cookie Crumbler" 
object) and I get the following error message:
Thats a weird one ...  but cookie crumbler is great to get  custom 
login forms

It looked as if it should be... :-)
Did you try deleting it and adding another (cookie_authentication 
object)**  Maybe you added a property thats non-existent? (login page 
id or something?)
I tried that - I even tried installing a fresh version of Zope and 
creating a new instance...  I followed some instructions:


   http://www.zopelabs.com/cookbook/1073516045

My experiences started to differ when I got a  cookie_authentication 
instead of a login object...  I was unable to display the properties tab 
for cookie_authentication (step 8) as that generates the error...

you can produce a fuller error traceback
If necessary add
  
to your standard_error_message (if using dtml) for a clearer error 
expression


That generates:

Traceback (innermost last):

   * Module ZPublisher.Publish, line 115, in publish
   * Module ZPublisher.mapply, line 88, in mapply
   * Module ZPublisher.Publish, line 41, in call_object
   * Module Products.CookieCrumbler.utils, line 115, in
 manage_propertiesForm
   * Module Shared.DC.Scripts.Bindings, line 311, in __call__
   * Module Shared.DC.Scripts.Bindings, line 346, in _bindAndExec
   * Module Shared.DC.Scripts.Bindings, line 1, in ?
   * Module Shared.DC.Scripts.Bindings, line 265, in _getContext



___
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 authentication page...

2006-09-12 Thread David H




Steve wrote:
I'm just
starting to look at Zope as a potential platform to implement a simple
authenticated web site... however I do not want to face users with the
standard web-browser dialogue, but rather my own log-in page.  I've
established how to restrict access based upon permissions etc... and
I'm able to set/reset cookies based a form submission - but do not see
how to integrate an HTML login page with the standard Zope security.
  
  
I've read that I should use the "Cookie Crumbler" product... but after
I've added this to the folder that I intend to protect, I click on
cookie_authentication (the default name for the "Cookie Crumbler"
object) and I get the following error message:
  
--
  
  
An error was encountered while publishing this resource.
  
  
*Error Type: AttributeError*
  
*Error Value: aq_parent*
  
  
--
  
  
Is this a bug with "Cookie Crumbler" (version 0.3 downloaded from
zope.org used against Zope 2.9.4, python 2.4.3, win32)?
  
Am I barking up the wrong tree in hoping to have a slick-looking
"logon" page?  Is this something commonly done using Zope?  Is "Cookie
Crumbler" the right product?  Would I be better hand-coding this
myself?
  
  
  

Steve,
Thats a weird one ...  but cookie crumbler is great to get  custom
login forms
Did you try deleting it and adding another (cookie_authentication
object)  Maybe you added a property thats
non-existent? (login page id or something?)

you can produce a fuller error traceback 

If necessary add
  
to your standard_error_message (if using dtml) for a clearer error
_expression_








___
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 authentication page...

2006-09-12 Thread Andreas Jung



--On 12. September 2006 18:14:39 +0100 Steve <[EMAIL PROTECTED]> wrote:


I'm just starting to look at Zope as a potential platform to implement a
simple authenticated web site... however I do not want to face users with
the standard web-browser dialogue, but rather my own log-in page.  I've
established how to restrict access based upon permissions etc... and I'm
able to set/reset cookies based a form submission - but do not see how to
integrate an HTML login page with the standard Zope security.

I've read that I should use the "Cookie Crumbler" product... but after
I've added this to the folder that I intend to protect, I click on
cookie_authentication (the default name for the "Cookie Crumbler" object)
and I get the following error message:
--

An error was encountered while publishing this resource.

*Error Type: AttributeError*
*Error Value: aq_parent*



Such a snippet is worthless for getting help. You need to provide the full 
traceback.


-aj

pgpKPAx1UYvcO.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] Custom authentication page...

2006-09-12 Thread Steve
I'm just starting to look at Zope as a potential platform to implement a 
simple authenticated web site... however I do not want to face users 
with the standard web-browser dialogue, but rather my own log-in page.  
I've established how to restrict access based upon permissions etc... 
and I'm able to set/reset cookies based a form submission - but do not 
see how to integrate an HTML login page with the standard Zope security.


I've read that I should use the "Cookie Crumbler" product... but after 
I've added this to the folder that I intend to protect, I click on 
cookie_authentication (the default name for the "Cookie Crumbler" 
object) and I get the following error message:

--

An error was encountered while publishing this resource.

*Error Type: AttributeError*
*Error Value: aq_parent*

--

Is this a bug with "Cookie Crumbler" (version 0.3 downloaded from 
zope.org used against Zope 2.9.4, python 2.4.3, win32)?
Am I barking up the wrong tree in hoping to have a slick-looking "logon" 
page?  Is this something commonly done using Zope?  Is "Cookie Crumbler" 
the right product?  Would I be better hand-coding this myself?



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