[Zope-dev] MySQL (Zope) Problem on Sun Solaris machines ?

2001-05-21 Thread Holger Lehmann

Hi Andy, and all !

I was developing a little webapp under Zope.
I was using the following setup:
Linux 2.4.x
Zope 2.3.0
MySQL 3.22.32
ZMySQLDA-2.0.6
MySQL-python-0.3.5

Everything went smooth that way. Small SQL queries and complex SQL queries, 
queries on empty tables and on full ones, they all went well.

Now I exported the website and dumped the tables structure.

I the impoerted the website and created the tables on a:
Sun Solaris (don't ask me what release) - Sparc processor.
Zope 2.3.0
MySQL 3.23.32 (or 3.23.33, I am not sure)
ZMySQLDA-2.0.6
MySQL-python-0.3.5

And this happened:
Querying MySQL like this:
--
show tables;
--
or
--
select * from data;
--
all went ok.
But running this statement on *empty* tables (mark you, just no data) left no 
python process running, they all died:
--
select a.a b.b c.c
from a b c
where a.fk_b = b.pk_b
and a.fk_c = c.pk_c
order by a.a;
--
It looks to me there is an uncaught NULL pointer exception deep down 
somewhere in the code

Anyone hints or solutions ?
I am going to put some valid data into the database and try to run the 
queries again. I have not done this yet.

- Thanks in advance, Holger


-- 
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



___
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 )



[Zope-dev] Adding a property to a batch of objects ?

2001-03-20 Thread Holger Lehmann

Hi,

I wanted to do sonething like this:
dtml-in "objectIds(['DTML Document'])
dtml-call manage_addProperty('foo','bar','string')
/dtml-in

But I am missing the  part :-(
I can happily add the property to myself or the folder above (if a DTML
Method is used) but I just cant seem to be able to add the property to an
object I want.

Any suggestions ? I would be sooo hapyy, since I have to add three props
to about 1200 DTML Documents :-(

- Holger

---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel : +49 40 890 646-0
Info: 0700 catWorkX
( 0700 22 89 67 59 )
Fax : +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



___
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] Adding a property to a batch of objects ?

2001-03-20 Thread Holger Lehmann

Thanks,

dtml-call "_.getattr(this(),_['sequence-item']).manage_addProperty(...)"

worked just like a beauty. I thought I tried that one, but I must have
made a mistake :-)

- Holger

---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel : +49 40 890 646-0
Info: 0700 catWorkX
( 0700 22 89 67 59 )
Fax : +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de


On Tue, 20 Mar 2001, Christian Scholz wrote:

 Hi!
 
  I wanted to do sonething like this:
  dtml-in "objectIds(['DTML Document'])
  dtml-call manage_addProperty('foo','bar','string')
  /dtml-in
 
 You might want to use dtml-in "objectValues(['DTML Document'])"
 (or objectItems). then just say
 
 dtml-call "manage_addProperty(...)"
 
 or you might change the ... to
 
 dtml-call "_.getattr(this(),_['sequence-item']).manage_addProperty(...)"
 
 (hope this is right, have not tested it.)
 
 First form directly builds a list of the objects instead of the
 Ids, second form first looks up the id with _['sequence-item'] and
 then looks up the object with that id in the local object (your folder).
 
 Hope this helps..
 
 -- mr topf
 
 -- 
 COM.lounge  http://comlounge.net/
 communication  design [EMAIL PROTECTED]
 


___
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 )



[Zope-dev] HowTo: trying to acces only the form elements in the REQUEST ...

2001-03-13 Thread Holger Lehmann

Hello everyone,

I need a quick hint.

How do I check wether there are any "form" elements in the request.
And how can I only acces those ?
I want to pass those, and only thos on to a ZClient call to another website. 

I do have a request like this:
http://server/foo/bar?name=barparam=fooparam2=baz

Now I want to isolate name, param and param2.
I need to construct a request like this:
dtml-if any parameters at all
  dtml-in all form parameters in REQUEST
. do something
  /dtml-in
/dtml-if

TIA Holger

-- 
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



___
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] Debugging Zope with Komodo

2001-01-15 Thread Holger Lehmann

Am Donnerstag, 11. Januar 2001 20:10 schrieb Andy McKay:
 Aaron has just helped me get Komodo debugging working for Zope. Both Neil
 and I think this is great, for the first time we can see the
 interaction of Zope internals as they happen (its no longer a black box
 anymore). This shed so much light on Zope, I think its great and so will
 any Zope developer.

 Many thanks to all involved in Komodo for making this happen.
 --
   Andy McKay.


