Re: [Zope3-Users] PAU, how to grant roles to groups
Stephan == Stephan Richter [EMAIL PROTECTED] writes: Stephan You cannot grant permissions via ZCML to principals that are Stephan located in the ZODB. You have to use the Grant view of the Stephan folder for this. Oh, that's a bad news. Am I right that Zope3 have principals either ZODB or ZCML? Thank you! -- DSS5-RIPE DSS-RIPN 2:550/[EMAIL PROTECTED] 2:550/[EMAIL PROTECTED] xmpp:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://neva.vlink.ru/~dsh/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Books example
Hello, I'm using both books to learn Zope3 : - Web component Development with Zope 3 (Philipp Von Weitershausen) - Zope 3 (Stephan Ritcher) I read somewhere that examples are updated somewhere on the web but I can't find out where (I have to admit I did not dig into the second at the moment). Does someone know where example are available ? Sebastien ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Zope 3 Distilled book update 3
Benji York wrote: Baiju M wrote: (This is about : http://kpug.zwiki.org/Zope3Distilled) I recommend you verify that you can use the Distilled name. I believe computer book titles of that form are protected by an Addison-Wesley trademark. I'm pretty sure a trademark like that can't be claimed. You'd be effectively trademarking a dictionary word, and I'm pretty sure that's not allowed... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] need help on skins
Stephan == Stephan Richter [EMAIL PROTECTED] writes: page name=details.html permission=zope.AdminView layer=admin_layer template=admin_details.pt/ and page name=details.html permission=zope.UserView layer=user_layer template=user_details.pt/ ? Stephan Absolutely! :-) That's the point of layers and skins! apidoc from 3.3.0b2 said me that layer in the page directive is deprecated: layer - LayerField (default = None) The layer the view is in. BBB: DEPRECATED What to use instead of? Thanks! -- DSS5-RIPE DSS-RIPN 2:550/[EMAIL PROTECTED] 2:550/[EMAIL PROTECTED] xmpp:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://neva.vlink.ru/~dsh/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] PAU, how to grant roles to groups
On Fri, Sep 08, 2006 at 10:12:34AM +0400, Denis Shaposhnikov wrote: Stephan == Stephan Richter [EMAIL PROTECTED] writes: Stephan You cannot grant permissions via ZCML to principals that are Stephan located in the ZODB. You have to use the Grant view of the Stephan folder for this. Oh, that's a bad news. Am I right that Zope3 have principals either ZODB or ZCML? Principals in Zope3 are identified by simple text strings (e.g. zope.Manager). When a request is processed by the zope server, it tries to find a IAuthentication utility which has a method to provide credentials (username, password) returning a principal object which is not persistent (- changing attributes on that object wont affect anything after that request). Problem ist: When the ZCML-tree is parsed, any grant-statement tries to verify, if a given principal exists. This verification fails for principals provided by a a PAU- or another Site-Manager-registered IAuthentication utility. If you want to assign a permission to a principal for the whole zodb, just do that for the root folder and it will be inherited down the traverse path. Example: from zope.app.securitypolicy.interfaces import IPrincipalPermissionManager from zope.app import zapi root=zapi.getRoot(context) ppm=IPrincipalPermissionManager(root) ppm.grantPermissionToPrincipal('zope.ManageContent','my.principal') The permission-principal-assignment is stored as a simple text-tuple - there's no check for validity of wither the principal's or the permission's id. Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] How to make a new namespace for pagetemplates?
Hi, my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Currenty I have to do something like that: a tal:define=linkwriter nocall:context/@@linkwriter tal:replace=structure linkwriter.link(context.url,text=context.urldescription) / ... which doesn't really looks like a nice method to produce i.e. this: a class=external title=You're leaving out institute's domain. We're not responsible! href=http://example.com;This is an example company/a The 'linkwriter' chooses the a-tag's class and title according to the domain of the href. I would like to make writing those pagetemplates a bit easier - maybe like that: a tal:attributes=href context/url tal:content=context/urldescription linkwriter:marklink= / How complicated is it to write an additional pagetemplate namespace which is able to postprocess a tag, after 'tal', 'i18n' and 'metal' did their work? Thank you, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How to make a new namespace for pagetemplates?
On 9/8/06, FB [EMAIL PROTECTED] wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Why not use a piece of javascript to do this? See the linkpopper product on plone.org for a way to process all links in a page and process them. That product makes external links open in a new window, but the code should be easy to alter. -- Martijn Pieters ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How to make a new namespace for pagetemplates?
Hi, On Fri, Sep 08, 2006 at 12:54:14PM +0200, Martijn Pieters wrote: On 9/8/06, FB [EMAIL PROTECTED] wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Why not use a piece of javascript to do this? See the linkpopper product on plone.org for a way to process all links in a page and process them. That product makes external links open in a new window, but the code should be easy to alter. Thank you for the hint. But there are several reasons for not using JS: * One of the constraints of that site is javascript being optional. Problem ist: marked links are mandatory - they have to be marked even with javascript turned off. * I'd like to have a tag-postprocessing namespace for some other reasons, too - e.g. for a printing-view that automatically creates a list of links at the end of the page. * I'd like to know, how to make a new pagetemplate namespace :-). Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How to make a new namespace for pagetemplates?
FB-5 wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Why not use a piece of javascript to do this? See the linkpopper product on plone.org for a way to process all links in a page and process them. That product makes external links open in a new window, but the code should be easy to alter. Thank you for the hint. But there are several reasons for not using JS: * One of the constraints of that site is javascript being optional. Problem ist: marked links are mandatory - they have to be marked even with javascript turned off. * I'd like to have a tag-postprocessing namespace for some other reasons, too - e.g. for a printing-view that automatically creates a list of links at the end of the page. * I'd like to know, how to make a new pagetemplate namespace :-). It's fairly annoying to have to change every view that may or may not parse links, though. Think also about the case when links are coming from HTML (possibly transformed from some other format?) inside some content object rendered via a view. Look at zope.contentprovider, though. It sets up the provider: namespace. It's fairly simple. Martin -- View this message in context: http://www.nabble.com/How-to-make-a-new-namespace-for-pagetemplates--tf2238315.html#a6207359 Sent from the Zope3 - users forum at Nabble.com. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: How to make a new namespace for pagetemplates?
FB wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Currenty I have to do something like that: a tal:define=linkwriter nocall:context/@@linkwriter tal:replace=structure linkwriter.link(context.url,text=context.urldescription) / ... which doesn't really looks like a nice method to produce i.e. this: a class=external title=You're leaving out institute's domain. We're not responsible! href=http://example.com;This is an example company/a The 'linkwriter' chooses the a-tag's class and title according to the domain of the href. I would like to make writing those pagetemplates a bit easier - maybe like that: a tal:attributes=href context/url tal:content=context/urldescription linkwriter:marklink= / How complicated is it to write an additional pagetemplate namespace which is able to postprocess a tag, after 'tal', 'i18n' and 'metal' did their work? It would involve hacking Page Template sources beyond recoginition :). There are several ways to tackle your problem: * Solution outside of Zope. Martijn suggested a JavaScript. If you need it to work for non-JavaScript browsers, I suggest a WSGI middleware that checks for text/html data and transforms a elements as needed. You could do the transformation in XSLT or Python (e.g. via elementtree). * Solution within Page Templates: Write a new TALES expression type (like string: or python:) that constructs link tags. This could like: a tal:replace=structure link:context/url context/urldescription link goes here /a The link: expression would split the argument string, take the first part as the URL and the second one as the link description. Both would be fed through the PathExpression so that they're evaluated. Custom TALES expression types are components providing zope.tales.interfaces.ITALESExpression. Look at zope.tales.expressions for the implementation of the standard TALES expressions. * Solution outside Page Templates: Write a view for all objects that you want to generate URLs from. The feasibility of this solution depends on whether you always have objects with 'url' and 'urldescription' attributes (or similar) to generate links from. Then you could write: a tal:replace=structure context/@@html_linklink goes here/a The html_link view would generate the whole a tag accordingly. If you'd like to keep things flexible, the html_link view would first adapt the context to something like ILinkInformation that has the 'url' and 'urldescription' attributes. HTH Philipp ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: How to make a new namespace for pagetemplates?
Martin Aspeli wrote: FB-5 wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Why not use a piece of javascript to do this? See the linkpopper product on plone.org for a way to process all links in a page and process them. That product makes external links open in a new window, but the code should be easy to alter. Thank you for the hint. But there are several reasons for not using JS: * One of the constraints of that site is javascript being optional. Problem ist: marked links are mandatory - they have to be marked even with javascript turned off. * I'd like to have a tag-postprocessing namespace for some other reasons, too - e.g. for a printing-view that automatically creates a list of links at the end of the page. Post processing literally screams WSGI middleware to me. * I'd like to know, how to make a new pagetemplate namespace :-). Be open minded, Frank :). I think you really just want a more convenient spelling for generating URLs -- which is absolutely It's fairly annoying to have to change every view that may or may not parse links, though. Think also about the case when links are coming from HTML (possibly transformed from some other format?) inside some content object rendered via a view. Look at zope.contentprovider, though. It sets up the provider: namespace. It's fairly simple. That's a new TALES expression type. It's not what Frank originally wants (he wants a custom tal/metal/i18n like namespace for PageTemplates which is nearly impossible -- and unnecessary). But the pointer to the zope.contentprovider package is good indeed because in my earlier reply I suggested to write a custom TALES expression type and the zope.contentprovider package sets one up. Philipp ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: How to make a new namespace for pagetemplates?
Philipp von Weitershausen wrote: Martin Aspeli wrote: FB-5 wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Why not use a piece of javascript to do this? See the linkpopper product on plone.org for a way to process all links in a page and process them. That product makes external links open in a new window, but the code should be easy to alter. Thank you for the hint. But there are several reasons for not using JS: * One of the constraints of that site is javascript being optional. Problem ist: marked links are mandatory - they have to be marked even with javascript turned off. * I'd like to have a tag-postprocessing namespace for some other reasons, too - e.g. for a printing-view that automatically creates a list of links at the end of the page. Post processing literally screams WSGI middleware to me. * I'd like to know, how to make a new pagetemplate namespace :-). Be open minded, Frank :). I think you really just want a more convenient spelling for generating URLs -- which is absolutely (forgot to finish sentence) -- which is abolutely fine. There's just not one solution to the problem, and surely not the one you had in mind. Sorry :( ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: need help on skins
Denis Shaposhnikov wrote: Stephan == Stephan Richter [EMAIL PROTECTED] writes: page name=details.html permission=zope.AdminView layer=admin_layer template=admin_details.pt/ and page name=details.html permission=zope.UserView layer=user_layer template=user_details.pt/ ? Stephan Absolutely! :-) That's the point of layers and skins! apidoc from 3.3.0b2 said me that layer in the page directive is deprecated: layer - LayerField (default = None) The layer the view is in. BBB: DEPRECATED What to use instead of? See http://dev.zope.org/Zope3/SimplifySkinning ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Zope 3 Distilled book update 3
Chris Withers wrote: Benji York wrote: Baiju M wrote: (This is about : http://kpug.zwiki.org/Zope3Distilled) I recommend you verify that you can use the Distilled name. I believe computer book titles of that form are protected by an Addison-Wesley trademark. I'm pretty sure a trademark like that can't be claimed. You'd be effectively trademarking a dictionary word, and I'm pretty sure that's not allowed... Let's see, looking through the first pages of my English dictionary, it seems that Apple is also a dictionary word... :) ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Zope 3 Distilled book update 3
2006/9/8, Philipp von Weitershausen [EMAIL PROTECTED]: I'm pretty sure a trademark like that can't be claimed. You'd be effectively trademarking a dictionary word, and I'm pretty sure that's not allowed...Let's see, looking through the first pages of my English dictionary, it seems that Apple is also a dictionary word...:) Not to mention the last pages of that dictionary and holes in the walls of houses. ;) Best, Miklós -- Miklós Prisznyák Principal Consultant, owner http://www.jegenye.com ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] need help on skins
On Friday 08 September 2006 04:54, Denis Shaposhnikov wrote: apidoc from 3.3.0b2 said me that layer in the page directive is deprecated: layer - LayerField (default = None) The layer the view is in. BBB: DEPRECATED What to use instead of? This is a mistake. Could you make a bug report please? http://www.zope.org/Collectors/Collectors/Zope3-dev Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] PAU, how to grant roles to groups
On Friday 08 September 2006 02:12, Denis Shaposhnikov wrote: Stephan You cannot grant permissions via ZCML to principals that are Stephan located in the ZODB. You have to use the Grant view of the Stephan folder for this. Oh, that's a bad news. Am I right that Zope3 have principals either ZODB or ZCML? Right. Note that you do not have to use the Grant view. You can also grant permissions and roles programmatically, which is what I am doing in my customer projects. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: need help on skins
Stephan Richter wrote: On Friday 08 September 2006 04:54, Denis Shaposhnikov wrote: apidoc from 3.3.0b2 said me that layer in the page directive is deprecated: layer - LayerField (default = None) The layer the view is in. BBB: DEPRECATED What to use instead of? This is a mistake. Huh? The browser:layer directive has been deprecated. See http://dev.zope.org/Zope3/SimplifySkinning ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] PAU, how to grant roles to groups
Stephan == Stephan Richter [EMAIL PROTECTED] writes: Stephan Right. Note that you do not have to use the Grant Stephan view. You can also grant permissions and roles Stephan programmatically, which is what I am doing in my customer Stephan projects. Could you show a little example of it? Thanks! -- DSS5-RIPE DSS-RIPN 2:550/[EMAIL PROTECTED] 2:550/[EMAIL PROTECTED] xmpp:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://neva.vlink.ru/~dsh/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: need help on skins
Philipp von Weitershausen wrote: Stephan Richter wrote: On Friday 08 September 2006 04:54, Denis Shaposhnikov wrote: apidoc from 3.3.0b2 said me that layer in the page directive is deprecated: layer - LayerField (default = None) The layer the view is in. BBB: DEPRECATED What to use instead of? This is a mistake. Huh? The browser:layer directive has been deprecated. See http://dev.zope.org/Zope3/SimplifySkinning Never mind, we're talking about LayerField here. Hmm. LayerField is deprecated and will be replaced by InterfaceField once it's gone. The 'layer' argument to browser:page isn't deprecated. We should fix the docstring of LayerField. It either says too much or too little :) ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: PAU, how to grant roles to groups
Denis Shaposhnikov wrote: Stephan == Stephan Richter [EMAIL PROTECTED] writes: Stephan Right. Note that you do not have to use the Grant Stephan view. You can also grant permissions and roles Stephan programmatically, which is what I am doing in my customer Stephan projects. Could you show a little example of it? See FB's reply in this thread. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Zope 3 Distilled book update 3
Philipp von Weitershausen wrote: I'm pretty sure a trademark like that can't be claimed. You'd be effectively trademarking a dictionary word, and I'm pretty sure that's not allowed... Let's see, looking through the first pages of my English dictionary, it seems that Apple is also a dictionary word... Yes, and you'll also notice that Apple's trademarks are not just for the word Apple... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Zope 3 Distilled book update 3
Chris Withers wrote: Philipp von Weitershausen wrote: I'm pretty sure a trademark like that can't be claimed. You'd be effectively trademarking a dictionary word, and I'm pretty sure that's not allowed... Let's see, looking through the first pages of my English dictionary, it seems that Apple is also a dictionary word... Yes, and you'll also notice that Apple's trademarks are not just for the word Apple... http://www.apple.com/legal/trademark/appletmlist.html explicitly lists the word Apple as one of their trademark. The point is that trademarks have a domain. So Apple Computers Inc. can trademark Apple for computers, Apple Records can trademark Apple for music. When Apple Computers Inc. started doing things in the music business, they got sued by Apple Records over a trademark issue. So, clearly it is possible to trademark dictionary words. And to sue someone over them :). Philipp ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How to make a new namespace for pagetemplates?
FB wrote: Hi, On Fri, Sep 08, 2006 at 12:54:14PM +0200, Martijn Pieters wrote: On 9/8/06, FB [EMAIL PROTECTED] wrote: my employer want to have all external links marked with a small icon telling anonymous users from the internet that everything behind given links is beyond our responsibility. Why not use a piece of javascript to do this? See the linkpopper product on plone.org for a way to process all links in a page and process them. That product makes external links open in a new window, but the code should be easy to alter. Thank you for the hint. But there are several reasons for not using JS: * One of the constraints of that site is javascript being optional. Problem ist: marked links are mandatory - they have to be marked even with javascript turned off. * I'd like to have a tag-postprocessing namespace for some other reasons, too - e.g. for a printing-view that automatically creates a list of links at the end of the page. * I'd like to know, how to make a new pagetemplate namespace :-). As a follow-on to Philipp's comment about WSGI middleware: It could be fairly easy (to be sure, not *really* easy) to do a search-and-replace for link tags and do appropriate alterations in WSGI middleware. If I were doing this, I might re-parse the document in middleware using lxml, then do an xpath query to find the locations in the document that need changing. Then, it would be a matter of using the elementtree API to make the changes. lxml.etree.tounicode() would put the page back together for output. Since outgoing pages generated with ZPT are generally parseable, this might work OK. N.B., You may have to use the DTD at some point with this method. Lxml will attempt to xml-minimize (e.g., br/) all tags without text content, so you will have to assure that this does not happen where it shouldn't. If you are not too married to generating pages with ZPT, and if you like the elementtree API, there is also a possibility of a lxml/elementtree (python-only) method for generating pages, which can have a method for post-processing the page, in a manner like the above, except that the document stays in a parsed state until it is output by Zope. I have a working base class for this. I call it XTemplate. It's not-quite-ready-for-prime-time (no docs or tests, yet, and you have to do skinning within this framework), but if there is interest, I should be able to release a preview in the near future. -Jim Washington ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: How to make a new namespace for pagetemplates?
On 9/8/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote: * Solution outside of Zope. Martijn suggested a JavaScript. If you need it to work for non-JavaScript browsers, I suggest a WSGI middleware that checks for text/html data and transforms a elements as needed. You could do the transformation in XSLT or Python (e.g. via elementtree). Or do as zc.resourcelibrary does; implement a subclass of BrowserResponse that does the transformation for you. Then override the default request (so it'll use your response). See http://svn.zope.org/zc.resourcelibrary/trunk/src/zc/resourcelibrary/publication.py?rev=69889view=auto and http://svn.zope.org/zc.resourcelibrary/trunk/src/zc/resourcelibrary/configure.zcml?rev=68929view=auto -- Martijn Pieters ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: How to make a new namespace for pagetemplates?
Hi, On Fri, Sep 08, 2006 at 01:45:45PM +0200, Philipp von Weitershausen wrote: [snip] Write a new TALES expression type (like string: or python:) that constructs link tags. This could like: a tal:replace=structure link:context/url context/urldescription link goes here /a The link: expression would split the argument string, take the first part as the URL and the second one as the link description. Both would be fed through the PathExpression so that they're evaluated. Custom TALES expression types are components providing zope.tales.interfaces.ITALESExpression. Look at zope.tales.expressions for the implementation of the standard TALES expressions. Perfect :-) . That's what I'll do. Thank you, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Zope 3 as WSGI app using mod_python
On 7/8/06, Achim Domma [EMAIL PROTECTED] wrote: I'm interested in running Zope 3 via mod_python as WSGI app directly in apache. I like the idea to configure different instances simply in my apache config and don't have to setup different running zope instances. You are gonna have to do that anyway. :) You will still have Zope3 running, you just won't use zserver. If it's easy to set it up that way I don't know. It makes theoretical sense to do so however, so keep us posted. Could somebody tell me what the status of this stuff is? Is it just an experiment which might be dropped in the future? Has somebody experiences to share? WSGI is pretty cool. The Zope 3 implementation seems stable. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Blog package
On 8/17/06, David Pratt [EMAIL PROTECTED] wrote: * Accessing /blog/ will show a list of all posts by reverse date order * Accessing /blog/year/, eg /blog/2006/ will show a listing of posts for just that year. * Accessing /blog/year/month/, eg /blog/2006/12/ will show a listing of posts for that month. * Accessing /blog/year/month/day/, eg /blog/2006/12/20/ will show all postings on that particular day * Accessing /blog/year/month/day/article will show a particular article. What!? Does people actually WANT that? I thought that was just an effect of either crappy programming or stupid programmers. :) Can you explain an approach to accomplish something similar in zope3. As long as you also make it possible to access each article with just /blog/article, I'll be happy. :) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Replacing Macros with Contentprovider
Is it possible to use contentproviders as an alternative to macros for providing the look and feel of a site? I thought I saw someone mention something to this affect. Thanks. ksmith ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Replacing Macros with Contentprovider
On Friday 08 September 2006 15:07, [EMAIL PROTECTED] wrote: Is it possible to use contentproviders as an alternative to macros for providing the look and feel of a site? I thought I saw someone mention something to this affect. Yes. While we have not completely removed the use of macros yet, we are pretty close. There are some scenarios where macros still accelerate, like the general o-wrap, but other than that we have completely replaced their need. Viewlets/Content Providers are much more powerful and since they are representation components in their own right, it is much easier to separate template and logic. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-dev] Re: [Zope3-Users] How does the static-apidoc script works?
On Thursday 07 September 2006 15:56, Florian Lindner wrote: I terminated it at this point. At the end it gets very slow, about one link every two seconds, but it seems to work. It should take about 30-45 minutes to complete. The warnings should get less, but the internal server error indicates that there are broken views in apidoc. ;-) So we would need to check those. Should I check in? Yes, any improvement is better. It's okay, if the publisher browser fails for now. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users