Re: [Zope-dev] More comments on ZPatterns
"pje" == Phillip J Eby [EMAIL PROTECTED] writes: a (default) rack of TableInfo objects. Now... some of the Tableinfo properties, and some of the View properties are *really* in MySQL. I figured out, from the mail list and the source code, that I can create a Generic attribute provider in the rack that can get attributes from an SQL database for my DataSkin descendents using the 'source expression' and 'target expression' business. pje Congratulations, you found the top secret documentation. :) That's what I love about working with ZPatterns. You get to play all sorts of "Roles" as a developer... part "James Bond", part "Hercule Poirot", part "Bumbling Imbecile". ;-) I've heard that it's "Roles before Objects" but I had no idea it would be like this! Here's one I've been feeling kinda stupid about: Now, "SkyDiver ... *used as*" means we should: 1. subclass (not a good choice) 2. implement interface 2.1. by copying and pasting methods code (or whole methoids) 2.2. by proxiyng (SkyDiver has a references to actual Customer and ResourceUser) 2.3. by transmitting messages to SkyDiverSpecialist which will pass unhandled messages to CustomerSpecialist and ResourceUserSpecialist (this is a variant of 2.2. case) The 2.3. case means we should use objects without types (identity markers). pje None of the above. SkyDiver should inherit from a Party base class. For pje Customer and ResourceUser behavior, one adds propertysheets whose class is pje provided by the respective frameworks. This is extension through pje *composition*, rather than inheritance. It is similar to the COM approach, pje where you can ask an object to give you a pointer to an interface. In this pje approach, you ask for a propertysheet that provides the interface. "One adds propertysheets" is much easier said than done... IMHO. The only way I've seen to add propertysheets to objects is to call manage_addPropertySheet on individual instances... as described in this earlier email: pje pje This isn't exactly code, but... pje pje Set up a LoginManager with a GenericUserSource, and set up the GUS to have pje users. Make sure that the GUS has a "Persistent Sheet Provider" on the pje "Sheet Providers" tab. Then go to: pje pje /acl_users/someuser/propertysheets/manage_addPropertySheet?id=sheetnamens= pje pje You should get a screen that says "OK". pje pje Then go to: pje pje /acl_users/someuser/propertysheets/sheetname/manage pje pje And you should see a propertysheet editor for your new sheet. pje (Unfortunately, it won't let you edit anything unless your user class is pje based on PropertyManager, due to an oversight in ZPatterns 0.3.0; the pje VirtualSheets class needs "def propertyLabel(self,id): return id" to work pje with the default Zope UI for a non-ZClass property sheet.) pje pje Or go to: pje pje /acl_users/someuser/propertysheets/manage pje pje And you should see your new propertysheet listed on the sheets management pje interface (which is somewhat broken, but that's because the basic one in pje Zope is, it's not ZPatterns' fault. ;) ) pje pje Anyway, this is all very primitive but should get better in later versions. pje 0.4.0 fixes the 0.3.0 and either it or 0.5.0 will replace the broken pje propertysheets/manage screen with one that will let you add/edit/delete pje sheets properly. I just want to make sure I understand... is the intention that property management needs to be done on each instance separately? So if I add a new property to one of my property sheets, I need to somehow update the propertysheets of each of the instances? Also if I need to create propertysheets for each instance... where should that be done? I suppose it makes sense to put that in the Specialist that handles the object that gets the properties?...no? thanks, -steve ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] More comments on ZPatterns
Steve Spicklemire wrote: I just want to make sure I understand... is the intention that property management needs to be done on each instance separately? So if I add a new property to one of my property sheets, I need to somehow update the propertysheets of each of the instances? Also if I need to create propertysheets for each instance... where should that be done? I suppose it makes sense to put that in the Specialist that handles the object that gets the properties?...no? No need for all that. Your instances are DataSkins, and they get their PropertySheets via an InjectionFolder. All you need to do is tell a DataManager that is in an appropriate InjectionFolder that it should handle DataSkins of whatever meta_type your instances have. Furthermore, configure this DataManager to provide the PropertySheets you want, with sensible default values, and suddenly, all your instances suport this propertysheet. An "appropriate InjectionFolder" is one that lies in the acquisition path of your instances. [postscript: I only realized this stuff a couple of days ago, when I started using ZPatterns on a project :-) ] -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] More comments on ZPatterns
At 12:38 PM 7/9/00 -0500, Steve Spicklemire wrote: pje None of the above. SkyDiver should inherit from a Party base class. For pje Customer and ResourceUser behavior, one adds propertysheets whose class is pje provided by the respective frameworks. This is extension through pje *composition*, rather than inheritance. It is similar to the COM approach, pje where you can ask an object to give you a pointer to an interface. In this pje approach, you ask for a propertysheet that provides the interface. "One adds propertysheets" is much easier said than done... IMHO. The only way I've seen to add propertysheets to objects is to call manage_addPropertySheet on individual instances... as described in this earlier email: That's the only way that's implemented "out of the box". But there's no reason you can't implement a SheetProvider that automatically creates the sheet when the object is added, or why you can't use a GenericTrigger to add the sheet using one of the out-of-the-box SheetProviders. When I get SkinScript objects done, this'll be easier because you'll be able to just spec out a propertysheet in SkinScript and have the dirty work done for you. I just want to make sure I understand... is the intention that property management needs to be done on each instance separately? So if I add a new property to one of my property sheets, I need to somehow update the propertysheets of each of the instances? Also if I need to create propertysheets for each instance... where should that be done? I suppose it makes sense to put that in the Specialist that handles the object that gets the properties?...no? The intention is that you use SheetProviders for anything global. Adding propertysheets on an instance-by-instance basis is something that's intended for an interface point between two frameworks. Say for example you have a project scheduling framework that needs to store a due date associated with a document -- the scheduling system can query for a scheduling propertysheet, and if it doesn't exist, add it. However, since you control what SheetProvider implements that propertysheet, you can (for example) use the same SQL database for all scheduling fields across your site. If you don't need special handling, however, you can leave the default "Persistent" SheetProvider in place and the scheduling properties would get stored persistently. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] More comments on ZPatterns
At 01:37 PM 7/9/00 -0500, Steve Spicklemire wrote: Thanks Steve, Eegads! OK... all my instances currently live in a defaultRack of one specialist or another... so exactly how do I "configure this DataManager to provide the PropertySheets (I) want, with sensible default values, and suddenly, all (my) instances suport this propertysheet." I think this is the step I'm missing. I seem to be able to fiddle with "Data Plug-ins" all day long.. I can create "Persistant Sheet Providers" and type all sorts of stuff into various boxes and they never magically seem to behave the way your are describing... so either I'm missing some basic concept or it doesn't really work that way! It doesn't *quite* work that way. As mentioned in my e-mail, if you want the sheets to already exist, you'll need to either create a custom SheetProvider in Python, or you'll need to use a GenericTrigger to add them when objects are added (which won't help you when you want to add a new sheet after the fact). Now, if you're designing a new project, as Steve A. was, then of course you can set things up cleanly from the start. Globally adding sheets at a later point currently requires a custom provider, but should be doable with a later version of ZPatterns just by writing the SkinScript for the new sheet(s). ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] cr/lf causing spaces
Hello, At 20:43 08.07.2000 +, you wrote: Would it be possible for Zope (which has to parse the dtml files etc anyway) to convert cr+lf to plain cr? You might want to give a look to a product called "StructuredText Document" under http://www.zope.org/Members/tseaver/STX_Document. It will keep the the layout as typed without having to give any HTML. But the good thing with it is that you can add some HTML tags if needed and they will be rendered correctly in your browser. There is also a How-To about structued text ( http://www.zope.org/Members/millejoh/structuredText ) The other way to use structured-text is by telling it to Zope when you render and object with dtml-var stx_doc_name fmt=structured-text (taken from the how-to mentioned above). the structured-text format is one of these many cool Zope features. The problem I have currently is that if I format my dtml source nice and orderly, I end up having spaces in my Output where I don't want any... Other way arround would be to manually add a BR before every carriage return you make... but I don't think that's what you want ;-) Best regards, Gérard Métrailler Jr. Meeting Maker Inc. ... the intelligent choice for collaborative scheduling Email: [EMAIL PROTECTED] Web: http://www.meetingmaker.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Another DateTime Strangeness
Zope just stored a DateTime I entered as 13:14 in a slightly odd way: 2000/07/09 13:13:60 GMT+1 Known bug? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] NewBie question for sqlsession
Hello, I just installed sqlsession 0.2.9 in my NT with zope version 2.1.6, and I had created the table in Gadfly according to the given sql schema. When I try to load the Session into my page, it just work for the first time, after that I got an error like this : Zope Error Zope has encountered an error while publishing this resource. KeyError Sorry, a Zope error occurred. and when I view the source, I got this : !-- Traceback (innermost last): File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 214, in publish_module File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 179, in publish File E:\MYBOOK~2\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 165, in publish File E:\MYBOOK~2\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: index_html) File E:\MYBOOK~2\lib\python\OFS\DTMLDocument.py, line 166, in __call__ (Object: index_html) File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: index_html) File E:\MYBOOK~2\lib\python\OFS\DTMLMethod.py, line 146, in __call__ (Object: standard_html_header) File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: standard_html_header) File E:\MYBOOK~2\lib\python\Products\SQLSession\SQLSession.py, line 294, in __call__ (Object: Session) File E:\MYBOOK~2\lib\python\Shared\DC\ZRDB\DA.py, line 424, in __call__ (Object: sqlSessionLookup) File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: string) File E:\MYBOOK~2\lib\python\Shared\DC\ZRDB\sqltest.py, line 179, in render (Object: zsession) KeyError: zsession -- Is this cause by the wrong database field name or what ?? Leong Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] CachePool + LocalFS
Hi, I am still looking for a simple caching soluction for external files... Can I use CachePool to cache LocalFS referenced objects? If I can, how can I do that? Regards, Rogerio Atem --- E-mail enviado pelo servidor do CEFETCampos ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Installed Products
On Sun, 9 Jul 2000, Tim Cook wrote: So all the really cool, useful stuff is being written in Python instead of ZClasses? g Is there a specific reason for this? Speed? Capability? ZClasses are a relatively recent addition. Some people swear by them, some people swear at them. Actually it seems that in many cases a combination of python for business logic and ZClasses for presentation logic/user interface makes the most sense. Coding in python gives more direct control of the object machinery. It also definately gives you access to more capabilties than ZClasses, or even ZClasses + external methods. Finally, it should be the case that python code executes faster than equivalent DTML code, since the DTML needs to be intererpreted. I'm not sure, this might not always be true due to DTML optimizations and caching; but as with a compiler versus an assember, if you know enough to do it right I'd think the python would always be faster grin. If you want a basic intro to python products, check out the Boring Product. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Installed Products
Hi Tim ! Tim Cook wrote: Because it is a Python based product and not a ZClass based product? So all the really cool, useful stuff is being written in Python instead of ZClasses? g Is there a specific reason for this? Speed? Capability? Have a look at: http://zdp.zope.org/portals/developers/designstrategies/products http://zdp.zope.org/portals/developers/designstrategies/zclasses http://zdp.zope.org/portals/developers/designstrategies/mix http://zdp.zope.org/portals/developers/designstrategies Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] cr/lf causing spaces
You can put your linefeeds inside the HTML and DTML elements: h2This is a really long heading with a dtml-var foo dtml variable in it/h2 See http://www.cat-box.net/helen/notes.html#source_layout_notes for more information about these issues. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
re: [Zope] Another DateTime Strangeness
Nils Jeppe wrote: Zope just stored a DateTime I entered as 13:14 in a slightly odd way: 2000/07/09 13:13:60 GMT+1 Known bug? Yes. What version of Zope are you running? Shane Hathaway did a line-by-line audit on DateTime.py, and fixed loads of timezone and rounding bugs. The fixed version is available in CVS and in Zope 2.2.x. There was also a copy of it on Shane's page at www.zope.org, but it is gone now. If you get stuck, mail me privately and I'll send you the fixed version. You're better off getting it from a copy of Zope 2.2, if you can. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another DateTime Strangeness
Nils Jeppe wrote: Zope just stored a DateTime I entered as 13:14 in a slightly odd way: 2000/07/09 13:13:60 GMT+1 Known bug? Yes, and fixed in 2.2. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Am I getting the idea correctly?
Hi, But here's what worries me about Zope: it looks I will do a whole lot of typing and get caught up in the syntax and repetitive nature of things like dtml-var -- and dtml-this - and dtml-that - . OK, so it's not made for the faint-of-heart at this point - I can handle that. But I also am not an HTML maven, and it looks like I need to have full HTML expertise to make this work also. GUI tools take the drudge out of a href="something"something and h2this is a heading/h2 pretty well, but I don't see how to get out of this stuff with Zope, especially since it looks like everything is stored internally in a data file that I can't access from the outside. I've been there. Before I came across Zope I builded websites with Frontpage and later on with Dreamweaver (I still do in certain cases). Dropping these kind of pure document oriented sites in Zope is possible but then you are missing the point of Zope. Zope requires another way of thinking about websites. A real GUI working with Zope isn't there yet. I don't think that's a real problem. Zope forces you often to go to nitty gritty details of HTML programming. I think that's a good thing (for me). GUI tools tend to make you very lazy and often produce horrible HTML (for example Frontpage). In my opinion you can't be a serious website builder without extensive knowledge about HTML. With Zope or another platform. That said. You can use Dreamweaver's FTP fascilities to edit documents/methods in Zope. However I don't think that that is very useful (I have never tried this) because Dreamweaver is document oriented and is not aware of your object design/dependecies in the ZODB (the Zope Object Database). I still use Dreamweaver and Fireworks in combination with Zope however. My aproach is: designing the thing in Fireworks (with slices), exporting from Fireworks to Dreamweaver. Then using the HTML result in Dreamweaver for designing/programming my DTML methods (copy/paste) Henny van der Linde Leiden University. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Trouble compiling ZMySQLDA
Hello all, When I try to compile ZMySQLDA I get the following error messages after typing make: [root@catv6216 src]# make gcc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type ./MySQLmodule.c: In function `pythonify_res_fields': ./MySQLmodule.c:384: invalid lvalue in unary `' ./MySQLmodule.c: In function `STH_fetchdict': ./MySQLmodule.c:1125: invalid lvalue in unary `' ./MySQLmodule.c:1147: invalid lvalue in unary `' make: *** [MySQLmodule.o] Error 1 [root@catv6216 src]# I can't even read a single line of c so I have no idea what's wrong exactly. FYI: OS: Immunix 6.2 (= RedHat 6.2 + stackguard) Zope: 2.1.6 (compiled from Jeff Rush's source rpm, 2.2b3 doesn't work either) MySQL: 3.22.32 and 3.23.21 Python MySQLdb: 2.0 2.1 Ewald Wasscher ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Patch to DateTime.py
On Fri, 07 Jul 2000, Rajil Saraswat wrote: Hi, I am a newbie to zope and squish. My squishdot starts giving errors after midnight. the offending error is Unrecognised Time Zone in DateTime.py I am on GMT+530(India). As i donot know python, can you please tell where i should add this timezone in DateTime.py, so this problem is resolved. The patch file i supplied can be applied to /lib/python/DateTime/DateTime.py If you don't have the unix tool 'patch', you could add the lines manually, at the lines mentioned at the top of the patch file. This is, i should have mentioned, made against zope 2.1.6 From a quick perusal of the source code, it looks like there is no GMT+0530 supported currently, nor does the word "india" appear, except in the word 'Indiana'. A minor oversight, I'm sure. If you are feeling brave, you could try adding your timezone to the _zlst array, at about line 163 in DateTime.py, then restart ZOPE. Thanks Rajil Saraswat Have a better one, Curtis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] help! zope down on it's knees
I'm curious about the fact that apache can render the page immediately by talking through pcgi/fcgi to ZServer but ZServer can't render the page quickly when you talk to it directy via HTTP. The only reasoning I can see for that is some sort of caching at the browser or in the http server. Have you been able to determine which methods are taking the longest amounts of time? I know you're under pressure to get this solved. I doubt you're going to find a quick solution to this. You may want to take this opportunity to start on the path to 2.2 and ZEO. If you need to solve it fast, get Squid or another caching proxy up in front of it in order to give yourself some breathing room and then start work on 2.2 and ZEO. "Bak @ kedai" wrote: greetings and help! my site is experiencing major slow down. connecting to zope takes more than 5-6 minutes. this happens when i got a lot of users connecting. (apache connection 250). everything works great if i got 100 user connections what i've done -upgrade apache to serve more than 256 users by editing httpd.h -up the zope thread from the default to a greater number (100) -added more RAM total = 4G when i connect from the server console, with lynx localhost:8080 , i got a long wait with HTTP request sent; waiting for response. ( about 5-6 minutes for a 20Kb file) if i render the page and let apache serve it, the request is served immedietly. i think this has to do with zope inability to cope with requests. i'm looking at putting squid in front and see what happens. or is it my setting? this is happening on a production server and is very bad. help and pointers to tune zope is apprecieted very VERY much this is zope 2.1.6, on RH with SMP and 4G RAM meanwhile, i'll go bang my head before i look at this again. thanks and help, please! -- -- http://www.kedai.com.my/kk Am I Evil? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Trouble compiling ZMySQLDA
There seem to be several different (old?) instructions floating around on how to install the Python MySQLdb and the Zope ZMySQLDA. If you just want it working, and you're using RPMs, you can grab my RPMs of Andy Dustman's MySQLdb 0.2.1 and the ZMySQLDA 1.2.0 that now works with it. As far as I know, this is the latest mutually functional and thread friendly combination. ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm Andy's MySQLdb - http://dustman.net/andy/python/MySQLdb/0.2.1 ZMySQLDA - http://www.zope.org/Members/mordred/ZMySQLDA Note that Andy's latest 0.2.2 db doesn't yet work with ZMySQLDA 1.2.0. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ewald Wasscher Sent: Sunday, July 09, 2000 7:54 PM To: [EMAIL PROTECTED] Subject: [Zope] Trouble compiling ZMySQLDA Hello all, When I try to compile ZMySQLDA I get the following error messages after typing make: [root@catv6216 src]# make gcc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type ./MySQLmodule.c: In function `pythonify_res_fields': ./MySQLmodule.c:384: invalid lvalue in unary `' ./MySQLmodule.c: In function `STH_fetchdict': ./MySQLmodule.c:1125: invalid lvalue in unary `' ./MySQLmodule.c:1147: invalid lvalue in unary `' make: *** [MySQLmodule.o] Error 1 [root@catv6216 src]# I can't even read a single line of c so I have no idea what's wrong exactly. FYI: OS: Immunix 6.2 (= RedHat 6.2 + stackguard) Zope: 2.1.6 (compiled from Jeff Rush's source rpm, 2.2b3 doesn't work either) MySQL: 3.22.32 and 3.23.21 Python MySQLdb: 2.0 2.1 Ewald Wasscher ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] wrong day
On Mon, 10 Jul 2000, Marco Mariani wrote: Ok, silly me, the date is stored ok, but is reported wrong: Idtml-var data fmt="%Y/%m/%d"/IBR gives me 1999/12/31 instead of 2000/01/01 Almost certainly, your problem is GMT. The time is stored GMT, and you are not countering it. Try printing the time as well, to make sure. Have a better one, Curtis. dtml-var standard_work_disclaimer ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Trouble compiling ZMySQLDA
I couldn't seem to get the RPMS to install, what kind of setup are they expecting? Does it matter where I have installed zope? (I am a linux learner so please forgive if I am not making sense) Thanks Peter. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ron Bickers Sent: Monday, 10 July 2000 12:42 PM To: Ewald Wasscher; [EMAIL PROTECTED] Subject: RE: [Zope] Trouble compiling ZMySQLDA Actually, I just realized that what you're trying to compile is the MySQLdb that comes with the DA. The DA itself is written in Python, and doesn't need to be compiled. If you already have a db installed, and the DA is compatible with it, you should be able to just put ZMySQLDA in the Products directory and restart Zope. If the DA isn't compatible (because it's written for a different db), then your best and quickest solution is to install the mutually compatible RPMs I posted. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ewald Wasscher Sent: Sunday, July 09, 2000 7:54 PM To: [EMAIL PROTECTED] Subject: [Zope] Trouble compiling ZMySQLDA Hello all, When I try to compile ZMySQLDA I get the following error messages after typing make: [root@catv6216 src]# make gcc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type ./MySQLmodule.c: In function `pythonify_res_fields': ./MySQLmodule.c:384: invalid lvalue in unary `' ./MySQLmodule.c: In function `STH_fetchdict': ./MySQLmodule.c:1125: invalid lvalue in unary `' ./MySQLmodule.c:1147: invalid lvalue in unary `' make: *** [MySQLmodule.o] Error 1 [root@catv6216 src]# I can't even read a single line of c so I have no idea what's wrong exactly. FYI: OS: Immunix 6.2 (= RedHat 6.2 + stackguard) Zope: 2.1.6 (compiled from Jeff Rush's source rpm, 2.2b3 doesn't work either) MySQL: 3.22.32 and 3.23.21 Python MySQLdb: 2.0 2.1 Ewald Wasscher ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Trouble compiling ZMySQLDA
The RPMs install in /usr/share/zope/lib/python/Products, where the Zope RPMs provided by Jeff Rush install the Products folder. If you're not using the Zope RPMs and have zope installed somewhere else, you can still use these RPMs and just make a symlink to your real Products folder. For example (if Zope is installed in /usr/local/zope): # cd /usr/local/zope/lib/python/Products # ln -s /usr/share/zope/lib/python/Products/ZMySQLDA ZMySQLDA Restart Zope and that should do it. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] -Original Message- From: Peter Marriott [mailto:[EMAIL PROTECTED]] Sent: Monday, July 10, 2000 12:58 AM To: Ron Bickers; [EMAIL PROTECTED] Subject: RE: [Zope] Trouble compiling ZMySQLDA I couldn't seem to get the RPMS to install, what kind of setup are they expecting? Does it matter where I have installed zope? (I am a linux learner so please forgive if I am not making sense) Thanks Peter. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )