Re: [Zope-dev] Speed up the learning curve

2001-06-28 Thread marc lindahl

I highly recommend the Quick Python Book if you're already a programmer,
looking to learn the new language.

 From: Shane Hathaway [EMAIL PROTECTED]
 
 When I came to Zope, within a week I was getting ready to write a Python
 product.  (And I didn't even know Python yet! :-) )


___
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] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-28 Thread Yves-Eric Martin

Hello everyone,


I was recently working on a quite big ZSQL method (around 100 lines).
I was using only dtml-if and dtml-sqlvar tags and a lot of
like '%...%', so thought I could make things look much nicer using
dtml-sqlgroup and dtml-sqltest ... op=like optional. But I ran
into a big hurdle:

I quickly searched through the archive and found the thread 
[Zope-dev] ZSQL using LIKE operator, and in particular:
http://lists.zope.org/pipermail/zope-dev/2001-February/009339.html
which is exactly what I would like to do.

But unfortunately, dtml-sqltest ... does not seem to work.
We get the following error:

   The ... shorthand for expr was used in a tag that doesn't
support expr attributes., for tag dtml-sqltest [...] 


I checked sqltest.py (Zope 2.3.2): no support for python expr in
there. Interestingly, the Zope Book mentions the use of python
expressions with sqltest in its DTML Reference:
http://www.zope.org/Members/michel/ZB/AppendixA.dtml
Is there a patched sqltest.py that I don't know about or is this a
bug in the book?


Anyway, does anyone know of a good reason why the sqlvar tag
supports python expr while sqltest does not? Some obscure security
hole? Or is the functionality just missing? And in that case,
is anyone up for a patch?


It's not critical, but the following kind of defeats the purpose
of sqlgroup:

dtml-sqlgroup where required
  dtml-if title
title like dtml-sqlvar '%%%s%%' % title type=string
  /dtml-if
dtml-and
  dtml-if author
title like dtml-sqlvar '%%%s%%' % author type=string
  /dtml-if
/dtml-sqlgroup


The following would be much nicer:

dtml-sqlgroup where required
  dtml-sqltest '%%%s%%' % title op=like type=string optional
dtml-and
  dtml-sqltest '%%%s%%' % author op=like type=string
optional
/dtml-sqlgroup


Note: in this particular case, I could preprocess the variables and add
the surrounding wildcards in the call to the ZSQL method. But that would
restrict the way this method can be called (URL traversal is
definitively
a cool feature to impress newbies ;) ), and that's not the point here
anyway: we would just like python expressions in sqltest tags.



Cheers,

-- 
Yves-Eric MARTIN
[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 )



Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Tino Wildenhain

Hi,

--On Mittwoch, 27. Juni 2001 15:54 -0500 Stephan Richter [EMAIL PROTECTED] 
wrote:

 At 10:45 PM 6/27/01 +0200, Erik Enge wrote:
 On Wed, 27 Jun 2001, Tino Wildenhain wrote:

  if there are always many objects to create, may be it would be better
  to have a generic mechanism for asking users and represent
  app-/management interfaces rather then copying all the stuff over and
  over?

 That's what mk-zprod does.  Or rather, will do once I've made the
 interface friendlier.  (If I didn't misunderstand you.)

 If I have some time left at all tonight, I will make a wizard that could
 be  the initial front-end to mk-zprod. Could you give me a short list of
 things  you would like to ask the user?

Hm. a simple collection of questions? Certainly not.
I talking of a whole mechanism, where you group input
and output into contexts. From application view it
would be an API, it schould work no matter if the input/
output is generated from and to HTML, WML, XML or even
stand-allone GUIs.
I'm thinking of semantic groups of input, output and types
and ranges and default values including naming conventions.

Regards
Tino 

___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge

On Thu, 28 Jun 2001, Tino Wildenhain wrote:

 Hm. a simple collection of questions? Certainly not. I talking of a
 whole mechanism, where you group input and output into contexts. From
 application view it would be an API, it schould work no matter if the
 input/ output is generated from and to HTML, WML, XML or even
 stand-allone GUIs.

Could you give me an example of how this would work?


___
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] TransparentFolder Problem

2001-06-28 Thread Andre Schubert

Hi,

i have a problem with Acquisition and TransparentFolders.
I have the following structure

/
Transparent_A
Method_A
Folder_B
Transparent_B
Method_A
Folder_C

Folder_B and Folder_C are non-transparent, Transparent_A and
Transparent_B are transparent.

