[Zope] Zwiki conflicts with my product

2005-09-15 Thread Nicholas Wieland
I've developed a FS based product, and now I'm preparing the environment to put it in production. After copying the product directory inZope's Product folder Zope doesn't start anymore, for reasons that frankly I don't understand because it "conflicts" with Zwiki (and I don't use anything from

[Zope] Virtual Host Monster

2005-09-12 Thread Nicholas Wieland
I'm trying to use VHM to rewrite a pair of urls. What I want is to have a "normal" Zope on localhost:8080/, and an instance of a Product on localhost:8080/myProduct. The problem I'm having is that VHM locks me out from the root folder :( My mappings line is:

Re: [Zope] SQLConnectionIds

2005-08-23 Thread Nicholas Wieland
I'm working as admin, sorry for not mentioning it. The same PageTemplate in the same folder, but not inside the product, works like a charm, same as SQLConnectionIDs inside the product, but as DTMLFile. ngw Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus,

[Zope] SQLConnectionIds

2005-08-22 Thread Nicholas Wieland
Again, this problem is making me mad :) This is a simple TTW PageTemplate I'm using: html body ul tal:repeat="dba here/SQLConnectionIDs" li tal:content="dba" placeholder /li /ul body /html This works without any problem, returning a list of tuples. The same template in a FS based product

Re: [Zope] FS based product and image replacement

2005-08-13 Thread Nicholas Wieland
- Dieter Maurer : Nicholas Wieland wrote at 2005-8-12 11:45 +0200: The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also url(images/foo.gif) with and without the absolute url

[Zope] FS based product and image replacement

2005-08-12 Thread Nicholas Wieland
Hi *, I'm trying to use image replacement in a FS product, but unfortunately I'm not able to catch the image on the FS (a simple gif). The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also

Re: [Zope] product organization

2005-07-28 Thread Nicholas Wieland
But how do I get the connection id ? Actually I get it when I instance the product in Zope. What I think is something like class Foo def __init__ (self, conn): self.conn = conn myquery = SQL ('doMyQuery', '', self.conn, '', 'select * from table') but obviously it will not work. TIA, ngw

[Zope] product organization

2005-07-27 Thread Nicholas Wieland
As usual, my question is rather simple :) I'd like to know what are the best practices for product organization - for example I have _tons_ of queries to sqlserver, and my main class is becoming less manageble every time I look at it :/ I like the way SQL integrates in Zope, what I don't like is

Re: [Zope] product organization

2005-07-27 Thread Nicholas Wieland
Well, not exactly - just a way to separate access to data from everything else in the product. Maybe a separate class that needs the connection asargument and that just returns the data I need in appropriate data structures by calling class methods. class DataModel (object): def __init__

[Zope] reportlab and images

2005-07-27 Thread Nicholas Wieland
I know, I'm flooding the list ... I use images inside my reports, so I have to open PIL-image objects inside my product. Everything is fine, but I must use the full path, like /Zope-Instance/Products/foobar/image/blah.png, and this is a problem, because the product will have a different path when

[Zope] working with urls

2005-07-25 Thread Nicholas Wieland
First of all thanks everyone for the help, I've resolved my problems one after the other thanks to the suggestions I've found here. Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine. What I'd like is having an url like:

Re: [Zope] working with urls

2005-07-25 Thread Nicholas Wieland
/amethod?var1=val1var2=val2... This way var1, var2 etc will be accessible to your method as entries in REQUEST. Jonathan - Original Message - From: Nicholas Wieland To: zope@zope.org Sent: Monday, July 25, 2005 9:39 AM Subject: [Zope] working with urls First of all thanks everyone

[Zope] zpt and sql

2005-07-22 Thread Nicholas Wieland
Hi *, I've searched a lot but actually didn't find anything useful to solve my problem, and probably I haven't really understood how Zope works ... :) I'm developing a filesystem product and I need to display a zpt form where I display some results from a query. I'm able to query the DB, and I'm

[Zope] css in filesystem based product

2005-07-21 Thread Nicholas Wieland
Hi *, I'm having issues developing a filesystem based product. The product loads correctly and I see my zpt, but I'm not able toapply a stylesheet. The product directory is under Zope-Instance/Products, I've created some directories where I put styles and templates - but changing this structure is