[Zope-dev] Using PropertySheets

2000-09-19 Thread Erich Seifert

Hi everbody,

I've played a bit with the PropertySheets interface and I wanted to create two
Stylesheets. Everything works fine, but ...

* I don't get the management tabs in the propertysheet/manage method.
  Perhaps a permission problem?
* I can't pass a default value to a tokens property. How to?
* I can't pass a default value to a boolean property. How to?

Could someone please give me some example code or hints?

Thanks in advance
Eric

___
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] Returning a list of names from a Python Method

2000-09-19 Thread Steve Alexander

Michael Bernstein wrote:

 Michael Bernstein wrote:
 
 Does anyone on the list know how to change the getUserNames
 Python method to return a list of names instead of a list of
 objects?
 
 The code in question is this:
 
   user_ids=self.UserSource.getPersistentItemIDs()
 
   names=[]
   for i in user_ids:
   names.append(self.getItem(i))
   return names
 
 
 Ok, I solved this little problem (and of course it looks
 obvious once I've done it):
 
names=[]
for i in user_ids:
names.append(i)
return names

You can also use the Python map function for this. It will be more 
efficient that iterating through user_ids using "for i in user_ids:"

return map(None, self.UserSource.getPersistentItemIDs())
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
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] Using PropertySheets

2000-09-19 Thread Steve Alexander

Erich Seifert wrote:

 

 * I can't pass a default value to a tokens property. How to?

Can you pass in a space-separated string, such as '' or 'token1' or 
'token1 token2'?

 * I can't pass a default value to a boolean property. How to?

How are you trying to do this? You can pass in the string '1' for true 
and '0' for false.

 Could someone please give me some example code or hints?

It would really help to see some of the code you're already using. Can 
you also say a bit about what you are trying to do overall?

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
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] Using PropertySheets

2000-09-19 Thread Erich Seifert

Thanks Steve

Steve Alexander wrote:
 
 Erich Seifert wrote:
 
  
 
  * I can't pass a default value to a tokens property. How to?
 
 Can you pass in a space-separated string, such as '' or 'token1' or
 'token1 token2'?

No I tried that.

  * I can't pass a default value to a boolean property. How to?
 
 How are you trying to do this? You can pass in the string '1' for true
 and '0' for false.

I tried both int numbers 0/1 and strings '0'/'1'

  Could someone please give me some example code or hints?
 
 It would really help to see some of the code you're already using. Can
 you also say a bit about what you are trying to do overall?

I'm currently trying to create a ZBibliography product.

Every class should have a base class which defines the basic properties
in two property sheets 'data' and description'.
For example: the 'data' property sheet currently stores 'persons', and
'title' while the 'description' sheet stores for example 'languages'
(tokens), 'offprint', and 'public' boolean attributes.

I'm not shure if this works: I wanna extend the properties stored in the
'data' sheet in the subclasses 'book', 'article', etc.

Please be patient because this is my first python program.
I hope this helps
Eric

---
Here are parts of my code:
Properties for the 'desc' PropertySheet

self._descprops = (
  {'id':'source', 'type':'string',  'value':'', 'mode':'w',},
  {'id':'languages',  'type':'tokens',  'value':'en', 'mode':'w',},
  {'id':'files',  'type':'lines',   'value':'', 'mode':'w',},
  {'id':'keywords',   'type':'lines',   'value':'', 'mode':'w',},
  {'id':'references', 'type':'lines',   'value':'', 'mode':'w',},
  {'id':'abstracts',  'type':'text','value':'', 'mode':'w',},
  {'id':'annotation', 'type':'text','value':'', 'mode':'w',},
  {'id':'classification', 'mode':'w', 'type':'multiple selection',
   'value':'', 'select_variable':'categories', 'mode':'w',},
  {'id':'offprint',   'type':'boolean', 'value':0,  'mode':'w',},
  {'id':'public', 'type':'boolean', 'value':1,  'mode':'w',},
)

Properties for the 'data' PropertySheet:

self._dataprops = (
  {'id':'persons',  'value':'','type':'lines',  'mode':'w'},
  {'id':'title','value':title, 'type':'string', 'mode':'w'},
  {'id':'title_transl', 'value':'','type':'string', 'mode':'w'},
)

___
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] HiperDOM xmlc

2000-09-19 Thread Spicklemire, Jerry

There are a few things I'm trying to understand about the xmlc-like
Templates proposal. First :

"Using specialized webdesigners with Zope project has been one
of the biggest pains in Zope development; we have to take the
sometimes ugly code generated by the tools they use, usually
clean it up, then insert the DTML tags in it. Making changes to
the design is a nightmare."

http://lists.zope.org/pipermail/zope-dev/2000-September/006893.html


'Yep.  Essentially the programmers "steal" the presentation/view layer from
the designers and convert it to "code".'

http://lists.zope.org/pipermail/zope-dev/2000-September/006958.html

OK, point taken, but it's not quite that simple. In the end, isn't that why
artist do design, and coders code? One of the primary purposes in a complete
Content Management System is to distill the presentation standard in a way
that can be "layered" over any content. This principle doesn't stop at a
clearly delineated "visual" line.

Leaving the page layout "as is", which is what it sounds like you are
suggesting, is even worse than doing the job right at the "cast into code"
stage. If you leave the ugly HTML ugly, it will still be ugly next time it
gets updated, but it will be much less useful in the meantime. Worse, it's
likely to get uglier over time. Have you ever seen a baby rhinocerous?