The problem is when i say dtml-var Method_A in a Document which is in
Folder_C i got  the Method_A from Folder_B.Transparent_B and not from
Transparent_A.
Could anyone help me or explain what's wrong.

thanks, as


___
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] Hey Chris, question for you

2001-06-28 Thread Toby Dickenson

 I think it has changed for FieldIndexes.

Yes, from UnKeywordIndex.py

newKeywords = getattr(obj, self.id, ())

  You can now make 
 the distinction
 between doesnt have that attribute and attribute is one of 
 [None, '', [],
 ()] within a Field Index.

Reviewing UnKeywordIndex.py, I dont see what an object should do to mean
doesnt have that attribute dont include me in this FieldIndex. Any
suggestions?

Thanks for your time,

___
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] TransparentFolder Problem

2001-06-28 Thread Joachim Werner

 /
 Transparent_A
 Method_A
 Folder_B
 Transparent_B
 Method_A
 Folder_C

 Folder_B and Folder_C are non-transparent, Transparent_A and
 Transparent_B are transparent.

 The problem is when i say dtml-var Method_A in a Document which is in
 Folder_C i got  the Method_A from Folder_B.Transparent_B and not from
 Transparent_A.
 Could anyone help me or explain what's wrong.

Haven't had time to check this in more detail, but maybe it is because you
start from the ROOT level. ROOT is not real folder/object manager, but
something that just works similar. Does it work if you create a new folder
and move your whole folder tree in?

Joachim


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter


If I have some time left at all tonight, I will make a wizard that could
be  the initial front-end to mk-zprod. Could you give me a short list of
things  you would like to ask the user?

Hm. a simple collection of questions? Certainly not.
I talking of a whole mechanism, where you group input
and output into contexts. From application view it
would be an API, it schould work no matter if the input/
output is generated from and to HTML, WML, XML or even
stand-allone GUIs.
I'm thinking of semantic groups of input, output and types
and ranges and default values including naming conventions.

Well, that sounds more like what SmartObjects tries to do. But I am still 
confused. As Erik wrote later, can you give examples?

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter

Here my list of questions:

1. Will we create ZClass or Python Products?

Product-name

2. I think it should ask some more meta-data information here, such as 
License, Author(s), Description 

A list of images (like dtmldoc.gif and such)

3. Okay, here we should have a loop of enter images with upload 
functionality. The only problem is where do we save them in the mean time?

If you want to set a default Catalog name

4. Okay, I do not work with the catalog; what do you need, just a name or 
the path? I think the WizardTreePage will help here.

If you want nice redirection after adding objects

5. Yep, how could that look like; should I provide users with a text area 
or what?

if you want to include standard headers in your dtml files

Okay.

a list of classes

6. Yes, we will start a loop here asking for class information.

  class name
  class type
  class icon name

7. Yeah, this is all the meta-data here, so that could go on one page. But 
you are missing a list of Base Classes. I have no clue where to get these 
from. I guess it is time to look into the ZClass code, but I think they use 
a separate Mechanism. The problem with the current product registry is that 
NO classes are listed anywhere, only their constructors, which is nothing 
worth in this case.

  catalogaware or not (or may just methods to index/reindex th object)

Okay.

   a list of attributes
 attribute name
 attribute type
 attribute default value

8. Should that just use the PropertyManager attribute _properties? I 
usually add the 'default' key to each property dictionary and write a two 
liner in the __init__ method to generate the properties with their default...

   a list of subclasses
 subclass name
 subclass type
 subclass icon name
 a list of attributes
   

9. Again, that would be a loop. But my question here would be: Are you 
using sub-classes that much. I have written one so far in all the products ...

Okay, I think we got a flow together... If you have a couple more minutes 
grin, some sort of storyboards would be nice... I started already 
building a wizard, but I dunno how much time I got today, since I am 
leaving town tomorrow and won't return until the ZopeCon in Berlin is over. 
Are coming to Berlin?

Regards,
Stephan


--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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] TransparentFolder Problem

2001-06-28 Thread Andre Schubert

I have testet it on a devel server, but on this machine everything works
fine.
I forgot to say, that there is a siteroot in Folder_B and Folder_C and the
Permissions in these Folders are different.
If i have time i try to rebuild the situation step by step and tell you the
Results

thanks, as

