Re: [Zope3-Users] Configuration via ZCML
Ronaldo Z. Afonso a écrit : Hi all, I'm trying to configure a content type but it seems my "configure.zcml" is not being used. Do I have explicitly to tell Zope where this configure.zcml file is? Hi Ronaldo, you should add a somewhere in an upper configure.zcml or site.zcml. If the file name is not configure.zcml, but for example meta.zcml, you should specify it with Christophe Thanks in advance. Ronaldo. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Configuration via ZCML
Hey, On Feb 12, 2008 4:15 PM, Ronaldo Z. Afonso <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to configure a content type but it seems my "configure.zcml" > is not being used. Do I have explicitly to tell Zope where this > configure.zcml file is? > Thanks in advance. Make sure you have your pakage inside of etc/package-includes of your instance. So you if you have a foo package in your lib/python, then you need to put a foo-configure.zcml inside etc/package-includes with: That's it. HTH, Fernando ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3ext
Seems not much interest in cms for zope3 in community. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Configuration via ZCML
Hi all, I'm trying to configure a content type but it seems my "configure.zcml" is not being used. Do I have explicitly to tell Zope where this configure.zcml file is? Thanks in advance. Ronaldo. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3ext
Hi Nikolay, Nikolay Kim wrote: Hello, Last year i worked on zope3 based cms. Today i built first site for my friend without python coding, only TTW customization. So i think system is ready for first development release. All code released under ZPL license. Basic features: Control panel, Principals managerment, Personal preferences, Basic TTW customization, Pluggable Content Types, Pluggable membership system, Members home folders, Product installer, Cataloging and searching, Full text searching with lucene, Basic forum product, Easy install with buildout Here project homepage - http://z3ext.net/ Source code - http://sourceforge.net/projects/z3ext Discussion Forums - http://z3ext.net/forums/ Everyone can try it locally svn co https://z3ext.svn.sourceforge.net/svnroot/z3ext/z3ext.portal/trunk z3ext cd z3ext python2.4 ./bootstrap.py ./bin/buildout ./bin/app z3ext.net is built with z3ext, you only need checkout z3ext.homesite package svn co https://z3ext.svn.sourceforge.net/svnroot/z3ext/z3ext.homesite/trunk z3ext Installing z3ext CMS was very easy. I have few suggestions. 1. I think your CMS application can be renamed to something else. Instead of using 'z3ext.portal' as the main entry point, a non-namespace package would be better. (z3extcms, z3extportal or something like that). 2. There is a new version of bootstrap.py inside buidout source tree. 3. A basic tutorial about how to use this CMS would be great. Regards, Baiju M ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Datetime Error
Hi, On Sat, Feb 09, 2008 at 08:45:00PM -0200, Ronaldo Z. Afonso wrote: > I'm just installing Zope-3.3.1 with Python-2.2.4 and "make check" is > raising the following error: > > > Failure in test show (zope.app.file.browser.file.FileView) > Failed doctest test for zope.app.file.browser.file.FileView.show > File > "/usr/src/Zope-3.3.1/build/lib.linux-i686-2.4/zope/app/file/browser/file.py", > line 39, in show > > -- > File > "/usr/src/Zope-3.3.1/build/lib.linux-i686-2.4/zope/app/file/browser/file.py", > line 79, in zope.app.file.browser.file.FileView.show > Failed example: > datetime.fromtimestamp(zope.datetime.time( > request.response.getHeader('Last-Modified'))) > Expected: > datetime.datetime(2006, 1, 1, 0, 0) > Got: > datetime.datetime(2006, 1, 1, 1, 0) > > > Can anybody help me with this? It looks like a timezone error to me. I cannot reproduce it with Zope 3 trunk. Perhaps it was fixed in a later version? I wouldn't worry too much. Marius Gedminas -- If the ancients were right and to think is to exist, does Microsoft exist? signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3ext
> Installing z3ext CMS was very easy. I have few suggestions. > > 1. I think your CMS application can be renamed to something else. > Instead of using 'z3ext.portal' as the main entry point, a > non-namespace > package would be better. (z3extcms, z3extportal or something like that). yes, i'm working on this right now, it's just developers preview > 2. There is a new version of bootstrap.py inside buidout source tree. ok > 3. A basic tutorial about how to use this CMS would be great. i will write tutorial. there was package messageboard that show basic steps for building application with zope3, i can rewrite it for z3ext, but i can't find it in svn.zope.org, anybody knows where it is? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3ext
Nikolay Kim wrote: > 3. A basic tutorial about how to use this CMS would be great. i will write tutorial. there was package messageboard that show basic steps for building application with zope3, i can rewrite it for z3ext, but i can't find it in svn.zope.org, anybody knows where it is? http://svn.zope.org/book/trunk/messageboard/ Regards, Baiju M ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Help configuring multiple forms in a viewlet
I am building a new site and trying to put editing of secondary stuff into viewlets. In a viewlet slot I want to display one of three forms, display, edit or add. Is there an elegant solution to this? I have looked at the formdemo wizard example, which uses multiple sub-forms for something similar. That has a more structured mechanism for moving between forms that my example does. Is that they best approach? Thanks, Kevin ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Grok/Zope 3 developer position in Bangalore, India
Hi all, We are a team of 40 scientists at the Institute of Bioinformatics ( http://ibioinformatics.org), a non-profit interdisciplinary research centre in Bangalore, India. Our Institute has a close collaboration with Johns Hopkins University, USA. We combine computational and experimental biology as we have a team of people with expertise in programming, bioinformatics, genomics and proteomics. We are looking for an experienced Python developer interested in applying Zope 3 related technologies to the new projects we are starting and to refactor our legacy web applications written in Zope 2: http://hprd.org http://netpath.org http://humanproteinpedia.org All the code we write is released as Open Source. Anyone interested in the position can write to me at danny AT ibioinformatics org Regards, Danny ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Datetime Error
Hi, I installed zope anyway and it's working fine. I'll not worry until something get wrong. I'm just learning Zope. Thank you. Ronaldo On Tue, 2008-02-12 at 19:23 +0200, Marius Gedminas wrote: > Hi, > > On Sat, Feb 09, 2008 at 08:45:00PM -0200, Ronaldo Z. Afonso wrote: > > I'm just installing Zope-3.3.1 with Python-2.2.4 and "make check" is > > raising the following error: > > > > > > Failure in test show (zope.app.file.browser.file.FileView) > > Failed doctest test for zope.app.file.browser.file.FileView.show > > File > > "/usr/src/Zope-3.3.1/build/lib.linux-i686-2.4/zope/app/file/browser/file.py", > > line 39, in show > > > > -- > > File > > "/usr/src/Zope-3.3.1/build/lib.linux-i686-2.4/zope/app/file/browser/file.py", > > line 79, in zope.app.file.browser.file.FileView.show > > Failed example: > > datetime.fromtimestamp(zope.datetime.time( > > request.response.getHeader('Last-Modified'))) > > Expected: > > datetime.datetime(2006, 1, 1, 0, 0) > > Got: > > datetime.datetime(2006, 1, 1, 1, 0) > > > > > > Can anybody help me with this? > > It looks like a timezone error to me. I cannot reproduce it with Zope 3 > trunk. Perhaps it was fixed in a later version? > > I wouldn't worry too much. > > Marius Gedminas > ___ > Zope3-users mailing list > Zope3-users@zope.org > http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] login/logout with z3c.pagelet?
> Hi, > > Are there any login/logout/redirect templates for z3c.pagelet? > > I could reuse the templates from zope.app.authentication, but they > obviously > contain some macros that need some registrations I don't have, such as > @@standard_macros. And my layout template does not contain any macro. > Maybe there is some package with a layer that does this job? > How are you doing? I simply created a simple z3c.form based form that looks like this: class LoginPage(ActionForm): """ Login logic and page """ template = ViewPageTemplateFile('pt/login.pt') fields = form.field.Fields(IFYMUser).select('login', 'password') prefix = "login_data" unsuccessfulLogin = False def __call__(self): request = self.request if (not IUnauthenticatedPrincipal.providedBy(request.principal) and 'login_data.widgets.login' in request): # Login succeeded! camefrom = request.get('camefrom', '.') request.response.redirect(camefrom) else: if 'login_data.widgets.login' in request: # Something went wrong with the authentication self.unsuccessfulLogin = True return super(LoginPage, self).__call__() @form.button.buttonAndHandler(_('Anmelden'), name='login') def handleLogin(self, action): data, errors = self.extractData() if errors: self.status = self.formErrorsMessage return if self.unsuccessfulLogin: raise ActionExecutionError(Invalid( _(u"Ungültige Login/Passwort-Kombination!"))) @form.button.buttonAndHandler(_(u'Abbrechen'), name='abbrechen') def handle_abbrechen(self, action): self.request.response.redirect('index.html') class LogoutPage(BrowserPagelet): """ Logout logic and page """ template = ViewPageTemplateFile('pt/logout.pt') def update(self, nextURL=None): if not IUnauthenticatedPrincipal.providedBy(self.request.principal): auth = getUtility(IAuthentication) ILogout(auth).logout(self.request) site_path = absoluteURL(getSite(), self.request) return self.request.response.redirect(site_path + '/logout.html') My templates looks like this: - login Anmelden logout Abmelden Sie sind nun vom System abgemeldet. Moreover, I have a link in my menu that points to the login/logout page, (only logout if logged in and reverse). However, I still have the problem that I don't know how to make Zope3 point to my login page in case unauthorized content is requested. Zope3 displays some "Unauthorized - a sever error has occured" page I don't know where it comes from. Best Regards, Hermann P.S.: Ah yes, the "ActionForm" is a simple form inheriting from form.Form that ignores the context. And the input fields in the template rely on my z3c.formsnippets package, which you can easily replace with your TAL code. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] z3ext
Hello, Last year i worked on zope3 based cms. Today i built first site for my friend without python coding, only TTW customization. So i think system is ready for first development release. All code released under ZPL license. Basic features: Control panel, Principals managerment, Personal preferences, Basic TTW customization, Pluggable Content Types, Pluggable membership system, Members home folders, Product installer, Cataloging and searching, Full text searching with lucene, Basic forum product, Easy install with buildout Here project homepage - http://z3ext.net/ Source code - http://sourceforge.net/projects/z3ext Discussion Forums - http://z3ext.net/forums/ Everyone can try it locally svn co https://z3ext.svn.sourceforge.net/svnroot/z3ext/z3ext.portal/trunk z3ext cd z3ext python2.4 ./bootstrap.py ./bin/buildout ./bin/app z3ext.net is built with z3ext, you only need checkout z3ext.homesite package svn co https://z3ext.svn.sourceforge.net/svnroot/z3ext/z3ext.homesite/trunk z3ext ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users