Re: [Zope3-Users] Attempting to use z3c.rml properly...
Roger Ineichen wrote: >> I've given up on using z3c.rml (or indeed reportab's open-source >> software) with Google's AppEngine as the restrictions they >> were too constraining. It's interesting to see z3c.rml knocking around. I've often questioned the legal existence of z3c.rml. As far as I remember, RML forms part of the commercial stuff that ReportLab (the company) offers and I'm not sure even the spec of the xml and/or the name RML are available for use without talking to ReportLab first... Anyway, just thought I'd mention it as legality is something people should take into account even in the open source world ;-) 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] Attempting to use z3c.rml properly...
Hi Ken > Betreff: [Zope3-Users] Attempting to use z3c.rml properly... > > Hi All, > > I've given up on using z3c.rml (or indeed reportab's open-source > software) with Google's AppEngine as the restrictions they > were too constraining. > > Now, I just want to be able to run z3c.rml on my machine at > home to verify how it works. Once it works, I'll be able to > upload it to a regular web host with less restrictions. > > So, starting with a clean z3c.rml 0.8.1: > > Installing onto a XP Pro SP3 machine, Python 2.5 with > setuptools. I did a 'python setup.py install' for > zope.event, zope.interface, zope.schema, and > zope.i18nmessageid first. Everything except > zope.i18nmessageid went well. > > Then, I did the same for z3c.rml. It pulled in all the > dependancies (downloaded lxml 2.2, and checked zope.schema > 3.5.5, zope.interface 3.5.2, reportlab 2.3, pyPdf 1.12). I'm not really sure how your setup looks like. But we use z3c.rml very sucessfull for the project Stephan wrote the library for. But we still use reportlab 2.1 withthe newest z3c.rml release. > Okay, now what? How best to launch this? > > If I cd into C:\Temp\z3c.rml\src\z3c\rml, and give this command line: > python rml2pdf.py tests\input\simple-layout.rml > > I get this error: > > Traceback (most recent call last): > File "rml2pdf.py", line 24, in >from z3c.rml import document, interfaces File > "c:\python25\lib\site-packages\z3c.rml-0.8.1dev-py2.5.egg\z3c\ > rml\document.py", > line 26, in >from z3c.rml import attr, directive, interfaces, occurence > File > "c:\python25\lib\site-packages\z3c.rml-0.8.1dev-py2.5.egg\z3c\ > rml\attr.py", > line 35, in >from z3c.rml import interfaces > File > "c:\python25\lib\site-packages\z3c.rml-0.8.1dev-py2.5.egg\z3c\ > rml\interfaces.py", > line 138, in >class IDeprecatedDirective(zope.interface.interfaces.IInterface): > AttributeError: 'module' object has no attribute 'interfaces' This looks like zope.interface isn't available in your sys path. I think you need to review the c.buildout documentation and try to setup a project. Probably take a look at zopeproject I think available on PyPi. I think it should be possible to write a script or use the existing scripts in z3c.rml and use the z3c.recipe.dev:script to generate a working starting point based on buildout for running your PDF conversion script. At least buildout makes sure that your packages are installed correct as working unit. Also a good starting point is the READEM.txt file in the z3c.rml package. There are several tests which will produce several PDF based on rml code. > If I cd into the 'tests' directory, and try this: > python text_rml.py > > I get almost the same traceback (just with 'text_rml.py' > replacing 'rml2pdf.py'). > > Am I trying to run this correctly? I'd put money on my doing > something ham-fisted here, but I can't see what it is. > > Just for context, it'd be hard to underestimate my experience > with Python. I've only been at this a week or so, and > figuring out things as I go, so please don't worry about > hurting my feeling by going too simple! > > Thanks for any help. No problem Regards Roger Ineichen > -Ken > > ___ > 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] zodb is growing every login/logout
On Tue, Apr 21, 2009 at 10:36 AM, Jens wrote: > Every login and logout, the ZODB grow about 300Byte. After some logins, > the ZODB is getting bigger and bigger, and I have to pack it manually. When I debug things like this I use some combination of fstail and a hacked ZEO client that triggers a pdb each time an object is stored. Using one or both of those you should be able to track down what kinds of objects are being written. From there hopefully you'll be able to determine what is causing the writes. -- Benji York Senior Software Engineer Zope Corporation ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Attempting to use z3c.rml properly...
Hi All, I've given up on using z3c.rml (or indeed reportab's open-source software) with Google's AppEngine as the restrictions they were too constraining. Now, I just want to be able to run z3c.rml on my machine at home to verify how it works. Once it works, I'll be able to upload it to a regular web host with less restrictions. So, starting with a clean z3c.rml 0.8.1: Installing onto a XP Pro SP3 machine, Python 2.5 with setuptools. I did a 'python setup.py install' for zope.event, zope.interface, zope.schema, and zope.i18nmessageid first. Everything except zope.i18nmessageid went well. Then, I did the same for z3c.rml. It pulled in all the dependancies (downloaded lxml 2.2, and checked zope.schema 3.5.5, zope.interface 3.5.2, reportlab 2.3, pyPdf 1.12). Okay, now what? How best to launch this? If I cd into C:\Temp\z3c.rml\src\z3c\rml, and give this command line: python rml2pdf.py tests\input\simple-layout.rml I get this error: Traceback (most recent call last): File "rml2pdf.py", line 24, in from z3c.rml import document, interfaces File "c:\python25\lib\site-packages\z3c.rml-0.8.1dev-py2.5.egg\z3c\rml\document.py", line 26, in from z3c.rml import attr, directive, interfaces, occurence File "c:\python25\lib\site-packages\z3c.rml-0.8.1dev-py2.5.egg\z3c\rml\attr.py", line 35, in from z3c.rml import interfaces File "c:\python25\lib\site-packages\z3c.rml-0.8.1dev-py2.5.egg\z3c\rml\interfaces.py", line 138, in class IDeprecatedDirective(zope.interface.interfaces.IInterface): AttributeError: 'module' object has no attribute 'interfaces' If I cd into the 'tests' directory, and try this: python text_rml.py I get almost the same traceback (just with 'text_rml.py' replacing 'rml2pdf.py'). Am I trying to run this correctly? I'd put money on my doing something ham-fisted here, but I can't see what it is. Just for context, it'd be hard to underestimate my experience with Python. I've only been at this a week or so, and figuring out things as I go, so please don't worry about hurting my feeling by going too simple! Thanks for any help. -Ken ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zodb is growing every login/logout
@Paul: yes, ZODB just grow after login and logout. @Nikolay: Yes, I'm using the default persistent zope3 session. This was also my first idea, and I switched to a RAM Session, but it had no effects. I tested the RAM Session by restart zope, and I where logged out after restart (so I think the RAM session is working by losing the login-data). But the ZODB was growing again. Here is my code to switch the session and my session class: - #from zope.session.session import RAMSessionDataContainer from zope.session.session import PersistentSessionDataContainer class MySession(PersistentSessionDataContainer): timeout=5*60*6 def __init__(self): super(MySession,self).__init__() # timeout session 5 minuten: self.timeout=MySession.timeout self.resolution=1*60 --- But i switched just in the app, maybe I have to change the global session in zope? Thanks for your help Jens Paul Winkler schrieb: > On Tue, Apr 21, 2009 at 04:36:01PM +0200, Jens wrote: >> Hello everybody, >> >> I'm building a small web app by using the great grok.zope.org. >> >> This is what I want to do: >> >> An ldap-user login, do something (change password etc) and logout. No >> data will be stored in the zodb, all changes are made in ldap. >> >> So far so good, all works fine. I'm using ldappas and ldapadapter as an >> PAU for zope3. >> >> Just a small problem, maybe someone can help me. >> >> Every login and logout, the ZODB grow about 300Byte. After some logins, >> the ZODB is getting bigger and bigger, and I have to pack it manually. > > Are you sure it's just logins? I had a problem with Grok of ZODB > bloat on every single request. Upgrading to zope.annotation>=3.4.1 > fixed it. > > We weren't using LDAP though. Might be unrelated to your problem. > > ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users