Re: [Zope-dev] Can't return / publish object of a dictionary?

2003-01-17 Thread Lars Heber
Thousand thanks for ComputedAttribute!

You saved not only my day, but my whole week!!!

--
Lars Heber

T-Systems GEI GmbH
Hausanschrift: Clausstrasse 3, 09126 Chemnitz
Postanschrift: Clausstrasse 3, 09126 Chemnitz
Telefon : (+49 371) 5359-271
Fax : (+49 371) 5359-133
E-Mail  : [EMAIL PROTECTED]
Internet: http://www.t-systems.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] Can't return / publish object of a dictionary?

2003-01-16 Thread Lars Heber
Thanks for the tips, it was the missing wrapper.

I'm quite a newbie in Python programming, so please forgive me.

I've got two other questions:

1. Say we have a Class A with an attribute myObjects which is just a
list.
Now, I'd like to write my own Class B(A) - it extends A.
But, in Class B, myObjects has to be a method because it has to be
rebuild everytime it is called.
So, how can I do something like:
myObjects = getMyObjects() ?
I tried to do this in the class itself, didn't work.
Also tried self.myObjects = self.getMyObjects() - result wasn't what I
wanted, myObjects got (of course) the resulting list of getMyObjects(),
but I need myObjects to be a reference to getMyObjects()
How to do this?

2. Class A has another attribute, say data, which I want to control in
Class B(A),
i. e. everytime data is accessed (reading or writing), I want to
intercept those actions.
If it was just reading, I could use the strategy from 1., but I also
want to control made changes to that attribute. Do I absolutely have to
rewrite all the methods which access the wanted attribute, or is there
another possibility with some kind of references, perhaps similar to
software interrupts in DOS?

Thanks for your patience!

Lars


--
Lars Heber

T-Systems GEI GmbH
Hausanschrift: Clausstrasse 3, 09126 Chemnitz
Postanschrift: Clausstrasse 3, 09126 Chemnitz
Telefon : (+49 371) 5359-271
Fax : (+49 371) 5359-133
E-Mail  : [EMAIL PROTECTED]
Internet: http://www.t-systems.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: Anyone know how to pre-expand a certain branch of a dtml-tree?

2002-05-06 Thread Lars Heber

Hello, list,

I was asked to post my solution of the upper problem to the list rather than
just eMailing it to a single person.

So, here it is:


 Lars Heber wrote:

 Regarding to your posting on Zope-Dev:
 
 http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/55836FB132FFC257
 
 Did you get an answer?
 
 Otherwise, here's a simple solution (that's the way I'm doing similar
 things, i. e. let the tree expand at predefined positions):
 
 Open your tree in a new browser window, so that you can see the complete
 URL of the tree - the tree state is encoded in the URL.
 Now, expand the tree to the desired state manually. Take the resulting
 URL from the address bar and make your tree document open with this URL.
 
 Eg, if you have a frame set, and this was s. th. like:
 
 frameset ...
frame name=navigation src=myNavigation
 
 replace the src-part (myNavigation) by this new, long URL.
 
 If you don't have a frame set, you could also HTTP-Redirect with a meta
 content=refresh... tag.
 

--
Lars Heber, mailto:[EMAIL PROTECTED]

T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen




___
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] WYSIWYG editor

2001-01-26 Thread Lars Heber

Hi folks,

I have been looking for a _free_ WYSIWYG HTML editor for a while now,
but I didn't find anything suitable.

It should accept DTML tags - not only include them within htmlbody
and /body/html but replace those HTML tags by the DTML tags.

It has to be WYSIWYG, not only plain HTML editor, for most stupid
considered users (DAUs :-) ).
Something similar like NS Composer, AOL press, ...

I tried several different free software, without success in my special
case.

Perhaps one of you uses something like that...

TIA

Lars


___
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] Re: How to use standard html headers and footers properly (was: Re:[Zope] Namespace problems...)[Zope] Namespace problems...)

2000-10-12 Thread Lars Heber

Hi,

first, thanks for your advice!

"Manuel Amador (Rudd-O)" schrieb:

 dtml-with pub
dtml-let titel="_.string.join(['This is the website of  ',
 enterpriseName])"
   dtml-var standard_html_header
/dtml-let

 on your document, WILL work fine.

 But I suggest recreating standard_html_header as a METHOD and calling