To me the real solution is to clean up the layout, converting hard coded
"virtual" lists into real lists, etc., while painstakingly preserving the
visual design. That clean, codified version can then be leveraged to the
utmost during it's production life, and still be fed back to the designer at
design update time. This can be easily done today in the form of a static
HTML file, simply by calling the Zope URL of the base template, and hitting
"save as". With the proposed xmlc-ish Template, the "snapshot" step should
not be needed, which is great! 

Granted, if the person who distills the design into clean, reusable HTML /
DTML / XML hasn't done the job well, incorporating the changes of the
updated version may well be a nightmare. On the other hand, if this crucial
step is done well, adapting the base template to match the "new vision"
should in fact be much easier the second time.

I think a large part of the confusion comes from where we each draw the
conceptual line regarding what is "visual" and what is best handled as
"code". An anchor tag is, after all, just a pointer to some related stuff,
not the actual physical location of anything. 

If making it easy for visual folks to avoid this basic fact is the driver
here, there's a much larger problem looming in the immediate XML future . .
 .

Also, the idea of presenting a place holder sounds a lot like :

"As for cases where a dataset is displayed, such as by a ZSQL query, perhaps
a single "dummy" row, or cell, could stand in for design purposes."

http://www.zope.org/Resources/Mozilla/ZWiki/IDEs

Is that what you mean? Is the "dummy" stuff intended to resemble the final
content, or just to mark an insertion point? Might it be possible to make
place holders in the form of anchors (links) to DTML Methods, or other
appropriate forms of native Zope elements, so that DreamWeaver, et. al. can
pull down a "real" item, rather than having a hard coded "stuff goes here"
label? That sounds advantageous to me, in terms of validating a visual
design.

Groping toward grokking,
Jerry S.



___
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] How best to restart Zope?

2000-09-19 Thread Jason Cunliffe

Hello

Q: How to make sure Zope restarts automatically it is shut down ?

Zope version: Zope 2.2.0 (binary release, python 1.5.2, linux2-x86) 
Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] 
Linux2.2.5-15 RedHat6.0 (Hedwig)

any ideas?

tia
- Jason


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

2000-09-19 Thread Jason Cunliffe

Hello

Trying to automate some sendmail messages
but we keep getting

Error Type: error
Error Value: host not found

Traceback (innermost last):
  File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: sendmail_test)
  File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: sendmail_test)
  File /Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 167, in __call__
(Object: sendmail_test)
  File /Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in
__call__
(Object: sendmail_test)
  File /Zope-2.2.0/lib/python/Products/MailHost/SendMailTag.py, line 188, in
render
(Object: dolphinsMailHost)
  File /Zope-2.2.0/lib/python/Products/MailHost/MailHost.py, line 220, in
send
(Object: dolphinsMailHost)
  File /Zope-2.2.0/lib/python1.5/smtplib.py, line 452, in sendmail
  File /Zope-2.2.0/lib/python1.5/smtplib.py, line 303, in ehlo
error: (see above)

Any clues to what is wrng here?

tia
- Jason

Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director



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

2000-09-19 Thread J. Atwood

It looks like the email address you are sending (testing) to is not valid.

"host not found"

J

At 7:10 AM -0400 9/19/2000, Jason Cunliffe wrote:
Hello

Trying to automate some sendmail messages
but we keep getting

Error Type: error
Error Value: host not found

Traceback (innermost last):
   File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
   File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish
   File /Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish
   File /Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: sendmail_test)
   File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in
call_object
 (Object: sendmail_test)
   File /Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 167, in __call__
 (Object: sendmail_test)
   File /Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in
__call__
 (Object: sendmail_test)
   File /Zope-2.2.0/lib/python/Products/MailHost/SendMailTag.py, line 188, in
render
 (Object: dolphinsMailHost)
   File /Zope-2.2.0/lib/python/Products/MailHost/MailHost.py, line 220, in
send
 (Object: dolphinsMailHost)
   File /Zope-2.2.0/lib/python1.5/smtplib.py, line 452, in sendmail
   File /Zope-2.2.0/lib/python1.5/smtplib.py, line 303, in ehlo
error: (see above)

Any clues to what is wrng here?

tia
- Jason

Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director



___
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 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] How best to restart Zope?

2000-09-19 Thread Jerome Alet

On Tue, 19 Sep 2000, J. Atwood wrote:

 Put this in your 'start' script
 
-Z /home/local/zope/var/Z2.pid
 
 It watches the PID and if it fails will restart it.

Ok, my script covered a very different problem: Zope instances were still
active and running, but unable to serve requests. My script tries to
detect this situation because in this case -Z would be inefficient, and
tries to restart Zope after a timeout.

Sorry if it didn't answered your question.

bye,

Jerome Alet


___
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] How best to restart Zope?

2000-09-19 Thread Jørgen Skogstad

Jason Cunliffe wrote:
 
 Hello
 
 Q: How to make sure Zope restarts automatically it is shut down ?
 
 Zope version: Zope 2.2.0 (binary release, python 1.5.2, linux2-x86)
 Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
 Linux2.2.5-15 RedHat6.0 (Hedwig)
 
 any ideas?
 
 tia
 - Jason
 
 ___
 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 )

There is an article on www.zope.org that describes the
daemontools package .. do a search on the zope website for
"daemontools" .. and you should be redirected to some
"lightwerk" website in germany i think.. 

.. that should do the trick!

-- 


Med vennlig hilsen,
Jørgen Skogstad


  /\System Specialist
 \\ \   
\ \\ /  Sun Microsystems AS
   / \/ / / Gjerdrums vei 12  
  / /   \//\N-0486 Oslo, NORWAY  
  \//\   / /  
   / / /\ / Phone:+ 47 22 02 39 00 
/ \\ \  Cellular: + 47 92 41 30 23
 \ \\   Fax:  + 47 22 02 39 99  
  \/EMail:[EMAIL PROTECTED]