Joachim Werner schrieb:

  /
  Transparent_A
  Method_A
  Folder_B
  Transparent_B
  Method_A
  Folder_C
 
  Folder_B and Folder_C are non-transparent, Transparent_A and
  Transparent_B are transparent.
 
  The problem is when i say dtml-var Method_A in a Document which is in
  Folder_C i got  the Method_A from Folder_B.Transparent_B and not from
  Transparent_A.
  Could anyone help me or explain what's wrong.

 Haven't had time to check this in more detail, but maybe it is because you
 start from the ROOT level. ROOT is not real folder/object manager, but
 something that just works similar. Does it work if you create a new folder
 and move your whole folder tree in?

 Joachim

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



[Zope-dev] no reload of image in management interface of python product

2001-06-28 Thread [EMAIL PROTECTED]

hello all

i have a python product with an image as a property
now i display the image in the management screen, but when i change the 
image via the management interface the browser does no refresh of the image

is set the mod time like this:

self.doc_icon.lmt=time.time()
self.doc_icon.lmh=rfc1123_date(self.doc_icon.lmt)

doc_icon is a ImageFile

so the date changes but the browser doesn't update this

do i have to add something in the http header of the management page or so

please help -- bernd

___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge

On Thu, 28 Jun 2001, Stephan Richter wrote:

 Here my list of questions:
 
 1. Will we create ZClass or Python Products?

Python Products.
 
 Product-name
 
 2. I think it should ask some more meta-data information here, such as 
 License, Author(s), Description 

Yepp :)
 
 A list of images (like dtmldoc.gif and such)
 
 3. Okay, here we should have a loop of enter images with upload 
 functionality. The only problem is where do we save them in the mean time?

Upload?  Upload to where?

mk-zprod (as it works today) creates a directory on your filesystem, and
in that directory (which you just copy to your Products directory) it
creates an img/ directory and puts them there.
 
Or are you asking where the wizard should store them?  (Which I thought it
didn't have to.)

 If you want to set a default Catalog name
 
 4. Okay, I do not work with the catalog; what do you need, just a name or 
 the path? I think the WizardTreePage will help here.

Just the name. :)
 
 If you want nice redirection after adding objects
 
 5. Yep, how could that look like; should I provide users with a text area 
 or what?

In the dtml/ directory of mk-zprod you have Add2.dtml, that's the page the
user is redirected to after adding an object.  Maybe a text area with a
suggestion (like Add2.dtml) in it?
 
 7. Yeah, this is all the meta-data here, so that could go on one page.
 But you are missing a list of Base Classes. I have no clue where to
 get these from. I guess it is time to look into the ZClass code, but I
 think they use a separate Mechanism. The problem with the current
 product registry is that NO classes are listed anywhere, only their
 constructors, which is nothing worth in this case.

Hubbliski.  We could provide them with standard classes as defaults
(Persistent, Explicit/Implicit, AccessControl) and suggest some
others.  I'm not too sure about the ZClass thing.

 8. Should that just use the PropertyManager attribute _properties?

Yepp.

 I usually add the 'default' key to each property dictionary and write
 a two liner in the __init__ method to generate the properties with
 their default...

Why not just have:

def __init__(self, attrib1, attrib2='something'):
doc string
self.attrib1 = attrib1
self.attrib2 = attrib2

which could come from such a description:

attribs:
name: attrib1 default value: None
name: attrib2 default value: something
 
What do you think?

 9. Again, that would be a loop. But my question here would be: Are you
 using sub-classes that much. I have written one so far in all the
 products ...

My latest projects sub-classes left, right and center.  If we just have
the logic for a recursive loop there the user could add as many as s/he
wanted without it being much more work for us.
 
 Are coming to Berlin?

Well, I was, but I'm moving to France the 8. of July and I've just come
home (to Norway) from England.  England, Norway, France, Germany, France
all in just three weeks is a bit much :)  (Oh, and I have to get an
apartment in Antibes.)


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge

On Thu, 28 Jun 2001, Erik Enge wrote:

   name: attrib1 default value: None
   name: attrib2 default value: something

No, that wouldn't work, because you might want None as the default for
that attribute.  Maybe Nothing, or somesuch then.


___
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] url_quote

2001-06-28 Thread Petr Knapek

Hi Zopists,

is it bug or feature, when I do this:

dtml-var id url_quote

then not only 'id' is returned, but something what looks like this:

dtml-var REQUEST['URL']/dtml-var id where id is url_quoted.


Shouldn't only url_quoted value of id be returned instead of the above
noted URI?  I use Zope 2.3.1 with python 1.5.2 on Debian and FreeBSD.

Petr

PS I was not able to check it at www.zope.org because of it's
unreachability. 
-- 
Petr Knpek
Network Development
NEXTRA Czech Republic s.r.o. http://www.nextra.cz/
V Celnici 10 / CZ - 117 21 Praha 1 / Czech Republic
Tel: +420/2/96 355 111 / Mobile: +420/604-202 611
E-Mail: [EMAIL PROTECTED]