OK, once again:
My standard_html_header is still a METHOD!!!
And within it, I DO access to the variables of the calling document /
method!


 dtml-with pub
 dtml-var standard..
 /dtml-with

That's _exactly_ what I did! I only inserted a dtml-let
someVar="someValue" to pass this var to standard_html_header.


 Since methods don't have properties, they will use calling object's
 properties.  Read again.  Do NOT use DTML documents for headers and
 footers.  Use METHODS.

I DON'T!

 So I stored my headers and footers and many other things in
 root/intra/pub.

 All the other documents are stored in root/intra and below.

 I've got my standard_html_header, with which I can display
 user-defined
 titles which may also contain values of global properties. The
 user-defined title is being built in the document before the header
 is
 called, e. g. something like:

Look above!

 In the standard_html_header !!!_method_!!!  I'm checking
 whether there is a titel attribute or not.

 This works fine.

 But for general use I want to keep the possibility of displaying the

 title_or_id of the document when I don't introduce a user-defined
 title.

 This would be no problem if s_h_h wasn't situated in root/intra/pub,
 so I have
 to call it within the dtml-with pub.

 But calling it within the dtml-with pub, pub is on the top of my
 namespace, so that calling title_or_id returns the title_or_id of
 the container of s_h_h, i. e.
 pub,   INSERTED:   and not as wanted the title_or_id of the calling
 document!

 How can I nevertheless access within the s_h_h to the title_or_id of
 my
 original document?   INSERTED:   i. e. explicitely accessing to a
 layer of the namespace which isn't on its top!

Hope I now explained it well enough.
Thank you very much.

Lars


___
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] Animated GIFs

2000-10-10 Thread Lars Heber

Hello,
it's me again.

I found out what the matter of my problems was.

I tried the animGif on several other computers with different versions of NS,
on every of them it worked.

And here's the kicker: It also worked on another computer which had the same
version installed like me!

Therefore, something with my NS installation seems to be wrong!

Thanks to you all!

Lars


___
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] Animated GIFs

2000-10-09 Thread Lars Heber

Peter Bengtsson schrieb:

 [Just checking.]
 Have you tried to acctually _use_ the animated gif in context with other HTML?
 I have experienced problem some single time with images (can't remember what the 
problem/image was) viewed directly from the View management tab.

 Excuse the childish suggestion.

Any help is appreciated!!!

I tried your suggestion. The animGif works fine with every kind of HTML.
I really think it's a Zope problem.
Also the gif downloaded from Zope works with HTML outside Zope.
The following doesn't work as well:
Refer to the gif situated on your Zope server from a HTML file outside Zope. - Same 
problem...

html
headtitlethe title/title/head
bodyimg src="http://localhost:8080/animGif"/body
/html

I also tried to name the animGif explicitely animGif.gif instead of animGif - guessed 
what? - same problem!

Any more ideas, please?

Thanks.

Lars

 - Original Message -
 From: "Lars Heber" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 06, 2000 3:24 PM
 Subject: [Zope] Animated GIFs

  Hi there,
 
  I've got a strange problem.
 
  I want to upload an animated GIF to my Zope, but when I want to view it,
 
  animation stops at the last frame instead of looping indefinitely.
 
  When not uploaded to Zope, the animation works fine,
  also, when I download the GIF by rightclick from a Zope site and view
  it again outside Zope, it works perfectly!
 
  What's going on here??? Any ideas?
 
  PS.: The content_type is image/gif.
  Do animGifs have another one? Just an idea...



___
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] Animated GIFs

2000-10-09 Thread Lars Heber

Sorry, forgot the html quoting in my last posting...
Should work now.

Peter Bengtsson schrieb:

 [Just checking.]
 Have you tried to acctually _use_ the animated gif in context with
other HTML?
 I have experienced problem some single time with images (can't
remember what the problem/image was) viewed directly from the View
management tab.

 Excuse the childish suggestion.

Any help is appreciated!!!

I tried your suggestion. The animGif works fine with every kind of HTML.

I really think it's a Zope problem.
Also the gif downloaded from Zope works with HTML outside Zope.
The following doesn't work as well:
Refer to the gif situated on your Zope server from a HTML file outside
Zope. - Same problem...

lt;html
lt;headlt;titlethe titlelt;/titlelt;/head
lt;bodylt;img src="http://localhost:8080/animGif"lt;/body
lt;/html