Web:  www.sun.no  

BTW; Opinions formed by myself in informal mailings are 
 mine and not of my employer.

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

2000-09-19 Thread Jason Cunliffe

- Original Message -
From: J. Atwood [EMAIL PROTECTED]


 It looks like the email address you are sending (testing) to is not valid.

 "host not found"

That can't be right. I have tried with a couple of known working email
address.
..But I notice the Python error points first to /lib/python1.5/ and then
/lib/python

What up? Is this 'normal' for Zope 2.2.x?

File /Zope-2.2.0/lib/python/Products/MailHost/MailHost.py, line 220, in send
(Object: dolphinsMailHost)
File /Zope-2.2.0/lib/python1.5/smtplib.py, line 452, in sendmail
File /Zope-2.2.0/lib/python1.5/smtplib.py, line 303, in ehlo

Thanks
Jason

 At 7:10 AM -0400 9/19/2000, Jason Cunliffe wrote:
 Hello
 
 Trying to automate some sendmail messages
 but we keep getting
 
 Error Type: error
 Error Value: host not found
 
 Traceback (innermost last):
File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in
publish
File /Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
  (Object: ApplicationDefaultPermissions)
File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in
publish
File /Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply
  (Object: sendmail_test)
File /Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
  (Object: sendmail_test)
File /Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 167, in __call__
  (Object: sendmail_test)
File /Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502,
in
 __call__
  (Object: sendmail_test)
File /Zope-2.2.0/lib/python/Products/MailHost/SendMailTag.py, line
188, in
 render
  (Object: dolphinsMailHost)
File /Zope-2.2.0/lib/python/Products/MailHost/MailHost.py, line 220,
in
 send
  (Object: dolphinsMailHost)
File /Zope-2.2.0/lib/python1.5/smtplib.py, line 452, in sendmail
File /Zope-2.2.0/lib/python1.5/smtplib.py, line 303, in ehlo
 error: (see above)
 
 Any clues to what is wrng here?
 
 tia
 - Jason



___
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: Re(2): [Zope] Zope not starting after VaryTag install

2000-09-19 Thread Didier Georgieff

Le 18 Sep 00, à 15:49, Tino Wildenhain a écrit :

 I just checked with 2.1.6 (winNT) and it worked without problems.
 Can anybody else confirm this?

Sounds like it's Varytag under Linux related.

A - first step :
1 - I reinstalled a fresh 2-1-6 from the source (on Corel Linux and 
python from the source).
2 - Reinstalled my products : 
 * ZMySQLDA 1.2.0
 * NFGnav 0.6
 * Yihaw 1.0
3 - copied my ancien Data.fs
4 - packed the database
5- all works fine again. No problem.

B - second step :
1 - made a tar file from this install (to avoid long reinstalls after 
each try)
2 - installed Varytag 1.0
3 - even a simple index_html makes the traceback.

C - third step :
1 - delete the (now) bad install, and untar the previous one. 
2 - Works fine.
3 - remove the 3 products from the panel control and from the 
Products directory
4 - Works fine.
5 - compact the database. Works fine.
so now i have a Zope 2.1.6 without any product.
6 - install Varytag
7 - same traceback.

  Just after installing VaryTag, Zope (2-1-6)  restart fine, but when i
  try to connect to my zope adress, i got an error (traceback further).

ImportError

 Sorry, a Zope error occurred.

 Traceback (innermost last):
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 214, in 
publish_module
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 179, in publish
   File /zope/2-1-6/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 165, in publish
   File /zope/2-1-6/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: index_html)
   File /zope/2-1-6/lib/python/ZPublisher/Publish.py, line 102, in 
call_object
 (Object: index_html)
   File /zope/2-1-6/lib/python/OFS/DTMLMethod.py, line 150, in __call__
 (Object: index_html)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
 (Object: index_html)
   File /zope/2-1-6/lib/python/OFS/DTMLDocument.py, line 162, in __call__
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 443, in 
__call__
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 381, in 
cook
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_String.py, line 231, in 
parse
 (Object: zope_powered)
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_Var.py, line 248, in 
__init__
   File /zope/2-1-6/lib/python/DocumentTemplate/DT_Util.py, line 357, in 
name_param
 (Info: ({'': '"zope_logo.tag(BORDER=\'0\')"'}, 'var', 1, 'name'))
   File /zope/2-1-6/lib/python/DocumentTemplate/VSEval.py, line 157, in 
__init__
 ImportError: No module named gparse
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] How best to restart Zope?

2000-09-19 Thread Dimitris Andrakakis

Jørgen wrote:
 There is an article on www.zope.org that describes the
 daemontools package .. do a search on the zope website for
 "daemontools" .. and you should be redirected to some
 "lightwerk" website in germany i think..

A vote from me too, daemontools is a great tool in general -not
only for Zope. We use it to monitor Apache as well.

Dimitris
http://atlas.central.ntua.gr:8000/~mc94068



___
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 best to restart Zope?

2000-09-19 Thread Frank Tegtmeyer


 But if it works, why would one ever need more than "-Z" ?

For me it didn't work - maybe that the problem is gone in newer versions 
of Zope. That's why I run Zope under daemontools. Additional it's nice to 
be able to control Zope the same way like other services.

Regards, Frank

___
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] Massive FTP troubles

2000-09-19 Thread marwin98

Hello all,