Contact address:
Hlinky 114 / CZ - 603 00 Brno / Czech Republic
Tel: +420/5/43 554 150 / FAX: +420/5/43 554 214
see Disclaimer http://www.nextra.cz/disclaimer/

___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter

At 02:23 PM 6/28/01 +0200, Erik Enge wrote:
On Thu, 28 Jun 2001, Erik Enge wrote:

name: attrib1 default value: None
name: attrib2 default value: something

No, that wouldn't work, because you might want None as the default for
that attribute.  Maybe Nothing, or somesuch then.

None == Nothing. Some default we need to have, otherwise we cannot 
initialize the attribute.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter


Python Products.

Ok.

  3. Okay, here we should have a loop of enter images with upload
  functionality. The only problem is where do we save them in the mean time?

Upload?  Upload to where?

mk-zprod (as it works today) creates a directory on your filesystem, and
in that directory (which you just copy to your Products directory) it
creates an img/ directory and puts them there.

Well, but where are the images coming from. The Wizard is a Web Frontend, 
so we would need to upload the images or copy them from somewhere else from 
the file system.
BTW, the /img directory is non-standard. Better would be www/ since other 
products use it as well.
In fact, we only need to think about adding them with the right permissions 
to the directory. A piece of code in the __init__.py will do the rest:

# load all the icons automatically
from Globals import package_home, ImageFile
misc_ = {}
path = os.path.join(package_home(globals()), 'www/')

for file in os.listdir(path):
 if file[-3:] == 'gif':
 misc_[file[:-4]] = ImageFile('www/%s' %file, globals())


Or are you asking where the wizard should store them?  (Which I thought it
didn't have to.)

Well, you can take two approaches here:
1. As soon as the user uploads the icon, we are adding it to the directory. 
This is a problem, if you want to undo some or all of the wizard actions, 
but is much easier to implement.
2. When the icon is uploaded, save it somewhere temporarily. At the end, 
when all questioning is done, add everything at once. This has the 
advantage that you can freely move back and forth until you finish the wizard.

  5. Yep, how could that look like; should I provide users with a text area
  or what?

In the dtml/ directory of mk-zprod you have Add2.dtml, that's the page the
user is redirected to after adding an object.  Maybe a text area with a
suggestion (like Add2.dtml) in it?

Sounds good.

Hubbliski.  We could provide them with standard classes as defaults
(Persistent, Explicit/Implicit, AccessControl) and suggest some
others.  I'm not too sure about the ZClass thing.

Okay, for the first version that will probably suffice.

  I usually add the 'default' key to each property dictionary and write
  a two liner in the __init__ method to generate the properties with
  their default...

Why not just have:

 def __init__(self, attrib1, attrib2='something'):
 doc string
 self.attrib1 = attrib1
 self.attrib2 = attrib2

Because this is horribly ugly and unflexible when you have 20 attributes. I 
always have to change several places, if I modify, add or edit an 
attribute/property.

which could come from such a description:

 attribs:
 name: attrib1 default value: None
 name: attrib2 default value: something

Well, we can describe that right away in the standard property dictionary 
form; then we do not need to parse or do anything else.

  9. Again, that would be a loop. But my question here would be: Are you
  using sub-classes that much. I have written one so far in all the
  products ...

My latest projects sub-classes left, right and center.  If we just have
the logic for a recursive loop there the user could add as many as s/he
wanted without it being much more work for us.

Okay, I just wanted to make sure it really has the additional usage, for 
the extra effort.

Well, I was, but I'm moving to France the 8. of July and I've just come
home (to Norway) from England.  England, Norway, France, Germany, France
all in just three weeks is a bit much :)  (Oh, and I have to get an
apartment in Antibes.)

Okay. It would have been a good place to discuss this further.

Now, I looked at the mk-zprod code again. We need to make it a real Zope 
Product with a nice management API, so that I can use the functions from 
the Wizard.

For example we would need:

manage_make_initializeProduct(...)
manage_make_addClass(...)
manage_make_addProperty(...)
manage_make_addIcon(...)
manage_make_addSubClass(mainClass, ...)

If we define this API clearly, then we can use it later to automatically 
generate ZClasses as well. Once the work, twice the reward! ;-)

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge

On Thu, 28 Jun 2001, Stephan Richter wrote:

 Well, but where are the images coming from. The Wizard is a Web
 Frontend, so we would need to upload the images or copy them from
 somewhere else from the file system.

