[Zope-dev] Properties and ZClass instances

2001-06-21 Thread Holger Lehmann

Ok Guys,

I am lost :-(

We have created a set of Functions to edit the Properties of our objects.
The idea is based on the Howto called Editing Only Properties found at:
http://www.zope.org/Members/rlgines/propertiesOnly

We wrote a __init__.py file in a seperate Products folder that actually 
"patches" the PropertyManager object dynamically (e.g. without cahnging the 
original source).

This works all pretty well for DTML Documents as well as other objects.
Now I created a ZClass (my very own :-) ) and tried to use this very 
manage_editPropertiesOnly thing as well.
Without the result I wanted.
When I linked to
http://somwhere/path/to/zclass/instance/propertysheets/props/manage_editPropertiesOnlyForm
with props being the name of the property sheet defined under the Property 
Sheet tab of the Zope management screen.
manage_editPropertiesOnlyForm is a 1:1 copy of the manage_editPropertiesOnly 
DTML Method with some user interface changes. Furthermore does it call a copy 
of the manage_editProperties python function called manage_editPropertiesForm.
This Function again is a 1:1 copy of the original with the difference to 
redirect to a different URL instead to the Zope management screen.

When called it shows all properties and the according values. When I hit save 
it tells me it saved the properties but nothing acually happened.
I poked around the sourcecode but could not find any hints. I re-copied the 
functions to ensure I had the correct code but without any results.
It tries to post the form data the URL 
http://somwhere/path/to/zclass/instance/propertysheets/props


I am using Zope 2.3.0 and Zope 2.3.2.
Our manage_editPropertiesOnly function works (so far) under 2.1.6 2.2.0 2.2.5 
2.3.0 and 2.3.2 (verified)

Any hints ? 

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 )



Re: [Zope-dev] ANNOUNCE: Zope 2.4.0 alpha 1 released

2001-06-01 Thread Holger Lehmann

Hi Brian, hi all,

great to hear this.

Now comes a tricky question:

Suppose we are running a Linux Kernel 2.4.x and using the latest Python 2.x 
distribution. And supposing we can recompile all code if neccessary:

How large can a Data.fs grow until it breaks ?
We need to be able to store about 7.5 GBytes (note: Gigabytes) in the ZODB. I 
would rather use the ZODB than a LocalFS 

Thanks in advance 
- Holger


Am Donnerstag, 31. Mai 2001 22:55 schrieb Brian Lloyd:
> Hello all,
>
>   Zope 2.4.0 alpha 1 has been released - you can download it from
>   Zope.org:
>
> http://www.zope.org/Products/Zope/2.4.0a1/
>
>
>   Highlights of what is new in Zope 2.4:
>
> - Zope 2.4 supports (and requires) Python 2.1
>
> - New restricted execution architecture
>
> - WebDAV Level 2 locking support
>
> - New "WebDAV Access" permission
>
> - A new built-in 'Authenticated' role
>
> - Product refresh without restart during development
>
> - New "Drop-in indexes" support for ZCatalog
>
>
>   Be sure to see the Zope 2.4 Migration Guide:
>
>http://www.zope.org/Products/Zope/2.4.0/Zope24MigrationGuide.html
>
>   which outlines the new features and provides other important
>   information for users of Zope 2.4.
>
>   For more information on what is new in this release, see the
>   CHANGES.txt and HISTORY.txt files for the release:
>
> http://www.zope.org/Products/Zope/2.4.0a1/CHANGES.txt
>
> http://www.zope.org/Products/Zope/2.4.0a1/HISTORY.txt
>
>   For more information on the available Zope releases, guidance for
>   selecting the right distribution and installation instructions,
>   please see:
>
>   http://www.zope.org/Documentation/Misc/InstallingZope.html
>
>   Note that this is an alpha release, so it is available as a source
>   distribution only. We will make binary releases available with the
>   first beta release.
>
>
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909
> Digital Creations  http://www.digicool.com
>
>
>
>
> ___
> 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 )



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



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

2001-03-20 Thread Holger Lehmann

Thanks,



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:
> > 
> > 
> >  
> You might want to use 
> (or objectItems). then just say
> 
> 
> 
> or you might change the ... to
> 
> 
> 
> (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] Adding a property to a batch of objects ?

2001-03-20 Thread Holger Lehmann

Hi,

I wanted to do sonething like this:


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] 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=bar¶m=foo¶m2=baz

Now I want to isolate name, param and param2.
I need to construct a request like this:
>
  >
. do something
  


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:

/
  /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  (content between 
):

 

 
   


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 / instead 
of  like a dtml-var would do:
--
<. header >
Welcome to my page
Go to main page.
< 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:
>
> De kracht van het werken met klein
> team...
> The strength of working with a small team...
> 
>
> 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/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: RE: [Zope-dev] dual processors??

2000-08-07 Thread Holger Lehmann

Hi All,

we are running our Zope Development System on a dual PIII-500 system and I can
assure you, Zope gets all the ressources it wants, two processors, all the mem
:-) Only catch is: We are running the kernel 2.4.0test1 instead of 2.2.x since
it has much improved SMP code 

- Holger

Am Mon, 07 Aug 2000 schrieben Sie:
> Steve,
> 
> It sounds a little underpowered to me.  But you should probably just try
> it if it's what you've got.  There are some Zope benchmarks contributed
> by BwanaZulia at
> http://www.zope.org/Members/BwanaZulia/zope_benchmarks/benchmarks.html.
> 
> BTW, questions like this are probably better posed to the main Zope
> mailing list ([EMAIL PROTECTED]).
> 
> > -Original Message-
> > From: Steve Nicholson [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, August 06, 2000 8:33 PM
> > To: Zope-Dev mailing list
> > Subject: [Zope-dev] dual processors??
> > 
> > 
> > Hi I'm looking at running Linux RH 6.1 and zope on a dual 
> > processor P90 Dell
> > powerEdge server, 128Mb RAM.  Is this a viable proposition 
> > for hosting, I'm
> > not anticipating millions of hits?? I realise it's not the 
> > fastest thing in
> > town but for a good price it gives me a RAID drive for reliability.
> > 
> > Does Zope take advantage of the Dual processors?
> > What sort of load will it handle, hits etc?
> > What improvement is there over one processor?
> > 
> > This box can be upgraded to P166's what would be the improvement?
> > Is anyone out there running Linux on Dell EX590-2, can I 
> > expect lots of
> > problems or easy to set-up?
> > 
> > Pointers to sites with more information would be appreciated.
> > 
> > I haven't got it yet, so want to find out more before I waste to much
> > time/energy/money on it.
> > 
> > Thanks for any help/advice you can offer.
> > 
> > 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 )
> > 
> 
> ___
> 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 )




Re: [Zope-dev] ZMySQLDA - errors during compilation...

2000-07-27 Thread Holger Lehmann

This is a confirmation,

I did the same stuff to get the module to compile :-)

- Holger

Am Don, 27 Jul 2000 schrieb Phil Harris:
> Jon,
> 
> If I remember correctly all you have to do is remove the & from the lines in
> question.
> 
> So on line 384 of MySQLModule.c find the & and remove it, just the &.
--snipp--
-- 
---
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 )




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 )