after solving my problem with siteroot (thanks to Evan Simpson!), I just 
encountered something very strange:
I login with my FTP-client and after uploading a couple of gif files to 
port 8021, I get the following in the Z2.log:
===
2000-09-19T13:41:20 INFO(0) ZServer Successful login.
--
2000-09-19T13:41:29 INFO(0) ZServer Incoming connection from 212.9.128.5:61462
--
2000-09-19T13:41:29 INFO(0) ZServer Incoming connection from 212.9.128.5:61463
--
2000-09-19T13:41:29 INFO(0) ZServer Successful login.
--
2000-09-19T13:41:29 INFO(0) ZServer Successful login.
--
2000-09-19T13:41:29 INFO(0) Z2 CONFLICT Competing writes at, /em/nav/aiti2.gif
Traceback (innermost last):
   File /var/zope222/lib/python/ZPublisher/Publish.py, line 175, in publish
   File /var/zope222/lib/python/Zope/__init__.py, line 235, in commit
   File /var/zope222/lib/python/ZODB/Transaction.py, line 251, in commit
   File /var/zope222/lib/python/ZODB/Connection.py, line 267, in commit
ConflictError: "


--
2000-09-19T13:41:30 INFO(0) Z2 CONFLICT Competing writes at, /em/nav/aiti2.gif
Traceback (innermost last):
   File /var/zope222/lib/python/ZPublisher/Publish.py, line 175, in publish
   File /var/zope222/lib/python/Zope/__init__.py, line 235, in commit
   File /var/zope222/lib/python/ZODB/Transaction.py, line 251, in commit
   File /var/zope222/lib/python/ZODB/Connection.py, line 267, in commit
ConflictError: "

=
Does this mean that zope doesn't lock it's files appropriately?

feeling slightly scared...

Martin

PS: I use the latest source distr. - dl'ed and installed about an hour ago, 
and Mandrake Linux 7.1 x86


___
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] Using GUF (generic user folder) under 2.2.x?

2000-09-19 Thread César A. K. Grossmann

Danny William Adair wrote:
 
 I've experienced the same problem with GUF (which is why I am desperately
 waiting for the LoginManager HOWTO). Everything looks fine first, but the
 login screen will keep reappearing. Which part of the walkthrough could be
 out of date, the password? ;-)

I experienced some weirdness with GUF in the Zope 2.1.6. I write the
correct login and password, and get the same login screen after pressing
the button. Then I:

1. revised all the Proxy settings for the methods in the acl folder, and
put everything as Manager (in the proxy). Same result;

2. revised all the security properties. The GUFTest folder doesn't
inherit any security property, and Anonymous can oly "access content
information", and "can login and logout". Same results.

The more weird thing I do: after getting the second login screen, I
pressed the "Reload" button (Netscape 4.75 in a Linux box) and get the
index_html page! So I changed the docLogin method and put the line
bellow in the HEADER part of the HTML:

meta http-equiv="Pragma" content="no-cache"

Then, after the login, the index_html page appears without the need of a
reload in a Linux Netscape. In the Windows version of the Netscape it
doesn't works...

I don't have tried GUF with a 2.2.x Zope version (I'm still figthing to
put the Zope/PostgreSQL connection to work).

Sorry my bad english, I'm brazilian...

[]s
-- 
 +-+-+
 | César A. K. Grossmann   | Capacitação Solidária   |
 | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ |
 | http://members.xoom.com/ckant/  | Clique e doe - é de graça   |
 +-+-+
   http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html
If I had any humility I would be perfect.
-- Ted Turner

___
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] Should I use ZODB or not ?

2000-09-19 Thread Loren Stafford

From: "Jerome Alet" [EMAIL PROTECTED]



[snip]
 Our needs are to store hundreds, and possibly thousands of MPEG2 and MPEG4
 (generally short) video movies, MP3 audio files, JPEG images, etc...

[snip]

 I see 5 solutions:

 1 - store both files and their associated datas in ZODB
 2 - store files in the filesystem and datas in ZODB
 3 - store files in the filesystem and datas in an RDBMS
 (use Zope only for the presentation of files and datas)
 4 - store files in ZODB and datas in an RDBMS.
 5 - don't use Zope at all because it's not appropriate.


In general, large file uploads thru HTTP are clumsy. The browsers don't
provide progress indicators. Broken connections occur due to timeout under
network congestion but the browsers don't handle broken connections well.
And (as far as I can tell) the entire request (including the entire file) is
buffered in the OS swapspace. Some site I saw recently (was it xdrive? I'm
not sure) uses client-side Java to manage the upload.

I chose #2 for a similar application and ran into these additional issues:

1. A file upload done thru Zope into the filesystem passes thru a temporary
file. This increases slightly the apparent upload time, while you copy the
file to its final destination. And, you must also ensure that the partition
where temporary files are placed has enough space for the maximum file size.

2. You must also decide how you are going to serve the file. Since it's in
the file system, you could serve it directly thru Apache (perhaps thru a
redirect initiated by Zope), thereby avoiding occupying a Zope thread for a
long time for every downlaod. But if you take this approach, you must
somehow make Apache apply the same access control to the file that you have
in Zope. This can be done, but is an added complication.

-- My .02
-- Loren



___
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] howto force rendering of a dtml doc

2000-09-19 Thread Ralph Heinkel

Hi,

having a structure like
FolderA
  DocA
FolderB
 DocB

I try to display DocA from within DocB using

dtml-var "FolderA.DocA"

which basically works, except that HTML code from DocA is not rendered but
printed as plain ascii (e.g. I can see the br statements as these 4
characters).
Is there a way to force rendering?

Thanks,

Ralph


 -- 
--
Ralph Heinkel
MPI-CBG, Group Echeverri
Meyerhofstr. 1
69012 Heidelberg
Tel. 06221/387 915
Fax. 06221/387 971
eMail: [EMAIL PROTECTED]