From the filesystem of the user?

 BTW, the /img directory is non-standard. Better would be www/ since other 
 products use it as well.

Sure thing.  (Although, www/ indicates to me .html pages and various other
things too.)

 In fact, we only need to think about adding them with the right permissions 
 to the directory. A piece of code in the __init__.py will do the rest:

Yes.  This is what mk-zprod does today :)
 
 2. When the icon is uploaded, save it somewhere temporarily. At the end, 
 when all questioning is done, add everything at once. This has the 
 advantage that you can freely move back and forth until you finish the wizard.

Sounds good :)
 
  def __init__(self, attrib1, attrib2='something'):
  doc string
  self.attrib1 = attrib1
  self.attrib2 = attrib2
 
 Because this is horribly ugly and unflexible when you have 20 attributes. I 
 always have to change several places, if I modify, add or edit an 
 attribute/property.

Could you give me an example of how you would do it?  (Then I could
modify the mk-zprod code.)
 
 Well, we can describe that right away in the standard property dictionary 
 form; then we do not need to parse or do anything else.

Nice :)
 
 Well, I was, but I'm moving to France the 8. of July and I've just come
 home (to Norway) from England.  England, Norway, France, Germany, France
 all in just three weeks is a bit much :)  (Oh, and I have to get an
 apartment in Antibes.)
 
 Okay. It would have been a good place to discuss this further.

Morten Petersen from Thingamy will be there, I'm sure he has some thoughts
about it.
 
 Now, I looked at the mk-zprod code again. We need to make it a real
 Zope Product with a nice management API, so that I can use the
 functions from the Wizard.

I'll start typing right now.  I'll probably have something premature by
tomorrow.
 
 If we define this API clearly,

Ok.  I'll just write up mk-zprod as a Python Product and the API is
defined as I go.  Then, you could have a look and we can unite on one API
and I make the necessary changes in the code.  Yeah?

Unless, of course, you have some specific requests right away.

 Once the work, twice the reward! ;-)

I like.



___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge

On Thu, 28 Jun 2001, Stephan Richter wrote:

 For example we would need:
 
 manage_make_initializeProduct(...)
 manage_make_addClass(...)
 manage_make_addProperty(...)
 manage_make_addIcon(...)
 manage_make_addSubClass(mainClass, ...)

I just realised something.  How do you need this to work?  With regards to
the wizard.  Should mk-zprod produce the files and add them to a folder in
itself?  Or should it return everything for the wizard to handle?


___
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: [Zope-dev]SmartSections 0.1.0 released

2001-06-28 Thread Simon Michael

Hi Stephan, thanks for this. Sounds pretty useful.

 IMPORTANT: SmartSections requires OrderedFolder!

and CoreSessionTracking.. and Formulator.. and SmartWizard.. (or not?)

It seems to be happy with dependencies now but when I create a Smart
Section in the ZMI I get

 Error Type: AttributeError
 Error Value: getParentNode
 

Traceback (innermost last):
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_addSmartSection)
  File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: manage_addSmartSection)
  File /home/bb/Products/SmartSections/SmartSection.py, line 17, in 
manage_addSmartSection
  File /home/bb/Products/SmartSections/General.py, line 9, in findFormContainer
  File /home/bb/Products/SmartSections/General.py, line 9, in findFormContainer
(Object: Traversable)
  File /home/bb/Products/SmartSections/General.py, line 9, in findFormContainer
(Object: Traversable)
  File /home/bb/Products/SmartSections/General.py, line 9, in findFormContainer
(Object: ApplicationDefaultPermissions)
  File /home/bb/Products/SmartSections/General.py, line 8, in findFormContainer
AttributeError: (see above)


___
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: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-28 Thread Chris Withers

Giovanni Maruzzelli wrote:
 
 The catalog is a pristine 2.3.3b1 catalog.

I'm sure that'll need upgrading then...

 We have recreated the catalog from scratch because we tried
 manage_convertBTrees , but it don't work for us, it return with an error
 (and the same happens with 2.3.3 final):
 
 Error Type: TypeError
 Error Value: second argument must be a class

Weird... from your earlier posting it looked like you _had_ successfully
upgraded and updated (BTrees.IOBTree in your traceback rather than
IOBTree.IOBTree)

cheers,

Chris

___
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] Best Free UML, XMI, Zope/Transwarp tools

2001-06-28 Thread jimbo

