Re: [Zope3-Users] How do I learn how to use Zope?

2009-06-17 Thread Shane Hathaway
Edward Zwart wrote:
> Grok is not an option for this project

Too bad, because Grok was made for you. :-)

Zope 3.4 is not documented very well from a newcomer's perspective. 
Most of it only has reference documentation.  Grok is Zope 3 plus 
narrative documentation and shortcuts.

Another alternative to Zope 3 is Repoze.BFG, which is Zope cut down to a 
smaller size.  It has good narrative docs.  I like it.

Shane

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Unauthorized object not the same

2009-06-17 Thread Simon Elbaz
Hi
finally, I understood my mistake. I was accessing the search.html page
through a z3c.layer.pagelet.IPageletBrowserLayer (following P. Carduner's
tutorial) without including in configure.zcml:





The z3c unauthorized view is defined in:
z3c.layer.pagelet/trunk/src/z3c/layer/pagelet/browser/__init__.py.

I needed also to define a layout template for the unauthorized view. So, I
added the following in browser/configure.zcml:


where unauthorized.pt is a copy of
z3c.layer.pagelet/trunk/src/z3c/layer/pagelet/browser/unauthorized.pt.

And for the moment, it seems ok.

Regards,
Simon

On Mon, Jun 15, 2009 at 6:02 PM, Simon Elbaz  wrote:

> Hi,
> I have added :
>
>  in the file
> browser/configure.zcml and the result is the same.
>
> I have identified the function that makes the difference, it is:
> >
> /home/simon/.buildout/eggs/zope.interface-3.5.1-py2.5-linux-i686.egg/zope/interface/adapter.py(478)queryMultiAdapter()
> -> factory = self.lookup(map(providedBy, objects), provided, name)
>
> where
> (Pdb) print objects
> (Unauthorized( 0x9b503cc>, 'browserDefault', 'zope.View'),
>  http://localhost:9030/++skin++Login/@@search.html>)
> (Pdb) print provided
> 
> (Pdb) print name
> index.html
>
> I am a little bit stuck ...
>
> Regards
> Simon
>
>
>
>
> On Sun, Jun 14, 2009 at 1:27 AM, Simon Elbaz wrote:
>
>> Hi,
>> I am trying to set a SessionCredentialsPlugin in a application.
>>
>> When I try to access the following URL
>> http://localhost:9030/++skin++Login/@@search.html, the result of the
>> call:
>> >
>> /home/simon/.buildout/eggs/zope.app.publication-3.7.0-py2.5.egg/zope/app/publication/zopepublication.py(322)handleException()
>> -> view = zope.component.queryMultiAdapter(
>>  (exception, request), name=name)
>> (Pdb) print view.__init__
>> > <*zope.app.http.exception.unauthorized.Unauthorized
>> *object at 0x97faa6c>>
>>
>> where exception=(> 0x89ad5ec>, 'browserDefault', 'zope.View')
>>
>>
>> When I try to access the following URL http://localhost:9030/, the result
>> of the call:
>> >
>> /home/simon/.buildout/eggs/zope.app.publication-3.7.0-py2.5.egg/zope/app/publication/zopepublication.py(322)handleException()
>> -> view = zope.component.queryMultiAdapter((exception, request),
>> name=name)
>> (Pdb) print view.__init__
>> > zope.app.publisher.browser.viewmeta.Unauthorized* object at 0x8badd6c>>
>>
>> where exception is (> object at 0x89ad3ec>, 'browserDefault', 'cdcadama.View').
>>
>> Could someone explain me why the result is different ?
>>
>> Thanks
>> Simon
>>
>>
>>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] How do I learn how to use Zope?

2009-06-17 Thread Benji York
On Tue, Jun 16, 2009 at 6:31 PM, Stephan
Richter wrote:
> On Tuesday 16 June 2009, Stephan Richter wrote:
>> Hi Edward,
>>
>> if this is commercial project, I am gladly offering my consulting and
>> training services. :-) Just let me know! ;-)
>
> Oh my, do not answer E-mails when you are toast. ;-)

Indeed.  I only answer email when I'm a ham sandwich.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users