___
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] Zope 2.2.2 breaks zdiscussions

2000-09-19 Thread Júlio Dinis Silva

more specific it is a zdbase problem, and by consequence zdconfera
and zdiscussions are broken.

somewhere on startup:

zope couldnt import Products.ZDBase
...
ZDiscussions.py line 106
...
lib\python\App\class_init.py line 109 in default__class_init
...
lib\python\AccessControl\Permisson.py line 204 in registerPermissions

Anyone?

ps.sorry for this 'traceback' but (dont ask me why) I lost the copy+paste 
mojo of my window manager :-(


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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] dtml-var and Null values.

2000-09-19 Thread Stuart Foster

I am trying to use the null attribute for a btml-var tag. But it doesn't
seem to work.
The docs say if the value is an empty string you can use something like
dtml-var some_empty_value null="none" but this doesn't seem to work.
Am I missing something?

TIA
Stuart


___
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] Zope 2.2.2 breaks zdiscussions

2000-09-19 Thread Júlio Dinis Silva

Hi,

I'm using version 1.0, and here is the exact traceback from the ZDBASE
Product Folder: ( yes, I recovered my copy+paste mojo :)
-

Traceback (innermost last):
  File "lib\python\OFS\Application.py", line 397, in import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "lib\python\Products\ZDBase\__init__.py", line 86, in ?
import ZDiscussions
  File "lib\python\Products\ZDBase\ZDiscussions.py", line 106, in ?
class ZDItem(OFS.SimpleItem.SimpleItem,
  File "lib\python\App\class_init.py", line 109, in default__class_init__
   AccessControl.Permission.registerPermissions(self.__ac_permissions__)
  File "lib\python\AccessControl\Permission.py", line 204, in 
registerPermissions
perm, methods, default = setting
ValueError: unpack sequence of wrong size

-


And now the traceback from ZDConfera:

--
ZDConfera Import Traceback

Traceback (innermost last):
  File "lib\python\OFS\Application.py", line 397, in import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "lib\python\Products\ZDConfera\__init__.py", line 3, in ?
from ZDConfera import *
  File "lib\python\Products\ZDConfera\ZDConfera.py", line 2, in ?
from Products.ZDBase import ZDiscussions
ImportError: cannot import name ZDiscussions




And now for something :)  the ZDiscussions Error when trying to add a 
zdiscussion topic:

--

Error: NameError

Traceback (innermost last):
  File lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File lib\python\ZPublisher\Publish.py, line 187, in publish
  File lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
(Object: RoleManager)
  File lib\python\ZPublisher\Publish.py, line 171, in publish
  File lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: ZDTopic_add)
  File lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: ZDTopic_add)
  File lib\python\OFS\DTMLDocument.py, line 177, in __call__
(Object: ZDTopic_add)
  File lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
(Object: ZDTopic_add)
  File lib\python\DocumentTemplate\DT_With.py, line 133, in render
(Object: ZDTopic.createInObjectManager(REQUEST['id'], REQUEST))
  File lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
(Object: ZDTopic.createInObjectManager(REQUEST['id'], REQUEST))
(Info: ZDTopic)
  File string, line 0, in ?
NameError: (see above)



-- Julio Dinis Silva


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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] SQLSession Chokes on Hyphens (-), Spaces, and punctuation

2000-09-19 Thread Baker, Dennis [sjmr]

I'm using SQLSession to manage sessions on my zope site.  I need to store
member ID's which may or may not contain hyphens,  or short sentences
describing a diagnosis which usually includes one or more spaces.
SQLSession accepts the item,  but the next page it tries to load comes up
with "improper padding" and errors out on the SQLSession code.  

HELP !!


___
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] Zope 2.2.2 breaks zdiscussions

2000-09-19 Thread Júlio Dinis Silva

From: "J. Atwood" [EMAIL PROTECTED]
To: Júlio Dinis Silva [EMAIL PROTECTED]
Subject: Re: [Zope] Zope 2.2.2 breaks zdiscussions
Date: Tue, 19 Sep 2000 12:53:24 -0400

Ahh.. what version of Zope did you go from?

I use zdiscussions with no problems since zope 2.0.0 to 2.2.0.
I didnt test it with (zope220 and zope222). Now I'm testing it
with 222 and for the first time its broken.

-- Júlio Dinis Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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] DTML call, form vars, submits

2000-09-19 Thread Dale Kiefling

Hello,
Any help with the following questions appreciated:
1. I am currently calling the SQL session product with the following code:
dtml-call "SESSION.set('user_id',per_cpk)"
I would like to change this to include a variable, like so:
 dtml-call "SESSION.set('user_id',dtml-var per_coldid)"
 but I cannot nest the the var tag inside a call tag.  Is there some 
other way to do this?
 Do I have to use  form variables or constants in a call?
2.  Is it possible to explicitly store a value in a form variable without a 
submit?
3.  What is the best/easiest way to force a submit?  I tried calling 
document.submit, but I don't think I am doing it right.

Thanks!

Dale


___
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] Import Problems

2000-09-19 Thread Joshua Brauer

Here's another try at getting this question addressed I have 2 Zope installs. On 
the newer one (2.2.1) when I try to import KM Net News (to install in the products 
list) I get the following error. Note I previously deleted KM Net News (the earlier 
version) but think that Zope might have gotten killed right in the middle of the 
delete and not completely deleted the product.

Is there any way to get rid of the Class ID KMYear that does not show up in any way 
through the interface?


Traceback (innermost last):
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /websites/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /websites/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_importObject)
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_importObject)
  File /websites/Zope/lib/python/OFS/ObjectManager.py, line 509, in manage_importObject