I've been  looking for a standard *FREE* tool that I can use to design Zope apps.  I 
think my search is over.  It seems to be a good tool for students because it's free 
and comes with support for Java, Persistence and XMI, Full and partial exchange.

  I wonder if Transwarp is at the point of being able to use UML/XMI stuff.


Here is the URL for the UML tool
http://www.ii.atos-group.com/rhone-alpes/Dom/english/


-Jimbo

___
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: Experiments with ORMapping

2001-06-28 Thread Jeff Kowalczyk

 I was thinking there would be a default table where everything gets 
 stored by default.  A programmer then tells the ORMapping about 
 specific classes and how to store them.

I wouldn't think it would be practical to use unless the ORMapping
managed the tables by examining the class signature as metadata. ADO.NET
has this in reverse, the tools can define classes that mirror a SQL
recordset. Similarly, references to other objects would need to be
supported with joins.

BTW, I was going to mention this article
http://www.vbpj.com/upload/free/features/vbpj/2001/07jul01/sqlpro0107/re
in0107/rein0107p.asp
As a 'rah-rah zope' example of RDBMS complexity Zope/ZODB spares us, but
now it brings up something the ORMapping layer would have to do (perhaps
with more savvy) to support mixed folder hierarchy among class
instances.


___
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-dev]SmartSections 0.1.0 released

2001-06-28 Thread Stephan Richter


Hi Stephan, thanks for this. Sounds pretty useful.

Thanks. Well, I should have waited with releasing it, but I thought it 
would be good, since SmartWizard can be using it. I promise that the 
quality and documentation will drastically increase with the next releases.

  IMPORTANT: SmartSections requires OrderedFolder!

and CoreSessionTracking.. and Formulator.. and SmartWizard.. (or not?)

It requires CoreSessionManagement? I could not find the spot in the code.
Oh yes, it requires Formulator!!! Of course the heart of all the forms. ;-)
Nope, SmartSections does not require SmartWizard. The Wizard just uses 
SmartSections.

It seems to be happy with dependencies now but when I create a Smart
Section in the ZMI I get
snip error

Yes, yes, yes. I was just too tired last night to think of everything!

Okay, here the explanation and the simple fix (or necessary install step):

SmartSectionElements use Forms to be added and edited. Since I did not want 
to hard code these forms and have them editable in the ZMI, you have to 
define a Form container. This Form Container can be any Folder. You simply 
need to add the boolean property 'isFormContainer' and all the section 
forms will be placed there.
In addition to the first case: If you have your Form Container and it 
contains a Transparent Folder called 'Forms', then the forms are put in 
this Forms Folder for better organization.

If you have further questions, feel free to contact me!

Regards,
Stephan


--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: Experiments with ORMapping

2001-06-28 Thread Stephan Richter

At 01:30 PM 6/28/01 -0400, Jeff Kowalczyk wrote:
  I was thinking there would be a default table where everything gets
  stored by default.  A programmer then tells the ORMapping about
  specific classes and how to store them.

I wouldn't think it would be practical to use unless the ORMapping
managed the tables by examining the class signature as metadata. ADO.NET
has this in reverse, the tools can define classes that mirror a SQL
recordset. Similarly, references to other objects would need to be
supported with joins.

BTW, I was going to mention this article
http://www.vbpj.com/upload/free/features/vbpj/2001/07jul01/sqlpro0107/re
in0107/rein0107p.asp
As a 'rah-rah zope' example of RDBMS complexity Zope/ZODB spares us, but
now it brings up something the ORMapping layer would have to do (perhaps
with more savvy) to support mixed folder hierarchy among class
instances.

You might want to look at the DBObjects/SmartObjects development. DBObjects 
already allows direct ORMapping, including more restrictive QueryFolders, a 
History with Undo functionality (in CVS), Volatile/Persistent Mode, XML-RPC 
Support and much more.
DBObjects Home Page: http://demo.iuveno-net.de/iuveno/Products/DBObjects
(Note: The DBObjects Demo is using the older versions.)
DBObjects CVS: http://imail.iuveno-net.de/CVS/cvsweb.cgi/DBObjects/

Accessing the CVS via SSH:
cvs -d :pserver:[EMAIL PROTECTED]:/cvs login
password anonymous
cvs -d :pserver:[EMAIL PROTECTED]:/cvs checkout DBObjects

I am not the CVS expert, so let me know if it does not work.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter

Erik,

I think we need to setup a separate mailing list for this project. Can you 
do that? I think the discussion is getting too specific now.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter


I just realised something.  How do you need this to work?  With regards to
the wizard.  Should mk-zprod produce the files and add them to a folder in
itself?  Or should it return everything for the wizard to handle?