I also tried to name the animGif explicitely animGif.gif instead of
animGif - guessed what? - same problem!

Any more ideas, please?

Thanks.

Lars

 - Original Message -
 From: "Lars Heber" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 06, 2000 3:24 PM
 Subject: [Zope] Animated GIFs

  Hi there,
 
  I've got a strange problem.
 
  I want to upload an animated GIF to my Zope, but when I want to view
it,
 
  animation stops at the last frame instead of looping indefinitely.
 
  When not uploaded to Zope, the animation works fine,
  also, when I download the GIF by rightclick from a Zope site and
view
  it again outside Zope, it works perfectly!
 
  What's going on here??? Any ideas?
 
  PS.: The content_type is image/gif.
  Do animGifs have another one? Just an idea...



___
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] Animated GIFs

2000-10-09 Thread Lars Heber

Seb Bacon schrieb:

 
  I also tried to name the animGif explicitely animGif.gif instead
  of animGif - guessed what? - same problem!
 
  Any more ideas, please?
 

 have you tried doing a diff on the zope and non-zope versions to see if
 zzope's somehow mangled it?

 seb

Yes, I did. They were absolutely identical!

I 'diffed' the original and the up- and redownloaded version.

Perhaps I should 'diff' the original with the version which is inside Zope
- but how to do this?!? It's an object, isn't it?



___
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] Animated GIFs

2000-10-06 Thread Lars Heber

Hi there,

I've got a strange problem.

I want to upload an animated GIF to my Zope, but when I want to view it,

animation stops at the last frame instead of looping indefinitely.

When not uploaded to Zope, the animation works fine,
also, when I download the GIF by rightclick from a Zope site and view
it again outside Zope, it works perfectly!

What's going on here??? Any ideas?

PS.: The content_type is image/gif.
Do animGifs have another one? Just an idea...

Have a nice weekend :-)

Lars


___
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] Problems with animated GIFs

2000-10-06 Thread Lars Heber

Hi there,

I've got a strange problem with animated GIFs:

They work fine in any browser.

Uploading to Zope, viewing it.

Animation goes up to the last frame, but instead of looping
indefinitely, it stops at the last frame.

Downloading that file from Zope, viewing it in any browser outside Zope,
works perfectly!

What's going on here??? Any ideas?

P.S.: The content_type is image/gif. Do animGifs have another one? Just
an idea...

Have a nice weekend :-)

Lars


___
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] HTML-Code in variables

2000-10-06 Thread Lars Heber

Hi again,

this time I'd like to put some html-code in a variable via dtml-let.

Unfortunately, when I have the following:

dtml-let myText="'h1this is some html/h1'"...

results in the following string: "lt;h1gt;this is some htmllt;/h2gt;

What can I do against it???

TIA

Lars


___
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] Property problem - still the same...

2000-09-29 Thread Lars Heber

Hello again,

I recently set a question about nested properties.

Unfortunately, we didn't come to a proper solution.

I was told to use ZClasses, and I read a lot of documentation about it.
But I found out that this isn't the thing I was searching for.

So, now I'll try it again, very concrete this time:

In my root folder, I have a property enterpriseName (string) =
"myEnterprise".

Furthermore I have an arbitrary DTML document, and I want to include my
global property enterpriseName in the title property of this document so
that the title of the document is "myEnterprise" at the end.

The sense of that is that when I change the value of enterpriseName
automatically all titles are updated.

It is not possible to include this enterpriseName into
standard_html_header or similar, because there will be many documents,
and only some of them need the enterpriseName in their titles, others
want to add an own text to the enterpriseName resulting in e. g. "This
is the Homepage of XYZ, who is working at myEnterprise".

I generally just want to insert one property into another...

Please, please help me, I'm despairing in the meantime...

Lars


___
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] Nested properties???

2000-09-27 Thread Lars Heber

Hello,

I urgently need to nest properties without creating methods.

My task is to create a number of public properties, which other users
shall use as values in their properties.

For example I'd like to create a public property enterpriseName with the
value "myEnterprise", and the users shall take this property when they
create the new property division with the value "myDivision in
myEnterprise", something like "myDivision in dtml-enterpriseName;".

Could you please help me?

By the way: Is it possible to insert special characters in properties,
like auml;?

Thanks in advance for your help.

With kind regards

Lars Heber



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