(Object: Traversable)
  File /websites/Zope/lib/python/OFS/ObjectManager.py, line 264, in _setObject
(Object: Traversable)
  File /websites/Zope/lib/python/OFS/ObjectManager.py, line 272, in manage_afterAdd
(Object: Traversable)
  File /websites/Zope/lib/python/ZClasses/ZClass.py, line 422, in manage_afterAdd
(Object: KMArticleStore)
  File /websites/Zope/lib/python/OFS/ObjectManager.py, line 272, in manage_afterAdd
(Object: Traversable)
  File /websites/Zope/lib/python/ZClasses/ZClass.py, line 421, in manage_afterAdd
(Object: KMYear)
  File /websites/Zope/lib/python/ZClasses/ZClass.py, line 375, in _register
(Object: KMYear)
Duplicate Class Ids: (see above)

-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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] DTML call, form vars, submits

2000-09-19 Thread Chris McDonough

 Hello,
 Any help with the following questions appreciated:
 1. I am currently calling the SQL session product with the following code:
 dtml-call "SESSION.set('user_id',per_cpk)"
 I would like to change this to include a variable, like so:
  dtml-call "SESSION.set('user_id',dtml-var per_coldid)"
  but I cannot nest the the var tag inside a call tag.  Is there some
 other way to do this?
  Do I have to use  form variables or constants in a call?

Nested DTML does not work... instead just use the varname, e.g.

dtml-call "SESSION.set('user_id',per_coldid)"


 2.  Is it possible to explicitly store a value in a form variable without
a
 submit?

Errr... not sure what this means.  A form variable doesn't exist until it is
submitted.

 3.  What is the best/easiest way to force a submit?  I tried calling
 document.submit, but I don't think I am doing it right.

Not sure what you're trying to do here either... can you give an example?
Note that you can generally exchange formvars for querystring values, thus
you can tack on key/value pairs on the end of a URL and they will be
interpreted as if they came from a form when the URL is called via GET (e.g.
when it is clicked on).


___
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] Import Problems

2000-09-19 Thread Lalo Martins

On Tue, Sep 19, 2000 at 11:19:22AM -0600, Joshua Brauer wrote:

 Here's another try at getting this question addressed I
 have 2 Zope installs. On the newer one (2.2.1) when I try to
 import KM Net News (to install in the products list) I get the
 following error. Note I previously deleted KM Net News (the
 earlier version) but think that Zope might have gotten killed
 right in the middle of the delete and not completely deleted
 the product.
...
 Duplicate Class Ids: (see above)

This looks like the "floating ZClasses" problem I have with
2.2.1... when I installed it, BannerFolder was broken for some
reason, then I deleted it and when I tried to install the new
one I had the same exception you did (Duplicate Class Ids).

The weirdest part is that BannerFolder is now _working_
(without its Product). Please check your installation and see
if the old version of KM|Net still works (you won't be able to
create new objects, so you have to have old ones around to make
this test).

[]s,
   |alo
   +
--
  Hack and Roll  ( http://www.hackandroll.org )
News for, uh, whatever it is that we are.


http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
 pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

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

2000-09-19 Thread Joaldo Junior

It forgives for my English, I am still learning

we go direct to the subject: it would like to know with I I make to
attribuir values of an object SQL Method for the other. Former object
sql_contatos TBL_Contatos.int_id = sql_problemas TBL_Problemas.int_id 

very obliged

___
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: Looking for Zope vs. Others at-a-glance comparison

2000-09-19 Thread Spicklemire, Jerry

-Original Message-
From: Richard Moon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 11:43 AM
To: Spicklemire, Jerry; [EMAIL PROTECTED]
Subject: Re: Looking for Zope vs. Others at-a-glance comparison

Perhaps there should be someone producing an 'approved' list of 
products that meet certain standards of ease of installation, 
documentation etc.

Funny you should mention that. It sounds exactly like something I asked for
about a year ago. It may be the perfect time to raise this point again,
though, with the PTK getting ever closer to final release, the ZDP starting
to gain some dircet support and validation, and the DC Business Partners
program being formalized. 

So far it's pretty much up to each of us to decide whether or not this or
that package is useful. There are some hints, when lot's of posts rave about
how great one of the contributed goodies is.

It would be great to have a "seal of approval" for contributions that meet
minumum standards, with complete checklist of usability, ease of
installation, documentation etc.

Good Idea!
Jerry S.

___
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] manage_delObjects on ZopeTime

2000-09-19 Thread Dieter Maurer

Dr. Anthony Monta writes:
  ...
  what's the DTML for making 
  these objects auto-delete after x number of days?
Zope objects are not active in its own.
They must be operated on and will not auto-delete
themselves after some period.

You may look at Xron, a Zope product implementing a scheduler
(-- zope.org). It would allow you to schedule events
and trigger event specific actions. The action could search
all objects via ZCatalog sufficiently old and delete them.

Dieter

___
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] Massive FTP troubles

2000-09-19 Thread Dieter Maurer

marwin98 writes:
  after solving my problem with siteroot (thanks to Evan Simpson!), I just 
  encountered something very strange:
  I login with my FTP-client and after uploading a couple of gif files to 
  port 8021, I get the following in the Z2.log:
  ===
  2000-09-19T13:41:20 INFO(0) ZServer Successful login.
  --
  2000-09-19T13:41:29 INFO(0) ZServer Incoming connection from 212.9.128.5:61462
  --
  2000-09-19T13:41:29 INFO(0) ZServer Incoming connection from 212.9.128.5:61463
  --
  2000-09-19T13:41:29 INFO(0) ZServer Successful login.
  --
  2000-09-19T13:41:29 INFO(0) ZServer Successful login.
  --
  2000-09-19T13:41:29 INFO(0) Z2 CONFLICT Competing writes at, /em/nav/aiti2.gif
  Traceback (innermost last):
 File /var/zope222/lib/python/ZPublisher/Publish.py, line 175, in publish
 File /var/zope222/lib/python/Zope/__init__.py, line 235, in commit
 File /var/zope222/lib/python/ZODB/Transaction.py, line 251, in commit
 File /var/zope222/lib/python/ZODB/Connection.py, line 267, in commit
  ConflictError: "