All what the wizard will do is provide the user with a nice interface/GUI 
to enter the information. I will then pass the information to the above 
mentioned management methods and the MakeZProduct Product will then 
generate the code and save it to the file system.

BTW, we will assume that the user that runs the Zope engine has write 
access to /ZOPE/lib/python/Products.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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: ZPL and GPL

2001-06-28 Thread Hannu Krosing

Barry A. Warsaw wrote:
 
 With respect to Python, the issue has been hashed to death over in
 c.l.py and other forums, so I think this will be my last post on the
 subject here.  IMO, the Python 2.0.1 license is the best of all
 possible worlds.  In the words of the FSF themselves:
 
 The License of Python 2.0.1, 2.1.1, and newer versions.

Is there such thing as Python 2.1.1 ? I did'nt find any mention of it on
python.org ?

-
Hannu

___
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: [ZPatterns] Best Free UML, XMI, Zope/Transwarp tools

2001-06-28 Thread Phillip J. Eby

At 10:35 AM 6/28/01 -0700, jimbo wrote:
I've been  looking for a standard *FREE* tool that I can use to design
Zope apps.  I think my search is over.  It seems to be a good tool for
students because it's free and comes with support for Java, Persistence and
XMI, Full and partial exchange.

  I wonder if Transwarp is at the point of being able to use UML/XMI stuff.

Well, the current CVS has a full UML metamodel in it, and the test suite
actually performs some operations such as creating a UML model, adding
items to a package, and so on.  But I still haven't rewritten the XMI
support.  I expect it to be another month or so before that shows up in CVS.

(By the way, the best place for discussion regarding TransWarp is the
mailing list [EMAIL PROTECTED], and the zope-dev list generally
frowns on crosspostings for discussion.  If you reply to this message, be
sure to only reply to [EMAIL PROTECTED]  Thanks!)


___
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] persistence

2001-06-28 Thread Mark McEahern

I'm a Zope and Python newbie and I'm trying to utilize Persistence, but I've
seen two different ways:

import ZODB
from Persistence import Persistent

vs.

from Globals import Persistent

Are these different?  If so, which is better?  Please don't ask me to
define better.  ;-)

Thanks,

// mark


___
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] persistence

2001-06-28 Thread Michel Pelletier

On Thu, 28 Jun 2001, Mark McEahern wrote:

 I'm a Zope and Python newbie and I'm trying to utilize Persistence, but I've
 seen two different ways:
 
   import ZODB
   from Persistence import Persistent
 
 vs.
 
   from Globals import Persistent
 
 Are these different?  If so, which is better?  Please don't ask me to
 define better.  ;-)

If you're just using Zope, both are acceptable.  If you are just using
ZODB, use the first.

-Michel


___
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] url_quote

2001-06-28 Thread Dieter Maurer

Petr Knapek writes:
  Hi Zopists,
  
  is it bug or feature, when I do this:
  
  dtml-var id url_quote
  
  then not only 'id' is returned, but something what looks like this:
  
  dtml-var REQUEST['URL']/dtml-var id where id is url_quoted.
  
  
  Shouldn't only url_quoted value of id be returned instead of the above
  noted URI?  I use Zope 2.3.1 with python 1.5.2 on Debian and FreeBSD.
Apparently, dtml-var recognizes Parenthesis


Dieter

___
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] no reload of image in management interface of python product

2001-06-28 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  i have a python product with an image as a property
  now i display the image in the management screen, but when i change the 
  image via the management interface the browser does no refresh of the image
  
  is set the mod time like this:
  
  self.doc_icon.lmt=time.time()
  self.doc_icon.lmh=rfc1123_date(self.doc_icon.lmt)
  
  doc_icon is a ImageFile
  
  so the date changes but the browser doesn't update this
The  browser has the image happily in its cache.
You need a SHIFT + 


Dieter

___
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] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-28 Thread Dieter Maurer

Yves-Eric Martin writes:
  But unfortunately, dtml-sqltest ... does not seem to work.
  We get the following error:
  
 The ... shorthand for expr was used in a tag that doesn't
  support expr attributes., for tag dtml-sqltest [...] 
I expect that dtml-sqltest does not support the expr
attribute due to its optional.

  It is not easy to define the semantics of optional for
  arbitrary expressions.

  Your example seems to suggests, that you would like
  the tag to be omitted, when the expression
  raise a NameError.
  But, in fact, it is not clear whether this is anticipated
  by optional or a serious problem (maybe deep in the
  expression) that should be reported.


Dieter