Ok, now you got us up to speed, where is the howto ?

- Holger




 ___
 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 )

-- 
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



___
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] Re: [Zope] Multi-lingual sites and workflow

2000-11-02 Thread Holger Lehmann

Guys, please !

Try to use the translator:

your folder/
  /translator   --- product translator
  /en/   --- DTML-Methods returning the  
strings/pages for english
  /fr/ --- DTML-Methods returning the
   strings/pages for french
  /de/ --- DTML-Methods returning the
   strings/pages for german
  /nl/ --- DTML-Methods returning the
   strings/pages for netherlands

So now you do have the e.g. index_html  in your folder (content between 
):

dtml-var header !-- your standard header --
h1dtml-lvar welcomeh1!-- your welcome message notice the dtml-lvar 
call instead dtml-var --
a href="dtml-lvar mainpage url"dtml-lvar mainlinktext/a !-- mainpage 
being the document you want to link to and mainlinktext the text for the link 
--
dtml-var footer   !-- your standard header --


Now lets walk trough this example.
In en/welcome is the following (between the ):

Welcome to my page.


In  en/mainpage is some document with images, text forms, whatever.
In en/mainlinktext is (content between ):

Go to main page.


What happens if someone with english prefs set in browser visits you page ?

Easy: dtml-lvar calls get expanded to language/variable content instead 
of variable content like a dtml-var would do:
--
. header 
h1Welcome to my page/h1
a href="en/mainpage"Go to main page./a
 footer 
---

No if someone from France with fr prefs set in the browser the link would 
change to fr/mainpage and all text would be taken from the french versions.

It is extremely powerful. The language directories can contain any kind of 
object you can put in a folder - they are nothing special. Only the 
translator is nessecary since it provides the dmtl-lvar method.

We have already created a german/english website using a bunch of squishdots, 
metapublishers and whatnot without having big trouble. We had to change a 
couple of products to use dtml-lvar instead of static text, but apart from 
that 

- Holger


Am Donnerstag,  2. November 2000 11:21 schrieb Petr van Blokland:
 Lee Hunter wrote:
  I was wondering if anyone here has used Zope to create
  bilingual/multi-lingual/localised websites.
 
  I've done a number of bilingual (French and English) projects in recent
  years using plain old html where the two language versions had to be kept
  mostly symmetrical and its been a bit of a pain as the site grows to keep
  the two versions in synch and make sure the translations are done on time
  etc.
 
  Its seems that Zope might help manage these kinds of projects - by
  smoothing the workflow - tracking what needs translation, perhaps sending
  stuff to the translator automatically, reporting on what's been done by
  who and comparing the two language versions to make sure they are
  parallel. And perhaps even sharing a common architecture - so that you
  didn't need two sets of DTML methods etc.
 
  I'm wondering if this fits into other generic Zope workflow products that
  people have talked about developing or if it would have to be built from
  scratch.
 
  Anyone have thoughts on this subject?

 Yes. Look at our bilingual site at http://www.petr.com
 In the url: http://z.petr.com/buro/p/index_html?language=en
 the parameter 'language' is available in the whole object tree.
 Only text modules need to know how to react on this parameter.
 Pages, images, navigation, templates etc. are not aware of the language
 (though they may if needed, e.g. changing the layout)
 So there in only one tree of pages, one set of navigation.
 The text modules have syntax like:

 dtml-if "getform('language') == 'nl'"De kracht van het werken met klein
 team...
 dtml-elseThe strength of working with a small team...
 /dtml-if

 Pages only contain references to text modules and the name of a template
 to be used.

 Kind regards, Petr van Blokland
 [EMAIL PROTECTED]


 ___
 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 )

-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

___
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/mailma

Re: [Zope-dev] Common Icons or Free Icon collection

2000-06-26 Thread Holger Lehmann

Linux distributions come bundled with a bunch of "free" icons. And I beleive
there are some ...tar.gz archives on metalab.unc.edu (former sunsite.unc.edu).

-Holger

Am Mon, 26 Jun 2000 schrieben Sie:
 Hi,
 
 I need some icons/pics for my Zope project. Are there any common icons for
 Zope I could use, and if not, shouldn`t there be such a thing? Does anybody
 know of any other collection of free icon-collections available ?
 
 Thomas
 
 ___
 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 )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

___
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 )