Apparently, you have two clients that want to change "/em/nav/aiti2.gif"
at the same time.


Dieter

___
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] Should I use ZODB or not ?

2000-09-19 Thread Jason Cunliffe

Hello

I am curious how do you all think LocalFS would perform for such a big
multimedia application.?
http://www.zope.org/Members/jfarr/Products/LocalFS

Use Zope for managing meta-data, or mayeb even better Zope + a fast DB tool
for the metadata part.
Let Zope do its holy best for the 'virtual-object interfacing' jobs, let the
others do their thing..

My understanding was that using the LocalFS is as fast as you can get really
and that any file size limits are to do with the OS, disks RAM, caching etc,
not Zope or anything else. Plus one is free to scale or mix and match zope
with other tools and systems, as it develops without compromising all the
work which has gone into  the base data's filestructure. Might be much
easier to develop too..

The data would not be locked into Zope or for that matter any RDBMS
'solution'. One coud performance tests, develop optimizations and determin
along the way when and where to apply them.
No headaches as Zope goes through upgrades either because one is not taxing
it too much.

Can anyone see what are the faults with this approach?

I have been wondering about such what plan to use and if or with Zope for
large animated map datasets project. This would  use Flash SWF, and also SVG
[XMLbased Scalable Vector Graphics]
The SWF can be merged into Quicktime allowing for multiple tracks.

This is a powerful combinatoin where one needs to package trainging,
presentation. Video though big contains a huge amount of 'information' which
is lost in all other infromation system: body language, human language, tone
of voice, inflexion, accent, emphasis, mood, lighting, context, scale,
enviromnental conditions. etc.

- Jason


Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director

- Original Message -
From: Dieter Maurer [EMAIL PROTECTED]
To: Jerome Alet [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 19, 2000 3:44 PM
Subject: Re: [Zope] Should I use ZODB or not ?


 Jerome Alet writes:
   Our needs are to store hundreds, and possibly thousands of MPEG2 and
MPEG4
   (generally short) video movies, MP3 audio files, JPEG images, etc...
  
   Altough most of the files will be in the 1 Mb - 10 Mb range, some
could
   be larger, e.g. some Gigabytes.
  
   For each file we also want to keep some data: author, subject,
encoding,
   description, keywords, domain, etc...
  
   I see 5 solutions:
  
   1 - store both files and their associated datas in ZODB
   2 - store files in the filesystem and datas in ZODB
   3 - store files in the filesystem and datas in an RDBMS
   (use Zope only for the presentation of files and datas)
   4 - store files in ZODB and datas in an RDBMS.
   5 - don't use Zope at all because it's not appropriate.

 Do not store the files in Zope or serve them with Zope.
 A standard web server (e.g. Apache) is at least one order
 of magnitude faster than Zope for static content (such as
 multi media files). This is essential for you
 large file objects.

 If you have up to a few thousand objects and they do not change too
 often, you can put them (the meta data) into the ZODB.
 Otherwise, put them in a RDBMS.
 I would use the RDBMS whenever I have one or I have more than
 a few hundred objects or I would need access to the data
 from legacy processes, too.


 Dieter

 ___
 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 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] Import Problems

2000-09-19 Thread Joshua Brauer

Unfortunately the previous version of KM Net News was broken by 2.2 :-(


At 2:50 PM -0300 9/19/00, Lalo Martins wrote:

On Tue, Sep 19, 2000 at 11:19:22AM -0600, Joshua Brauer wrote:

 Here's another try at getting this question addressed I
 have 2 Zope installs. On the newer one (2.2.1) when I try to
 import KM Net News (to install in the products list) I get the
 following error. Note I previously deleted KM Net News (the
 earlier version) but think that Zope might have gotten killed
 right in the middle of the delete and not completely deleted
 the product.
...
 Duplicate Class Ids: (see above)

This looks like the "floating ZClasses" problem I have with
2.2.1... when I installed it, BannerFolder was broken for some
reason, then I deleted it and when I tried to install the new
one I had the same exception you did (Duplicate Class Ids).

The weirdest part is that BannerFolder is now _working_
(without its Product). Please check your installation and see
if the old version of KM|Net still works (you won't be able to
create new objects, so you have to have old ones around to make
this test).

[]s,
   |alo
   +
--
  Hack and Roll  ( http://www.hackandroll.org )
News for, uh, whatever it is that we are.


http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
 pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

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

-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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] More Import Problems

2000-09-19 Thread Joshua Brauer

As a horrid workaround for the earlier problem with Z-classes I exported all of my 
data, restarted Zope and am re-importing, or would like to re-import data, but some of 
it won't import back into the same install that it came from. I re-imported the 
products and then want to re-import the parts of the site I get the following 
error:

Error type: ImportError
Error value: cannot import name query


Traceback (innermost last):
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /websites/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /websites/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_importObject)
  File /websites/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_importObject)
  File /websites/Zope/lib/python/OFS/ObjectManager.py, line 504, in manage_importObject