___
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] RestrictedDTML w/isPrincipiaFolderish: error with CMF 1.1 and Zope 2.4.0

2001-06-28 Thread Joseph Wayne Norton


Hello.

I'm getting the following error message (see below) while accessing the
contents of a folder (http://localhost/cmf/Portal/FolderD/folder_contents)
underneath a CMF site instance.

I was testing Python 2.1, and CMF 1.1/Zope 2.4.0 (latest cvs checked
out versions).  I do not have any problem while using CMF 1.1 (latest
cvs version), Zope 2.3.3, and Python 1.52.

The starting ZODB database is identical in both cases.  However, I'm
not using the ZDebug product with Zope 2.4.0.

I'm just not sure if the issue is due to:

  - CMF - isPrincipiaFolderish being used in the folder_contents skin
  or
  - Zope 2.4.0 - RestrictedDTML bug ?
  or
  - Zope 2.3.3 security mechanism bug ?
  or
  - bug in my acl setup 

I feel the following priviledges should be sufficient ...

  Access contents information
  List folder contents
  View

to access isPrincipiaFolderish.

Any pointers ???

- joe n.




 
TD WIDTH=90%
  H2Site Error/H2
  PAn error was encountered while publishing this resource.
  /P
  PSTRONGUnauthorized/STRONG/P
  
  You are not authorized to access emisPrincipiaFolderish/em.
!--
Traceback (innermost last):
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/ZPublisher/Publish.py, line 
223, in publish_module
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/ZPublisher/Publish.py, line 
187, in publish
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/ZPublisher/Publish.py, line 
171, in publish
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/ZPublisher/mapply.py, line 
160, in mapply
(Object: RestrictedDTML)
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/ZPublisher/Publish.py, line 
112, in call_object
(Object: RestrictedDTML)
  File 
/opt/arseed/tfs-lib/zope/zope-2.4.0/lib/python/Products/CMFCore/FSDTMLMethod.py, line 
182, in __call__
(Object: RestrictedDTML)
  File 
/export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/DocumentTemplate/DT_String.py, line 
544, in __call__
(Object: RestrictedDTML)
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/DocumentTemplate/DT_Let.py, 
line 148, in render
(Object: filterString=REQUEST.get( 'folderfilter', '' )
  filter=decodeFolderFilter( filterString ))
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/DocumentTemplate/DT_In.py, 
line 661, in renderwb
(Object: listFolderContents( filter=filter ))
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/DocumentTemplate/DT_Let.py, 
line 146, in render
(Object: obj=_.getitem('sequence-item', 0 )
   folderish=isPrincipiaFolderish
   portalish=_.hasattr( obj, 'isPortalContent' )
 and obj.isPortalContent
   methodID=folderish and '/folder_contents' or ( portalish
 and '/view' or '' )
   getIcon=_.hasattr(obj, 'getIcon') and obj.getIcon()
   icon=getIcon or _.getattr(obj, 'icon', ''))
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/AccessControl/DTML.py, line 
101, in guarded_getattr
(Object: RestrictedDTML)
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/AccessControl/ZopeGuards.py, 
line 120, in guarded_getattr
(Object: DynamicType)
  File /export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/AccessControl/ZopeGuards.py, 
line 103, in aq_validate
(Object: DynamicType)
  File 
/export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/AccessControl/SecurityManager.py, 
line 149, in validate
  File 
/export/arseed/tfs-lib/zope/zope-2.4.0/lib/python/AccessControl/ZopeSecurityPolicy.py, 
line 229, in validate
Unauthorized: (see above)

___
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] no reload of image in management interface of python product

2001-06-28 Thread [EMAIL PROTECTED]

Dieter Maurer wrote:

[EMAIL PROTECTED] writes:
  i have a python product with an image as a property
  now i display the image in the management screen, but when i change the 
  image via the management interface the browser does no refresh of the image
  
  is set the mod time like this:
  
  self.doc_icon.lmt=time.time()
  self.doc_icon.lmh=rfc1123_date(self.doc_icon.lmt)
  
  doc_icon is a ImageFile
  
  so the date changes but the browser doesn't update this
The  browser has the image happily in its cache.
You need a SHIFT + 


Dieter

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

thanks - but  isn't there another method - so that the user doesn't have 
to reload the page manualy everytime ?

- bernd


___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter


  BTW, we will assume that the user that runs the Zope engine has write
  access to /ZOPE/lib/python/Products.
 

Don't forget about those of us that use $INSTANCE_HOME/Products

Oops, that what I meant to say.  have access to the Products directory 
 :-)

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


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