(Object: ApplicationDefaultPermissions)
  File /websites/Zope/lib/python/ZODB/ExportImport.py, line 207, in importFile
  File /websites/Zope/lib/python/SearchIndex/TextIndex.py, line 217, in ?
ImportError: (see above)

-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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] flat file db, favorite links, and zope

2000-09-19 Thread sean

Hi,
I have a comma delimited file which holds favorite links info for my 
site and is used by Perl to display and add new ones.  I want to 
use something Zope related but don't know Zope that well yet (don't 
know Perl much but enough to recycle another's script).  Anyway, I 
have all of these links in a file and don't want to loose them.  I 
would like to continue to allow site visitors to add to the list 
(selecting their own categories, etc) and have the db managed 
easily my me.

What are my best options?  Should I use some sort of Zope 
product to handle this?  If so, does one of them allow me to use 
my existing db file (at least import it)?
I could, I suppose run Perl via Zope if I had to but there must be a 
better way (I would not be sure how to do this either).

Any advice would be appreciated.

--Sean

___
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] FW: [Zope-PTK] Date Question

2000-09-19 Thread Scott Burton

This is the correct list :)

--
From: Scott Burton [EMAIL PROTECTED]
Date: Tue, 19 Sep 2000 14:27:46 -0700
To: [EMAIL PROTECTED]
Subject: [Zope-PTK] Date Question

OK, I have searched everywhere for the answer to this. It is quite simple
but I can't seem to figure it out. All I want to do is iterate over
cataloged objects(dtml-in "Catalog(meta_type='object_type')") and only
show items who's bobobase_modification_date matches today's date.

I just can't figure out how to set the fmt="%d" in an if tag.

TIA

Scott B. 

___
Zope-PTK maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-ptk

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests




___
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] can I suppress newlines/whitespace in DocumentTemplates?

2000-09-19 Thread Dennis Nichols

At 9/19/00 03:11 PM, Skip Montanaro wrote:
I'd like to structure my DTML so it is vaguely readable:

 dtml-var "_['start'].strftime('%m/%d%y')"
 dtml-if "start != end"--
 -dtml-var "_['end'].strftime('%m/%d%y')"
 /dtml-if--

This means inserting newlines and doing some indenting.  Unfortunately,
since I'm generating plain text, the newlines and indentation count (unlike
with HTML)...

Even in HTML, the indents and newlines count by showing up as a space 
before the '-' in the above example. You can fix this with good readability 
simply by "delaying" the closing ''. For example,

 dtml-var "_['start'].strftime('%m/%d%y')"
dtml-if "start != end"
-dtml-var "_['end'].strftime('%m/%d%y')"
/dtml-if





--
Dennis Nichols
[EMAIL PROTECTED]


___
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] Folderish DTML Document

2000-09-19 Thread Andy McKay

Am I totally off my head or is it possible to make a Folderish DTML
Document. I had a thread on zope-dev got no response. I know Chris Withers
thinks every object is a folderish one, but Im talking about using
PropertyManager, ObjectManager and DTMLMethod all on one object. The main
problem being absolute_url on the object seems to be broken.

--
  Andy McKay, Developer.
  ActiveState.


___
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] Folderish DTML Document

2000-09-19 Thread Andy McKay

Well here's my proclamation. It cant be done... you cant have a Folderish,
DTMLMethod without doing any major rewrites of code. Looking at that old
favorite Squishdot, it seems the postings are all just stuck in one folder
and you rewrite whole bunches of bits. Im going to look at it more tonight,
but Chris if you are out there any insight would be helpful.

- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 19, 2000 5:19 PM
Subject: [Zope] Folderish DTML Document


 Am I totally off my head or is it possible to make a Folderish DTML
 Document. I had a thread on zope-dev got no response. I know Chris Withers
 thinks every object is a folderish one, but Im talking about using
 PropertyManager, ObjectManager and DTMLMethod all on one object. The main
 problem being absolute_url on the object seems to be broken.

 --
   Andy McKay, Developer.
   ActiveState.


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

2000-09-19 Thread Karl Munroe

How can I get to make image maps in zope??


___
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] FW: [Zope-PTK] Date Question

2000-09-19 Thread Bill Anderson

Scott Burton wrote:
 
 This is the correct list :)
 
 --
 From: Scott Burton [EMAIL PROTECTED]
 Date: Tue, 19 Sep 2000 14:27:46 -0700
 To: [EMAIL PROTECTED]
 Subject: [Zope-PTK] Date Question
 
 OK, I have searched everywhere for the answer to this. It is quite simple
 but I can't seem to figure it out. All I want to do is iterate over
 cataloged objects(dtml-in "Catalog(meta_type='object_type')") and only
 show items who's bobobase_modification_date matches today's date.
 
 I just can't figure out how to set the fmt="%d" in an if tag.


You shouldn't have to.
If Zope's DateTime has the today method, you culd do:
dtml-in "Catalog(meta_type='object_type')"
  dtml-if "_.DateTime.today  bobobase_modification_time"
dtml-title; was modified today.
  /dtml-if
/dtml-in

hmmm ... lemme see if it does ... nope.
Well, it works in python.
The other day (at a machine I don't have access too right now) I managed
to get mxDateTime in the namespace. If it would help, I'll try to post
what I did to get it done.


In the meantime, if you have mxDateTime installed, you should be able to
have an external method called "Today", that returns DateTime.today, and
compare as thus:

code-untested
-
dtml-in "Catalog(meta_type='object_type')"
  dtml-if "Today  bobobase_modification_time"
dtml-title; was modified today.
  /dtml-if
/dtml-in
-
/code-untested

still-wishing-mxDateTime-was-available-in-Zope-ly y'rs Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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