Re: [Zope-dev] CalendarTag, year mode image

2000-09-07 Thread Ibañez Palomar Juan David



Please, look at "http://estce.act.uji.es/calendar.html", there
are several proposed images.

The only problem I see is when the year mode is selected, since
there's more white than black it's not clear which mode is
selected.


opinions? votes? more suggestions?


 
 The calendar mode icons on the Palm are based on the visible 
 structure of the diffent screens (one day, one row of days, 
 a matrix of days). On the newer palms, there is another view
 (current day and TODO items; a single dot above some lines). 
 
 To keep in the same "language", I would use a big, black block 
 or circle to show "too many days" to view at once.
 
 
 
 -- 
 Jens Quade * [EMAIL PROTECTED] * Bonn
 
 


___
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] CalendarTag, year mode image

2000-09-07 Thread Ibañez Palomar Juan David



I've updated the page (http://estce.act.uji.es/calendar.html)
following your suggestions, if nobody disagrees I'll release
the CalendarTag 0.9.21 with that new look.


 
 [EMAIL PROTECTED] (Ibañez Palomar Juan David) writes:
 
  Please, look at "http://estce.act.uji.es/calendar.html", there
  are several proposed images.
  
  The only problem I see is when the year mode is selected, since
  there's more white than black it's not clear which mode is
  selected.
 
 You are right, it's dificult to decide wether an icon is selected or not.
 
 Of the given proposals, i'd prefer proposal 0, because the other do not
 have enough "structure".
 
 Maybe you could use color, as my Palm does :).
 (black on white) changes to (white on blue) on selection. 
 
 jens
 
 
 
 
 -- 
 Jens Quade * [EMAIL PROTECTED] * Bonn
 
 


___
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] REPOST: Cut down on the Available Objects list.

2000-09-07 Thread Erik Enge


Hi, all - someone suggested to me that I should try the zope-dev list
instead of the zope list, here goes.

When I create ZClasses I can make the Available Objects shrink to just
a couple of available objects via subclasses and so forth.  How would
I do this with a Python Class in a Python Zope Product?  (Let's say an
OFS.Folder.Folder class, which could normally contain all available
objects.)

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 )




RE: [Zope-dev] REPOST: Cut down on the Available Objects list.

2000-09-07 Thread Brian Lloyd

 Hi, all - someone suggested to me that I should try the zope-dev list
 instead of the zope list, here goes.
 
 When I create ZClasses I can make the Available Objects shrink to just
 a couple of available objects via subclasses and so forth.  How would
 I do this with a Python Class in a Python Zope Product?  (Let's say an
 OFS.Folder.Folder class, which could normally contain all available
 objects.)

Erik,

In the ObjectManager class (lib/python/OFS/ObjectManager.py), 
there is a method 'filtered_meta_types', which is called by 
the DTML that implements the Zope management screens. The 
job of this method is to filter the list of available objects 
based on the authorization of the user.

An approach that you could use is to override that method in 
your class so that it only returns the object types that you 
want. You should probably retain the filtering based on 
authorization for consistency (you could probably just call 
the ObjectManager class' method and refilter the result in 
your overridden version). For ex:

class MyFolderishObject(ObjectManager):
  ...

  def filtered_meta_types(self, user=None):
# overridden version
result=[]

# get the filtered list from superclass, so things 
# that the user isn't authorized for are already
# filtered out...
types=ObjectManager.filtered_meta_types(self, user)

# each meta type is a mapping - the name of the 
# object type is under the key 'name'. We'll filter
# out all that start with 'D' as an example.
for item in types:
  if item['name'][0] != 'D':
result.append(item)

return result



Hope this helps!

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  www.digicool.com

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] REPOST: Cut down on the Available Objects list.

2000-09-07 Thread Jim Fulton

Erik Enge wrote:
 
 Hi, all - someone suggested to me that I should try the zope-dev list
 instead of the zope list, here goes.
 
 When I create ZClasses I can make the Available Objects shrink to just
 a couple of available objects via subclasses and so forth.  How would
 I do this with a Python Class in a Python Zope Product?  (Let's say an
 OFS.Folder.Folder class, which could normally contain all available
 objects.)

You would override the method all_meta_types. See
this method in lib/python/OFS/ObjectManager.py.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]
Technical Director   (888) 344-4332  Python Powered!
Digital Creationshttp://www.digicool.com http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] DCOracleStorage: problems running Full.sql

2000-09-07 Thread Matthew T. Kromer

Roman Milner wrote:
 
 I'm trying to get DCOracleStorage up and running, but I'm getting
 errors trying to run Full.sql.  I know didly about plsql, so I
 apalogize if this is obvious.
 
 When I run Full.sql I get the following errros.  Does this mean my
 oracle installation is missing something?
 
 Thanks,
 ^Roman
 
 ...
 
 Table created.
 
 Table created.
 
 Index created.
 
 Commit complete.
 
 Package created.
 
 No errors.
 
 Warning: Package Body created with compilation errors.
 
 create package body zodb_methods as
 *
 ERROR at line 1:
 ORA-01041: internal error. hostdef extension doesn't exist
 
 No errors.
 ORA-24323: value not allowed
 Error accessing package DBMS_APPLICATION_INFO
 ERROR:
 ORA-03114: not connected to ORACLE

Offhand, I'd say that represents a goofed oracle install. 
Sadly, goofing the oracle install is easy to do.  I've tried
DCORacleStorage against 8.1 and had no problems getting Full.SQL
to run, but I have not tried it against 8.0.

___
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] date formatting / extracting substrings

2000-09-07 Thread Paul Erickson

If you've already done some validation and can guarantee that there are
6 characters in the string, you can slice the month out of the string
like this:

dtml-call "REQUEST.set('MonthValue', MonthID[4:6])"

or, if you just want to display the month, use this:

dtml-var expr="MonthID[4:6]"

-Paul

Jeff Nielsen / Ugo Fast wrote:
 
 Hello out there in Zope world!
 
 Again, I'm completely baffled by Zope and the docs are no help either. I'm
 trying to take an input of a date in the form MM as the variable MonthID
 and create a string in the form Month,  as a variable named MonthName.
 For instance, a MonthID of 29 should return a MonthName of "September,
 2000".
 
 I've been looking in the docs and the emails, but I can't figure out how to
 extract substrings. I think something like this should work to seperate the
 month value from the MonthID, but it doesn't:
 
 dtml-call "REQUEST.set('MonthValue', _.substring(MonthID,5,2))"
 
 Any guidance would be appreciated.
 
 ---
 Jeff Nielsen
 http://www.UgoFast.com/
 "Where U Go Fast"
 

-- 
Paul Erickson   | [EMAIL PROTECTED]
Kaivo, Inc. | www.kaivo.com

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Acquisition in a DTML Tag

2000-09-07 Thread Shane Hathaway

Brett Carter wrote:
 
  "Brett" == Brett Carter [EMAIL PROTECTED] writes:
 
 Brett I've defined my own dtml tag (i.e. dtml-foo/dtml-foo)
 Brett and I am trying to look up an object depending on the
 Brett arguments passed to my tag.  The python class that defines
 Brett the tag inherits from Acquisition.Implicit, but 'self'
 Brett doesn't contain any of the Acquisition hiarchy.  It seems
 Brett like this must be possible, since the dtml-var tag must
 Brett have to do an object lookup somewhere for objects passed to
 Brett it to render.  Can anybody shed some light on this?  Is it
 Brett doable?  TIA -Brett
 
 Ok, So after some *major* hacking, i've realized that the 'md' passed
 into the render() method of my dtml tag contains the namespace, and is
 of type 'TemplateDict' which appears to contain a stack of
 'MultiMapping's.  Weird.  Well, anyways, I just used the 'has_key' and
 'getitem' methods to lookup my item.  The question now is how do I
 create a new object in the current namespace?  It looks like the
 TemplateDict is a read-only type of data structure.  Anybody?  TIA
 -Brett

Look at render() of DT_With.py.  It does an md._push(mapping containing
new names) then, in a try/finally clause, calls
DT_Util.render_blocks().  In the finally clause, it does md._pop().

Shane

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

2000-09-07 Thread Roy Vaccaro

[EMAIL PROTECTED] wrote:

 Send Zope-Dev maillist submissions to
 [EMAIL PROTECTED]

 To subscribe or unsubscribe via the web, visit
 http://lists.zope.org/mailman/listinfo/zope-dev
 or, via email, send a message with subject or body 'help' to
 [EMAIL PROTECTED]
 You can reach the person managing the list at
 [EMAIL PROTECTED]

 (When replying, please edit your Subject line so it is more specific than
 "Re: Contents of Zope-Dev digest...")

 Today's Topics:

   1. Re: ZDebug questions (Shane Hathaway)
   2. Re: TCPWatch How-To (Shane Hathaway)
   3. Re: Python 1.6, "Expected node type 12, got 312" (Toby Dickenson)
   4. CalendarTag, year mode image (Ibañez Palomar Juan David)

 --__--__--

 Message: 1
 Date: Wed, 06 Sep 2000 10:06:54 -0400
 From: Shane Hathaway [EMAIL PROTECTED]
 Organization: Digital Creations, Inc.
 To: Chris Withers [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: [Zope-dev] Re: ZDebug questions

 Chris Withers wrote:
  Using your sample 'bad' DTML, I got the same but the 'Contains name?'
  column didn't show up :-(
 
  Any ideas? (yes, I was tracking down a security exception, and that
  column may have been really useful ;-)

 My guess is you're using Zope 2.1.6.  ZDebug doesn't have a way to
 figure out what DTML method is being called in Zope 2.1.6.  Strange but
 true.  So it shows what it can.  The 2.2.x security context stack is
 used to figure it out in 2.2.x.  (Which is still a hack. :-/ )

  ...speaking of which, this is related to the following PTK Tracker
  Issue:
 
  http://www.zope.org/Products/PTK/Tracker/110
 
  while Andy and I were playing with some stuff, we managed to make ZDebug
  cry by giving the discussion_thread_view DTML method the 'Member' proxy
  role and then viewing it from a Member's toolbox (what's the new name
  for that?) on the left:
 
  Error Type: TypeError
  Error Value: not all arguments converted

 Oops!  Try this patch (I left out a "%s"):

 ===
 RCS file:
 /cvs-repository/Packages/Products/ZDebug/DebugSecurityPolicy.py,v
 retrieving revision 1.2
 diff -u -r1.2 DebugSecurityPolicy.py
 --- DebugSecurityPolicy.py  2000/09/04 19:23:58 1.2
 +++ DebugSecurityPolicy.py  2000/09/06 14:04:32
 @@ -234,8 +234,8 @@
  info = 'The proxy roles set for ' \
 '%s do not allow access to %s, which is
 ' \
 'contained in %s. The proxy roles would
 ' \
 -   'have to include one of the following
 roles:' \
 -   % (
 +   'have to include one of the following '
 \
 +   'roles: %s' % (
  getCleanPath(eo), cleanupName(name,
 value),
  getCleanPath(container, value),
  tuple(roles))

  Well, thanks for the product, it looks like being _extremely_ useful
  :-))

 Thank you.  I know when I was new to Zope this would have been
 tremendously useful.  Now it's useful because it should help people
 solve problems on their own rather than having to post to the list.

 Shane

 --__--__--

 Message: 2
 Date: Wed, 06 Sep 2000 10:16:39 -0400
 From: Shane Hathaway [EMAIL PROTECTED]
 Organization: Digital Creations, Inc.
 To: Chris Withers [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] TCPWatch How-To

 Chris Withers wrote:
 
  Shane Hathaway wrote:
   TCPWatch is a simple Python script that lets you monitor a TCP
   connection.
 
  ...now this really is extremely useful to me, but not for Zope ;-)
 
  However, it did take me a while to wrap my head around it. So here's a
  little How-To/Example (If anyone thinks I should do this as a How-To on
  Zope.org, just let me know...)
 
  1. Run up Zope on you local machine on port 8080
  2. Set the following off in an appropriate shell:
 
  python tcpwatch.py 9080 localhost 8080

 I thought about writing a server-starter GUI so that command line
 wouldn't even be necessary.  But I decided I like TCPWatch how it is
 already.  It's simple and to the point.

  3. Point a browser at localhost:9080
 
  Now, the tkinter window that pops up will show you a list of TCP
  connections that happen and when they started.
  If you click on them you get shown all the data which was sent to the
  server (preceded by '==') and to the client (preceded by '==') as well
  as the times the connections opened and closed (could be very useful for
  spotting connections that Zope, or anything else, leaves open longer
  than it should)
 
  This is a very cool little tool :-)

 It should work with most TCP protocols including smtp, imap, pop-3,
 ssh, ZEO, and even that new multi-stream protocol announced recently.
 It might have troubles with ftp, however.

 BTW it uses decimal rather than octal to encode control characters,
 which doesn't follow the "standard" 

[Zope-dev] unsubscribe

2000-09-07 Thread Troy Coburn



Troy Coburn
Programmer Analyst
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
506.460.1280 (tel)
506.460.1289 (fax)
 
www.qtrain.net http://www.qtrain.net 
Leaders in XML Architecture 
 
 
 
 


-Original Message-
From: Roy Vaccaro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 4:04 PM
To: [EMAIL PROTECTED]
Subject: [Zope-dev] unsubscribe


[EMAIL PROTECTED] wrote:

 Send Zope-Dev maillist submissions to
 [EMAIL PROTECTED]

 To subscribe or unsubscribe via the web, visit
 http://lists.zope.org/mailman/listinfo/zope-dev
 or, via email, send a message with subject or body 'help' to
 [EMAIL PROTECTED]
 You can reach the person managing the list at
 [EMAIL PROTECTED]

 (When replying, please edit your Subject line so it is more specific than
 "Re: Contents of Zope-Dev digest...")

 Today's Topics:

   1. Re: ZDebug questions (Shane Hathaway)
   2. Re: TCPWatch How-To (Shane Hathaway)
   3. Re: Python 1.6, "Expected node type 12, got 312" (Toby Dickenson)
   4. CalendarTag, year mode image (Ibañez Palomar Juan David)

 --__--__--

 Message: 1
 Date: Wed, 06 Sep 2000 10:06:54 -0400
 From: Shane Hathaway [EMAIL PROTECTED]
 Organization: Digital Creations, Inc.
 To: Chris Withers [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: [Zope-dev] Re: ZDebug questions

 Chris Withers wrote:
  Using your sample 'bad' DTML, I got the same but the 'Contains name?'
  column didn't show up :-(
 
  Any ideas? (yes, I was tracking down a security exception, and that
  column may have been really useful ;-)

 My guess is you're using Zope 2.1.6.  ZDebug doesn't have a way to
 figure out what DTML method is being called in Zope 2.1.6.  Strange but
 true.  So it shows what it can.  The 2.2.x security context stack is
 used to figure it out in 2.2.x.  (Which is still a hack. :-/ )

  ...speaking of which, this is related to the following PTK Tracker
  Issue:
 
  http://www.zope.org/Products/PTK/Tracker/110
 
  while Andy and I were playing with some stuff, we managed to make ZDebug
  cry by giving the discussion_thread_view DTML method the 'Member' proxy
  role and then viewing it from a Member's toolbox (what's the new name
  for that?) on the left:
 
  Error Type: TypeError
  Error Value: not all arguments converted

 Oops!  Try this patch (I left out a "%s"):

 ===
 RCS file:
 /cvs-repository/Packages/Products/ZDebug/DebugSecurityPolicy.py,v
 retrieving revision 1.2
 diff -u -r1.2 DebugSecurityPolicy.py
 --- DebugSecurityPolicy.py  2000/09/04 19:23:58 1.2
 +++ DebugSecurityPolicy.py  2000/09/06 14:04:32
 @@ -234,8 +234,8 @@
  info = 'The proxy roles set for ' \
 '%s do not allow access to %s, which is
 ' \
 'contained in %s. The proxy roles would
 ' \
 -   'have to include one of the following
 roles:' \
 -   % (
 +   'have to include one of the following '
 \
 +   'roles: %s' % (
  getCleanPath(eo), cleanupName(name,
 value),
  getCleanPath(container, value),
  tuple(roles))

  Well, thanks for the product, it looks like being _extremely_ useful
  :-))

 Thank you.  I know when I was new to Zope this would have been
 tremendously useful.  Now it's useful because it should help people
 solve problems on their own rather than having to post to the list.

 Shane

 --__--__--

 Message: 2
 Date: Wed, 06 Sep 2000 10:16:39 -0400
 From: Shane Hathaway [EMAIL PROTECTED]
 Organization: Digital Creations, Inc.
 To: Chris Withers [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] TCPWatch How-To

 Chris Withers wrote:
 
  Shane Hathaway wrote:
   TCPWatch is a simple Python script that lets you monitor a TCP
   connection.
 
  ...now this really is extremely useful to me, but not for Zope ;-)
 
  However, it did take me a while to wrap my head around it. So here's a
  little How-To/Example (If anyone thinks I should do this as a How-To on
  Zope.org, just let me know...)
 
  1. Run up Zope on you local machine on port 8080
  2. Set the following off in an appropriate shell:
 
  python tcpwatch.py 9080 localhost 8080

 I thought about writing a server-starter GUI so that command line
 wouldn't even be necessary.  But I decided I like TCPWatch how it is
 already.  It's simple and to the point.

  3. Point a browser at localhost:9080
 
  Now, the tkinter window that pops up will show you a list of TCP
  connections that happen and when they started.
  If you click on them you get shown all the data which was sent to the
  server (preceded by '==') and to the client (preceded by '==') as well
  as the times the connections opened and closed (could be very useful for
  spotting connections that Zope, or anything else, 

[Zope-dev] ZPatterns again? Propertysheet not available

2000-09-07 Thread James Johnson

Here is my code and the error is nips name not found. Any suggestions
dtml-let 
ni="['_.newItem(id)']"
Print this:dtml-var ni


nips ="['_.get('GBookProps')']"

dtml-call "nips.propertysheets.manage_addProperty('guest_name', 
guest_name, 'string')"
   
dtml-call "nips.manage_changeProperties(REQUEST)"
/dtml-let

Get your Free E-mail at http://tacoma.zzn.com

Get your own Web-Based E-mail Service at http://www.zzn.com

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Z SQL Method Patch

2000-09-07 Thread Casey Duncan

In debugging some Z SQL methods I found it quite hard to diagnose certain
errors returned by the database backend because Zope doesn't return the SQL
sent to the server, instead it returns "Could not render the query
template!" which is not really true for this case.

In looking at the source code of DA.py (lib/python/Shared/DC/ZRDB), and I
think I found a simple solution:

in manage_test insert the following indented after line 343 (except:)

try: src=self(REQUEST, src__=1)
except: pass

This re-renders the query template if possible without sending it to the
backend and returns the SQL in src. The result is your backend error message
followed by the SQL generated. This should really save time debugging any
dynamic Z SQL methods.

It was moderately tested on Zope 2.2.1/PostgreSQL 7 via PyGreSQLDA. It
should not be database dependant though.

Enjoy.
-Casey Duncan


___
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] ZPatterns Dataskin base class?

2000-09-07 Thread James Johnson

My ZClass only had Dataskin as a base class. I'm not sure what other 
class should be added to the Dataskin.  I"m trying to work off the 
simple example that PJE mentioned on the IRC chat.
Jimbo

Get your Free E-mail at http://tacoma.zzn.com

Get your own Web-Based E-mail Service at http://www.zzn.com

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] SkinScript, and family

2000-09-07 Thread Bill Anderson

OK, I have some potentially complicated calculations to build on a
Ticket Tracking system I've built here. I can do it in python mehtods,
but am wondering if skinscript will get me what i want as well. If
anyone has done dome stuff in skinscript they can share I would be
ecstatic. I don't necessarily need a tutorial (but would be happy to
review and rate one :), as I can learn fairly well from examples that
have an explanation of what the skinscript accomplishes.

TIA,
Bill


-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Thursday, September 07, 2000 
Random Quote:
  Never eat anything bigger than your head.

___
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] Folderish objects and multiple inheritance

2000-09-07 Thread Andy McKay

Well if anybody is interested I did solve this but instead of trying to
inherit A, Folder and then fix the folderish methods broken I did Folder, A
and then overrode class A methods I wanted.

- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 05, 2000 2:20 PM
Subject: Re: [Zope-dev] Folderish objects and multiple inheritance



 - Original Message -
 From: "Andy McKay" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 05, 2000 2:13 PM
 Subject: [Zope] Re: [Zope-dev] Folderish objects and multiple inheritance


  Hmmm I can override inheritance in a simple class... I guess theres
  something in Zope thats annoying this:
 
  class A:
   var = 'A'
 
   def test(self):
return self.var
 
  class B:
   var = 'B'
 
   def test(self):
return self.var
 
  class C(B, A):
   var = 'C'
 
   def test(self):
return A.var
 
  c = C()
  print c.test()
 
  OUTPUT A
 
  - Original Message -
  From: "Andy McKay" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, September 05, 2000 11:35 AM
  Subject: [Zope-dev] Folderish objects and multiple inheritance
 
 
   Hi there,
  
   Ok so I have a class that has multiple inheritance. My main class (A)
  works
   fine, but I wanted to add in folderish properties. The problem is the
  order
   of multiple inheritance and viewing folder objects. When you view a
 folder
   from you call index_html and this gives a content list.
  
   By inheriting this way:
  
   class B(A, Folder):
  
   I have kept all my A methods. However viewing it does not produce the
   content list since its overwritten by A. Of course inheriting:
  
   class B(Folder, A):
  
   Does work for that, but breaks all my other methods.
  
   Solutions:
  
   Well I tried defining a tab - view_folder which was something along
the
  line
   of:
  
   def view_folder(self, client=None, REQUEST={}):
   ''' doc string '''
   return Folder(self, client, REQUEST)
  
   But get an attribute error on manage_tabs.
  
   Any ideas?
  
   Thanks.
  
   --
 Andy McKay, Developer.
 ActiveState.
  
  
   ___
   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 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-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 )




Re: [Zope] Whitespace in lines property

2000-09-07 Thread Evan Gibson

On Thu, Sep 07, 2000 at 07:46:57AM +0200, Tino Wildenhain wrote:
here marks your whitespaces.
  
   try:
  
   textarea name="alt_names:lines" rows="10" cols="50" 
   dtml-in alt_namesdtml-let cur_item=sequence-itemdtml-var
   "_.string.strip(cur_item)"
   /dtml-let/dtml-in/textarea
  
   Ugly code, but...
  
  Well, "realize something NEW everyday!"
  It never crossed my mind that the space between my code elements
  would be rendered. DUH!
 
 Hehe ;) I'm currently playing with a clean-up tag, to remove
 whitespaces/empty 
 lines in code. May be I release it, if its fully done. Stay tuned ;-)

I used to get bitten an awful lot by doing:

dtml-if
   dtml-var standard_html_header
dtml-else
   dtml-var other_header
/dtml-if

This would cause the spaces to appear _before_ the header information
and actually just come up with error messages.
Took me some very frustrating hours to realise I just had to get rid
of the spaces and format things really badly to fix it.

 Regards
 Tino

-- 
  Evan ~ThunderFoot~ Gibson~ nihil mutatem, omni deletum ~
All of us are God's creatures... just some are more creature than others.

___
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] Whitespace in lines property

2000-09-07 Thread Tino Wildenhain

Hi Tim,

Tim Cook wrote:
 
 Tino Wildenhain wrote:
 
  Hi Tim,
 
  Tim Cook wrote:
  
   Can anyone tell me why when I edit a lines property I get leading
   whitespace inserted?
   The first line gets seven  each one after that gets 10 spaces.
  
   I tried stripping it out but this didn't seem to have any effect.
  
   ...
  
   textarea name="alt_names:lines" rows="10" cols="50" 
   dtml-in alt_names
 dtml-let cur_item=sequence-item
   ^^^ here^here
   dtml-var "_.string.strip(cur_item)"
   ^ here^here
 /dtml-let
   ^^^here   ^ here
 
   /dtml-in
   /textarea
  
   here marks your whitespaces.
 
  try:
 
  textarea name="alt_names:lines" rows="10" cols="50" 
  dtml-in alt_namesdtml-let cur_item=sequence-itemdtml-var
  "_.string.strip(cur_item)"
  /dtml-let/dtml-in/textarea
 
  Ugly code, but...
 
 
 Well, "realize something NEW everyday!"
 It never crossed my mind that the space between my code elements
 would be rendered. DUH!

Hehe ;) I'm currently playing with a clean-up tag, to remove
whitespaces/empty 
lines in code. May be I release it, if its fully done. Stay tuned ;-)

Regards
Tino

___
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: [Zope-dev] date formatting / extracting substrings

2000-09-07 Thread Chris McDonough

Hi Jeff,

(I've moved this to the Zope list out of Zope-Dev)

dtml-let month_value="MonthID[4:]"
... do something with the result ...
/dtml-let

Have a look at the Python documentation as it relates to "slicing".

 -Original Message-
 From: Jeff Nielsen / Ugo Fast [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 07, 2000 1:10 AM
 To: Zope-Dev@Zope. Org
 Subject: [Zope-dev] date formatting / extracting substrings
 
 
 Hello out there in Zope world!
 
 Again, I'm completely baffled by Zope and the docs are no 
 help either. I'm
 trying to take an input of a date in the form MM as the 
 variable MonthID
 and create a string in the form Month,  as a variable 
 named MonthName.
 For instance, a MonthID of 29 should return a MonthName 
 of "September,
 2000".
 
 I've been looking in the docs and the emails, but I can't 
 figure out how to
 extract substrings. I think something like this should work 
 to seperate the
 month value from the MonthID, but it doesn't:
 
 dtml-call "REQUEST.set('MonthValue', _.substring(MonthID,5,2))"
 
 Any guidance would be appreciated.
 
 ---
 Jeff Nielsen
 http://www.UgoFast.com/
 "Where U Go Fast"
 
 
 ___
 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 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] Using Chinese Characters

2000-09-07 Thread Kelvin Cheong


i was wondering how i can use chinese characters with Zpe on Linux. does
anyone know how? According to my "mild" research so far, i found out that
Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to
be the de-facto for traditional chinese characters. There're also Unicode
CJK and GB. But GB is for China, which uses simplified chinese characters.
And CJK includes both Big5 and GB.

The most puzzling thing to me is how all this works. Do i need a special
browser, font server, Zope products? And when i can display chinese
characters using any one of the standards, how am i going to input it in
the first place? And last but not least, how does all this ascii and
unicode conversion work together?

I've seen a couple of chinese sites running on Zope, and was wondering if I
could get some help in here. Anyone have any ideas?

VCN - The Leader In Corporate Communication Solutions
Visit our website at http://www.vcn.com.my. 
or http://www.vcnlinux.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] Zope 2.2.1 Solaris 8 dumps core

2000-09-07 Thread Michele Ravani

Hi

I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris
8, built it ok, but when I try run ./start it it dumps core with a
segmentation fault.
Is this problem known? Anything I can do?
I am completely new to both Python and Zope ...


Thanks
  Michele



#0  initExtensionClass () at
./../Components/ExtensionClass/ExtensionClass.c:3508
3508  ECTypeType.ob_type=PyType_Type;
(gdb) where
#0  initExtensionClass () at
./../Components/ExtensionClass/ExtensionClass.c:3508
#1  0x28ddc in _PyImport_LoadDynamicModule (name=0xefff310b
"ExtensionClass",
pathname=0xefff2c10
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ExtensionClass.so",
fp=0xb2fc0) at ./importdl.c:851
#2  0x26ee4 in load_module (name=0xefff310b "ExtensionClass",
fp=0xb2fc0,
buf=0xefff2c10
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ExtensionClass.so",
type=3) at import.c:1210
#3  0x27cf0 in import_submodule (mod=0x9f1dc, subname=0xefff310b
"ExtensionClass", fullname=0xefff310b "ExtensionClass") at import.c:1755

#4  0x27870 in load_next (mod=0xe6100, altmod=0x9f1dc,
p_name=0xefff310b, buf=0xefff3100 "ZPublisher.ExtensionClass",
p_buflen=0xefff30fc) at import.c:1607
#5  0x2742c in import_module_ex (name=0x0, globals=0x185428,
locals=0x185428, fromlist=0xe78e0) at import.c:1445
#6  0x275cc in PyImport_ImportModuleEx (name=0x1a2004 "ExtensionClass",
globals=0x185428, locals=0x185428, fromlist=0xe78e0) at import.c:1489
#7  0x48dd8 in builtin___import__ (self=0x0, args=0x185ba0) at
bltinmodule.c:65
#8  0x1e1d4 in call_builtin (func=0xb45b0, arg=0x185ba0, kw=0x0) at
ceval.c:2359
#9  0x1e0a0 in PyEval_CallObjectWithKeywords (func=0xb45b0,
arg=0x185ba0, kw=0x0) at ceval.c:2324
#10 0x1c574 in eval_code2 (co=0x1a2570, globals=0x0, locals=0x185428,
args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
owner=0x0)
at ceval.c:1445
#11 0x1a390 in PyEval_EvalCode (co=0x1a2570, globals=0x185428,
locals=0x185428) at ceval.c:324
#12 0x26210 in PyImport_ExecCodeModuleEx (name=0xefff42c0
"ZPublisher.BaseRequest", co=0x1a2570,
pathname=0xefff38e0
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.pyc")
at import.c:485
#13 0x26744 in load_source_module (name=0xefff42c0
"ZPublisher.BaseRequest",
pathname=0xefff38e0
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.pyc",
fp=0x1a2570) at import.c:724
#14 0x26eb4 in load_module (name=0xefff42c0 "ZPublisher.BaseRequest",
fp=0xb2fb0,
buf=0xefff3dd0
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.py",
type=1) at import.c:1202
#15 0x27cf0 in import_submodule (mod=0xe6100, subname=0xefff42cb
"BaseRequest", fullname=0xefff42c0 "ZPublisher.BaseRequest") at
import.c:1755
#16 0x2781c in load_next (mod=0xe6100, altmod=0x9f1dc,
p_name=0xefff42cb, buf=0xefff42c0 "ZPublisher.BaseRequest",
p_buflen=0xefff42bc) at import.c:1603
[...]



___
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] Python, persistent objects and caching

2000-09-07 Thread Soren Roug

Hi,

I'm developing a Python-based product that uses persistent objects in
ZODB to store its configuration. No surprises there, but my product is
also using volatile attributes to do a bit of caching of its own. The
thing is, when ZODB takes a sweep every 60 seconds to flush it's own
cache it will quite often flush my product as well, essentially
rendering my 15 minute caching ineffective.

If there a way I can prevent this from happening?

References:
http://www.zope.org/Members/MikeP/volatile
http://www.zope.org/Members/Zen/tips/VolatileAttributes

Soren Roug

___
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] ZODB How To please HELP

2000-09-07 Thread Norman Khine

I am trying to follow the How to on ZODB How To, but I get stuck at the
point of when testing the  sqlInsertProduct
When I submit the query I get the following error

Error, exceptions.SyntaxError: unexpected token sequence.near ::
'_weight)\012VALUES'*'\012widget,\012Histor' ***
current state = 141 expects: '(', ('nomatch1',) current token = ((-8,
'user_defined_name'), 'WIDGET') 

SQL used:
Could not render the query template!

Please help

Thanks

Norman

 winmail.dat


[Zope] generate static html to webserver?

2000-09-07 Thread Torsten Eymann

Hello,
I want generate a static site from zope-folder and his
subfolders to put that
on an really-internet-server. Can I do that? How?

thanks

torsten


___
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] Portal Toolkit and NTUserFolder

2000-09-07 Thread neeloy_saha

Hi all,

Can anybody tell me how to integrate the NTUserFolder and the portal toolkit

-neeloy

___
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] ZClass base classes

2000-09-07 Thread Nick Trout



I've looked all throught docs but I cant find 
anywhere an explanation of what properties the ZClass base classes give you. 
Also which order to inherit them, as the Developers Guide claims the order is 
important. Can anyone please enlighten me?

Regards,
Nick.




RE: [Zope] Python, persistent objects and caching

2000-09-07 Thread Brian Lloyd


 I'm developing a Python-based product that uses persistent objects in
 ZODB to store its configuration. No surprises there, but my product is
 also using volatile attributes to do a bit of caching of its own. The
 thing is, when ZODB takes a sweep every 60 seconds to flush it's own
 cache it will quite often flush my product as well, essentially
 rendering my 15 minute caching ineffective.
 
 If there a way I can prevent this from happening?
 
 References:
 http://www.zope.org/Members/MikeP/volatile
 http://www.zope.org/Members/Zen/tips/VolatileAttributes
 
 Soren Roug

One approach would be to cache your data in the module's 
namespace. For ex:

mycache={}

class MyClassThatKeepsGoingAway:
  ...
  def get_data(self, id):
if mycache.has_key(id):
  return mycache[id]
else:
  ...

Note that my example is a little contrived, since using a module 
variable means that you will have to implement this in a way that 
is safe for a multi-threaded environment. You will also want to 
make sure that your module-level cache doesn't grow forever and 
take up a lot of memory.

Hope this helps!

Brian Lloyd ([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 )




RE: [Zope] ZODB How To please HELP

2000-09-07 Thread Farrell, Troy

Could you send the SQL you used?  Also, what platform and Database are you
using?

 -Original Message-
 From: Norman Khine [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 07, 2000 7:05 AM
 To:   [EMAIL PROTECTED]
 Subject:  [Zope] ZODB How To  please HELP
 
 I am trying to follow the How to on ZODB How To, but I get stuck at the
 point of when testing the  sqlInsertProduct
 When I submit the query I get the following error
 
 Error, exceptions.SyntaxError: unexpected token sequence.near ::
 '_weight)\012VALUES'*'\012widget,\012Histor'
 *** current state = 141 expects: '(',
 ('nomatch1',) current token = ((-8, 'user_defined_name'), 'WIDGET') 
 
 SQL used:
 Could not render the query template!
 
 Please help
 
 Thanks
 
 Norman

___
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] [New User]: Investigating Zope...some preliminary questions

2000-09-07 Thread Vaibhav Goel

Hi all:

I am currently investigating Zope as a possible "tool" to use for
building the back end "engine" for several projects for our company.
Some of the sites we are currently doing involve E-commerce, news, etc.

It is definitely a very powerful system and I think I have not even
scratched the surface.  I tried the QuickStart (ZAcme) tutorial
and got a feel for whats involved.  A few questions came to my mind
and maybe I am not getting the "right picture" so to say but I would very
much appreciate if someone could take the time to answer these:

1.  If we were to go ahead and start using Zope as a "back-end engine"
to build websites, basically a team of 3-4 people would be involved.
Do they have to have knowledge of Zope?  For example, I am the back-end
guycreating, programming the middle tier code for database access
and what not.  The guy who does the front-end (ie html code, layout
) and graphics guys are not very technical.  How will I go about "importing"
the front end code within Zope?  Are there any modules for DreamWeaver
etc (Windows based tools) that integrate with Zope?  

2.  What about stuff like importing legacy websites?  For example,
our main website is built using ASP running IIS.  I was planning to
recode it all in PHP + MySQL.  Are there any "straight forward" ways
to migrate legacy stuff easily?

Again, please accept my apologies if this stuff is covered in the documentation
somewhere.  So far, I have gone through the Zope Content Manager guide
and did not see any details about these questions there.  I am in the
process of browsing through the mailing list archives and I am sure I will
find a lot of info there.

Any tips and suggestions are highly appreciated.

Regards,

VG
-- 
Vaibhav Goel ~ IcelandComplete  | [EMAIL PROTECTED] 
GSM: +354 695 6125  | http://www.icelandcomplete.is
Office Phone: +354 553 9600 | Grensasvegur 7
Fax: +354 553 8608  | 108 Reykjavik, Iceland

___
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] ZClass base classes

2000-09-07 Thread Nick Trout

 (please don't post HTML mail to the list).
sorry

 I *think* the "Include standard Zope persistent object base classes"
 check box gives your ZClass the "ZObject" interface which is similar to
 the SimpleItem interface (see the Zope API docs in the help system - I
 think it's under Help-Zope Help-API Documentation-ObjectManagerItem).

I dont seem to have this in my Zope Help System. Where can I obtain this? I
have 2 items in the Contents tab frame: ZeopTutorial and ZopeHelp. The API
Documentation I have is very sparse.

 As far as inheritance order, the first base class you add to the ZClass
 base class list will be ZObject if you use check the "standard base
 classes" checkbox.  The next one will be the first base class you choose
 (the topmost), the next one will be the one under that, etc.

But what I need to know is what properties does the derivation give the new
object and how does the order affect its behaviour.

Ta,
Nick

 I've looked all throught docs but I cant find anywhere an explanation of
 what properties the ZClass base classes give you. Also which order to
 inherit them, as the Developers Guide claims the order is important. Can
 anyone please enlighten me?



___
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] wrapped object

2000-09-07 Thread Sven Hohage

Hallo,
while adding ZClass instances by form I get the following traceback:
I don't know what's a wrapped object??
And where the problem is.
   Thanks
--
  Zope Error
Zope has encountered an error while publishing this resource.

Error Type: ValueError
Error Value: Invalid property value: wrapped object





Troubleshooting Suggestions

The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the HTML
source for this page.

If the error persists please contact the site maintainer. Thank you for
your patience.




Traceback (innermost last):
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\Zopppaaa\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\Zopppaaa\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: testskript)
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: testskript)
  File C:\Zopppaaa\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: testskript)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_String.py, line 502,
in __call__
(Object: testskript)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_With.py, line 146, in
render
(Object: manage_addProduct['DBank'])
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_Util.py, line 337, in
eval
(Object: eingang_DB_add (_.None, _, NoRedir=1))
(Info: eingang_DB_add)
  File string, line 0, in ?
  File C:\Zopppaaa\lib\python\OFS\DTMLMethod.py, line 163, in __call__
(Object: eingang_DB_add)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_String.py, line 502,
in __call__
(Object: eingang_DB_add)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_With.py, line 146, in
render
(Object: eingang_DB.createInObjectManager(REQUEST['id'], REQUEST))
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_Util.py, line 337, in
eval
(Object:
propertysheets.eingangs_info.manage_editProperties(REQUEST))
(Info: REQUEST)
  File string, line 0, in ?
  File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 456, in
manage_editProperties
(Object: Traversable)
  File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 255, in
_updateProperty
(Object: Traversable)
  File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 208, in
_wrapperCheck
(Object: Traversable)
ValueError: (see above)



___
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] ANN: Serving PHP/Perl from Zope update

2000-09-07 Thread Bill Welch

Last bug. Promise.

# user might not have signed in yet
try:
  username, password = req._authUserPW()
except:
  username = password = None




___
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] Editing of ZClasses using FTP: Access denied

2000-09-07 Thread Harald Koschinski

Hallo,

I am trying to edit methods inside a ZClass. The problem is, that the
ZClasse-folder don´t has any permissions via FTP - so there is no chance
to come into the folder.

Where do I have to change the permission??

Help is really appreciate

Thanks

Harald


___
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] ZClass base classes

2000-09-07 Thread Chris McDonough

Hi Nick

(please don't post HTML mail to the list).

I *think* the "Include standard Zope persistent object base classes"
check box gives your ZClass the "ZObject" interface which is similar to
the SimpleItem interface (see the Zope API docs in the help system - I
think it's under Help-Zope Help-API Documentation-ObjectManagerItem).

As far as inheritance order, the first base class you add to the ZClass
base class list will be ZObject if you use check the "standard base
classes" checkbox.  The next one will be the first base class you choose
(the topmost), the next one will be the one under that, etc. 

-Original Message-
From: Nick Trout [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 8:59 AM
To: Zope Mail list
Subject: [Zope] ZClass base classes


I've looked all throught docs but I cant find anywhere an explanation of
what properties the ZClass base classes give you. Also which order to
inherit them, as the Developers Guide claims the order is important. Can
anyone please enlighten me?

Regards,
Nick.

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

2000-09-07 Thread Tim Cook


I have a folderish ZClass with a set of properties. When I create
an instance via DTML my code doesn't update the properties from
REQUEST.

I use exactly (names changed of course) the same code to
instantiate a document like ZClass and it works fine.  So what's
the difference between Folderish ZClasses  Document ZClasses in
assigning to their properties? (The instance IS created, just the
properties aren't assigned values.)

I used the howto on adding instances via DTML change to the
'_add' methods in both ZClasses.

Here's the code FWIW:

--- Document-'ish' ---

dtml-var standard_html_header

dtml-call "REQUEST.set('id',REQUEST['med_name'])"
dtml-call "REQUEST.set('title', REQUEST['med_name'])"
dtml-call "REQUEST.set('online_lookup',
REQUEST['online_lookup'])"
dtml-call "REQUEST.set('indications', REQUEST['indications'])"
dtml-call "REQUEST.set('contraindications',
REQUEST['contraindications'])"
dtml-call "REQUEST.set('warnings', REQUEST['warnings'])"
dtml-call "REQUEST.set('alt_names', REQUEST['alt_names'])"
dtml-call "REQUEST.set('dose_delivery',
REQUEST['dose_delivery'])"
dtml-call "REQUEST.set('doc_type', REQUEST['doc_type'])"

dtml-with "manage_addProduct['FreePMProduct']"
  dtml-call "DrugClass_add(_.None, _, NoRedir=1)"
/dtml-with

center
H2dtml-var med_name was added./H2
p
a href="formulary" Back to Formulary Menu /a
/center

dtml-var standard_html_footer





--- Folder-'ish' ---

dtml-var standard_html_header

dtml-call "REQUEST.set('id',REQUEST['login_id'])"
dtml-call "REQUEST.set('login_id', REQUEST['login_id'])"
dtml-call "REQUEST.set('first_name', REQUEST['first_name'])"
dtml-call "REQUEST.set('middle_name', REQUEST['middle_name'])"
dtml-call "REQUEST.set('last_name', REQUEST['last_name'])"
dtml-call "REQUEST.set('honorific', REQUEST['honorific'])"
dtml-call "REQUEST.set('generation', REQUEST['generation'])"
dtml-call "REQUEST.set('gender', REQUEST['gender'])"
dtml-call "REQUEST.set('fda_number', REQUEST['fda_number'])"
dtml-call "REQUEST.set('supervisor_id',
REQUEST['supervisor_id'])"
dtml-call "REQUEST.set('job_title', REQUEST['job_title'])"
dtml-call "REQUEST.set('created_by', REQUEST['created_time'])"
dtml-call "REQUEST.set('created_time',
REQUEST['created_time'])"



dtml-with "manage_addProduct['FreePMProduct']"
  dtml-call "ProviderClass_add(_.None, _, NoRedir=1)"
/dtml-with

center
H2dtml-var login_id was added./H2
p
a href="providers" Back to Provider Menu /a
/center

dtml-var standard_html_footer

As Always - Thanks!

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks

I have created a Zclass, the the _ZClass_for_CatalogAware base class
as the first added base class (second in the list of base classes).
My zcatalog (named Catalog) is set to 'Find objects of type:
"myClass_metatype"' and therefore, when I add a new instance of my
class, it is automatically added to the catalog.  By that, I mean that
once I have added the instance, I can go the the 'Cataloged Objects'
view and see it listed there. However, if I try a search using the raw
(TextIndex) search outlined in one of the tutorials, the search fails
to find words that I *know* are in the zclass that I just added, and
that I thought had been cataloged.  Clicking on 'Update Catalog' in
the 'Cataloged Objects' view and then researching means that the
search succeeds in finding the word in the new instance.

The question is, do I need to add the equivalent of what is written in
'How-To: Creating a CatalogAware ZClass' for reindexing zclass
properties, but for reindexing the actual text?  How could I do this?

extract from 'How-To: Creating a CatalogAware ZClass'

dtml-call
"propertysheets.InstanceConstants.manage_changeProperties(REQUEST)"
dtml-call reindex_object

/extract from 'How-To: Creating a CatalogAware ZClass'


Help much appreciated,

tim


___
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] re module through the web security

2000-09-07 Thread Dan L. Pierson

Evan Simpson writes:
  Fear not.  In the brand new shiny PythonMethods Product coming soon
  (really!) to a Zope near you, you will have the ability to say:
  
  ModuleSecurityInfo('re').protect('compile', 'Use the "re" module')
  
  ...and suddenly anyone to whom you grant 'Use the "re" module' permission
  will be able to 'from re import compile' in their Python Methods.  Anyone
  else will be able to 'import re', but not access any of its contents.

Thank you!  I was going to follow Chris McDonough's suggestion and add
something to the Wiki about this but your solution is just perfect.
Of course I have a couple of questions since I couldn't find any
mention of this in the Wiki:

Does this work for any module or just a semi-safe subset?

How are submodules handled?  Just put the full path in the
ModuleSecurityInfo call?  Can you grant permissions for all children
of a parent module (scary!)?


___
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] re module through the web security

2000-09-07 Thread Evan Simpson

From: Dan L. Pierson [EMAIL PROTECTED]
 Does this work for any module or just a semi-safe subset?

 How are submodules handled?  Just put the full path in the
 ModuleSecurityInfo call?  Can you grant permissions for all children
 of a parent module (scary!)?

http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport

...is a good place to start learning about this.  Any module can be made
available -- it's up to the Zope administrator (or Product author) to decide
what they can safely expose, under what terms.

Cheers,

Evan @ digicool  4-am


___
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] re module through the web security

2000-09-07 Thread Dan L. Pierson

Evan Simpson writes:
  From: Dan L. Pierson [EMAIL PROTECTED]
   Does this work for any module or just a semi-safe subset?
  
   How are submodules handled?  Just put the full path in the
   ModuleSecurityInfo call?  Can you grant permissions for all children
   of a parent module (scary!)?
  
  http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport

I looked there.  It says something about how import restrictions will
be implemented but nothing at all about what the limitations will be
or what the syntax for interacting with the restriction mechanism will 
be.  For example, your email is the only reference I can find to
ModuleSecurityInfo. 

  ...is a good place to start learning about this.  Any module can be made
  available -- it's up to the Zope administrator (or Product author) to decide
  what they can safely expose, under what terms.

That seems reasonable.

___
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] Java applet with inner classes causing probs in Zope

2000-09-07 Thread Eric L. Walstad

Just a follow-up:

Morten Said:
// Adding files to Zope through FTP doesn't seem to have the same
restrictions.
Actually, it did for me.  FTP was able to upload all the class files except
those with the $ in them (the classes with inner-classes).  That's how I
found out about the problem.

Holger Lehmann said:
// What about putting it all in a jar-file ?
I tried that, too, but Java would choke on running the Jar file that was
served from Zope.  If anyone has a working JAR file applet in Zope, I'd love
to see the syntax they used!

To make my applet work, I had to go into the java code and separate out the
inner classes so that every class was in its own file.  This turned out to
be a lot easier than I expected.

Eric.

Here's the original message...

 Hello all,

 The problem is that inner classes have names like "Parent$Inner.class"
 I'm unable to create a Zope file object with a name that includes the
dollar
 sign.  However, the applet won't function without it.

 Has any one overcome this?

 Yes, the applet functions properly when served from apache (but I need to
 serve it from Zope).

 Please respond directly to me and mailing list as I am not currently on
the
 mailing list.

 Thanks,

 Eric.


___
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] re module through the web security

2000-09-07 Thread Evan Simpson

From: Dan L. Pierson [EMAIL PROTECTED]
   http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport

 I looked there.

Ah, but I was sneaky and went and updated it just before posting ;-)  You do
have to follow a link or two, but it isn't hard to find (any more).

Cheers,

Evan @ digicool  4-am


___
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 Chinese Characters

2000-09-07 Thread Tino Wildenhain

Hi Kelvin,

Kelvin Cheong wrote:
 
 i was wondering how i can use chinese characters with Zpe on Linux. does
 anyone know how? According to my "mild" research so far, i found out that
 Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to
 be the de-facto for traditional chinese characters. There're also Unicode
 CJK and GB. But GB is for China, which uses simplified chinese characters.
 And CJK includes both Big5 and GB.

classic zope is built on python 1.52 and does not naturally support
unicode.
But there is a light on the horizont:

http://www.zope.org/Members/htrd/wstring

I have a vision of everything working together for localizing and 
internationalisation ;-)

Regards
Tino

___
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] Newbie question: Unhandled requests.

2000-09-07 Thread Hannes


We currently started to run our site using Zope behind Apache using
ProxyPass,
when testing from the outside it
seems that there many (about one-third)  of the  requests that are not
handled by
Zope, the browser seems to recieve nothing,
(means the browser times out),
this behaviour does not depend on the complexity of the document
templates,
it is an overall phenomenon (including management screens etc...).
When pressing reload the things get okay most of the times, but it is
annoying..

Any help would be appreciated.
thanks in advance.

H.Grund.

please replay to
[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] Call for Python Method opinions

2000-09-07 Thread Evan Simpson

If you want any say in how official Zope Python Methods work, I recommend
heading over to:

http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/StandardPythonMetho
dModule

...soonest.  If you have feedback on any part of the project, please
contribute, but the link above is the squishiest part of the design, and
possibly the most important to many of you.

User-style documentation is still scanty, but getting better.  Comments on
where it needs to be stronger are welcome.

Cheers,

Evan @ digicool  4-am


___
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 Question on lines

2000-09-07 Thread Coleman, Bryan

I am trying to itterate through a lines property in the folder so that the
options will drop down. I did not think that the following code would work
but I could not think of anything else.

  dtml-in valid_codes
 option value="dtml-var valid_codes"dtml-var
valid_codesnbsp;/option
  /dtml-in


- Bryan Patrick Coleman
  Questcon Technologies
  (336)273-2428 ext-416
  [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 )




Re: [Zope] DTML Question on lines

2000-09-07 Thread Rik Hoekstra




 I am trying to itterate through a lines property in the folder so that the
 options will drop down. I did not think that the following code would work
 but I could not think of anything else.

   dtml-in valid_codes
  option value="dtml-var valid_codes"dtml-var
 valid_codesnbsp;/option
   /dtml-in


try (untested):

dtml-in valid_codes
   option value="dtml-var sequence-item"dtml-var idnbsp;/option
/dtml-in

assuming of course that valid_codes is a list

hth

Rik


___
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] Lock and Transaction in Zope.

2000-09-07 Thread Dieter Maurer

Aitor Grajal writes:
  --=_9682482706334=_
  Content-Type: text/plain; charset="ISO-8859-1"
  Content-Transfer-Encoding: quoted-printable
I hate "multipart" or encoded messages to this list (because the digest
removes MIME headers (what a stupidity!) and does not give my
mail reader a chance to decode them).

   ... two requests concurrently accessing the same object ...
   The first one crashes, and doesn't finish right
   I want to know if there is any way to lock ...
   about locking resources in Zope.
You do strange things...

Zope tries hard to avoid locking and uses an optimistic
collision policy instead. Several threads can
run concurrently on separate copies of an object.
If, during commit, a collision is detected, the
affected transaction is aborted and (I think I read that)
restarted.

If you really need locking, you can use Pythons "threading"
module (in a package used from an external method).
You must be careful, though.
Look in the archive for a message from Sean McGrath
about the potential problem involved and my reply
for a solution.

You may also look (as an example) at
URL:http://www.dieter.handshake.de/pyprojects/zope/SharedResource.html
It uses looks to protect resources shared by several threads.


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] Proxy roles don't propagate? - bizzare permissions from ZDChart too

2000-09-07 Thread Dieter Maurer

Brad Clements writes:
  ... Proxy role does not propagate ...
This has been changed starting with Zope 2.2.
The callee no longer inherits the proxy role from
its caller but must get its own proxy role.


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] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-07 Thread Dieter Maurer

Tim Hicks writes:
    I presume that this will only work for all *new* instances of
  this class however!  I don't suppose you know of a way of remaking all
  44 instances of this Zclass I have using this adjusted constructor? I
  have tried (see below), but I think I come up against the same
  'string' problem that I'm actually trying to counteract!
I do -- in principle :-)

When you rename an instance, the instance gets a correct id.

Now, all operations you can do through the web, can be
done programmatically. Either by an external program
based on "ZPublisher.Client" or by an internal script.

Look in the searchable archive to find a post from me that
explains how to determine the necessary function calls
from the management source (if you do not know it already).
An alternative is to look in the Zope object reference
(-- zdp.zope.org).

You may use "ZopeFind" to locate all your ZClass
objects in order to rename them.

Details are left for you.


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] The Ascetic Superuser

2000-09-07 Thread Dieter Maurer

ethan mindlace fremen writes:
  Now every object excecutes according to the permision of the owner,
  *not* the viewer. It can also run as a proxy role.  The
  super-bootstrap-user lives outside of "normal" zope authentication  has
  permission to do anything save that which NotEvenGodShouldDo. 
  Therefore, it shouldn't own objects.
Am I really expected to understand this "Therefore"?
In fact, I do not!

Does it mean, that a Superuser can execute any method with
*ITS* privileges and not the intersection of its priviledges
with the owners privileges?
I hope (and expect) not!

Why is it much worse when an object is owned by Superuser
than by a manager?
What are the differences with respect to the Trojan Horse
or other security issues?


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] Zope 2.2.1 Solaris 8 dumps core

2000-09-07 Thread Brian Lloyd

 I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris
 8, built it ok, but when I try run ./start it it dumps core with a
 segmentation fault.
 Is this problem known? Anything I can do?
 I am completely new to both Python and Zope ...

I don't know of any problems inherent to running on Sol8. 
It seems like maybe it could have something to do with 
your Python installation. One way you could test that is 
to cd to the lib/python dir of your Zope installation, 
start your local Python interpreter and try:

import ExtensionClass



Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  www.digicool.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 )




Re: [Zope] wrapped object

2000-09-07 Thread Bill Anderson

Sven Hohage wrote:
 
 Hallo,
 while adding ZClass instances by form I get the following traceback:
 I don't know what's a wrapped object??
 And where the problem is.
Thanks
 --
   Zope Error
 Zope has encountered an error while publishing this resource.
 
 Error Type: ValueError
 Error Value: Invalid property value: wrapped object
 


I have seen this when trying to pass into a property a mothod or instance, as opposed 
to the strin representation of it.
check your form for dtml objects as input values. You may have a typo.

Then again, it could be something completely different.


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




[Zope] PTK - member can reconfigure portal

2000-09-07 Thread Anders Eriksson

Hello,
I am a beginner on Zope so maybe I'm doing something wrong but...

I have installed the Portal ToolKit 0.8.2 complete, and most things
seem to work except:

I have joined the Portal and when I log in as this member and select
'My Stuff', I get a new menu item: 'Re-configure portal'! Which will
let this user/member change things that only the owner/super should be
able to do!(?)

So what have I done wrong?
(.or can it be a bug.)

I'm running zope 2.2.1 on a Windows NT 4 workstation (SP6a)

-- 
Best regards,
 Anders  mailto:[EMAIL PROTECTED]

The Romans didn't find algebra very challenging, because X was always 10.




___
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] Editing of ZClasses using FTP: Access denied

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Harald Koschinski wrote:
 I am trying to edit methods inside a ZClass. The problem is, that the
 ZClasse-folder don´t has any permissions via FTP - so there is no chance
 to come into the folder.
 
 Where do I have to change the permission??

You don't.

However, if you specify the URL of the method directly (make sure you
use the full URL as shown on the management edit screen), you will
be able to access it.  At least, so it has been reported on this
mailing list in the recent past.

--RDM


___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Tim Hicks wrote:
 The question is, do I need to add the equivalent of what is written in
 'How-To: Creating a CatalogAware ZClass' for reindexing zclass
 properties, but for reindexing the actual text?  How could I do this?

When is the text created?  After it is, you have to call reindex_object.

--RDM


___
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 Question on lines

2000-09-07 Thread Tim Cook

"Coleman, Bryan" wrote:
 
 I am trying to itterate through a lines property in the folder so that the
 options will drop down. I did not think that the following code would work
 but I could not think of anything else.
 
   dtml-in valid_codes
  option value="dtml-var valid_codes"dtml-var
 valid_codesnbsp;/option
   /dtml-in
 
 
Try this Bryan,

SELECT name="mySelection"
dtml-in valid_codes
 option value="dtml-var sequence-item" dtml-var sequence-item
nbsp; /option
/dtml-in
/SELECT


-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Need help with ZJetDA, Winnt4 and Zope 2.2.1

2000-09-07 Thread Farrell, Troy

As you have no doubt heard my cries for help, I figure that very few are
running NT4.  I am having a permissions difficultie with ZJetDA trying to
modify data in an Access97 database.  On my server, the DA is able to SELECT
* FROM tablename with no problem, but when it comes to INSERT INTO tablename
VALUES (...) or UPDATE, I get a Query Error with a value of INVALID
OPERATION.  I mirror (It is identical, i checked 5+ times) all the objects
on my NT4 laptop and it works ok.  The databases are Identical, I copied the
working one to the non-working server and still no go.  The traceback is as
follows:

Traceback (innermost last):
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\JESTER\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\OFS\DTMLDocument.py, line 177, in
__call__
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\DocumentTemplate\DT_String.py, line
528, in __call__
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\Shared\DC\ZRDB\DA.py, line 450, in
__call__
(Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse)
  File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in
query
Query Error: (see above)

Rant:
I've been working on this for days.  I don't seem to understand the security
model since I didn't have any problems before 2.2.x.  If I cannot get this
resolved, I'll move back to the 2.1.x series.  I really want this to work as
it is my companie's introduction to open source software.  Have a :) day.

Thanks.
Troy
Troy Farrell
Video Operations Technician II
Williams VYVX Services
918.573.3029
918.573.1441 fax
mailto:[EMAIL PROTECTED]
http://www.williams.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 )




RE: [Zope] Python, persistent objects and caching

2000-09-07 Thread Dieter Maurer

Brian Lloyd writes:
  Soren Rough writes
   ... application level cache ...
   ... application objects flushed (including cache)

  One approach would be to cache your data in the module's 
  namespace. For ex:
  
  mycache={}
  
  class MyClassThatKeepsGoingAway:
...
def get_data(self, id):
  if mycache.has_key(id):
return mycache[id]
  else:
...
  
  Note that my example is a little contrived, since using a module 
  variable means that you will have to implement this in a way that 
  is safe for a multi-threaded environment.
You can use a "SharedResource" for this:

URL:http://www.dieter.handshake.de/pyprojects/zope/SharedResource.html


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] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-07 Thread Tim Hicks


- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Tim Hicks" [EMAIL PROTECTED]
Sent: Thursday, September 07, 2000 7:00 PM
Subject: Re: ZClass Bug (was: Re: [Zope] How to access id and title of
document calling standard_html_header)


 Hi Tim

   NameError: theatre_class
  
   It would seem that string is still raising its head.  Any
ideas?
 I do not think so.
 You get a name error: Zope does not know your "theatre_class" at
 this point.

 It seems more likely, that DC changed to way ZClasses are located
 inside the constructor.

 Take the generated ZClass constructor and simply add
 the "...REQUEST.set..." before the "createInObjectManager".


OK, I'm so sorry about this, you've been an absolute legend so far,
and I really don't want to push my luck, but each time you solve
something, I find something else that has broken.

This is what my theatre_class_add method looks like (well, an excerpt
anyway).

dtml-call "REQUEST.set('__name__', REQUEST['id'])"
dtml-with "theatre_class.createInObjectManager(REQUEST['id'],
REQUEST)"

 dtml-call
"propertysheets.theatre_class_property.manage_editProperties(REQUEST)"

 dtml-call "manage_edit('dtml-var
standard_html_header\n\ndtml-var standard_html_footer', '')"

/dtml-with


When I try to create a new instance of the zclass in the original
'site' folder (or any of its parent folders except for the root), I
get this error. I do not receive an error and everything works fine
when I create the instance in a new folder on a different 'branch' to
the original.

traceback
Traceback (innermost last):
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 222,
in publish_module
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 187,
in publish
(Object: testing)
  File C:\PROGRA~1\Zope221\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: RoleManager)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 171,
in publish
(Object: testing)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 112,
in call_object
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in
__call__
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_String.py,
line 528, in __call__
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_With.py,
line 133, in render
(Object: theatre_class.createInObjectManager(REQUEST['id'],
REQUEST))
  File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_Util.py,
line 337, in eval
(Object: theatre_class.createInObjectManager(REQUEST['id'],
REQUEST))
(Info: REQUEST)
  File lt;stringgt;, line 0, in ?
NameError: theatre_class
/traceback


When I try to copy and paste a zclass from this original 'site' folder
(or any of its parent folders except for the root), I get this error.
I do not receive an error and everything works fine when I copy and
paste an instance in a new folder on a different 'branch' to the
original.

"One or more items referred to in the clipboard data was not found.
The item may have been moved or deleted after you copied it."


When I try to rename a class that is in the original 'site' folder (or
any of its parent folders except for the root), I get this error. I do
not receive an error and everything works fine when I rename an
instance in a new folder on a different 'branch' to the original.

traceback
Traceback (innermost last):
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 222,
in publish_module
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 187,
in publish
  File C:\PROGRA~1\Zope221\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 171,
in publish
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: manage_renameObjects)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 112,
in call_object
(Object: manage_renameObjects)
  File C:\PROGRA~1\Zope221\lib\python\OFS\CopySupport.py, line 273, in
manage_renameObjects
(Object: Traversable)
  File C:\PROGRA~1\Zope221\lib\python\OFS\CopySupport.py, line 285, in
manage_renameObject
(Object: Traversable)
  File C:\PROGRA~1\Zope221\lib\python\OFS\ObjectManager.py, line 236,
in _getOb
(Object: Traversable)
AttributeError: (see above)
/traceback

Like I say, you've been fantastic in helping me.  Thanks to you, I now
have a solution whereby I know I can redo all of the class instances I
have created, and be sure that the error won't reappear.  However, I'm
sure from what you have said so far, there is a way around this that
doesn't involve me 'writing off' all the instances that I have already
created.  My problem is, I'm a little out 

[Zope] ZClass for PDFs

2000-09-07 Thread Timothy Wilson

Hi everyone,

I'd like to make a large number of PDF files available for download from my
site. HTML versions of the files will also be available for online viewing.

I could certainly include the PDF files as regular file objects or I could
create a ZClass specifically for PDF files.

I suspect that this question may be of general interest, so I'm asking for
comments about the pros and cons of either approach.

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.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 )




Re: [Zope] Zope 2.2.1 Solaris 8 dumps core

2000-09-07 Thread Fredrik Aronsson

Hello!

I've had a similar problem, with Zope coredumping, but since I recompiled 
python using the same compiler that I compiled Zope with, Zope works 
correct.

/Fredrik Aronsson

(I've included the smallest script I could find that dumped core. If it
dumps core for you too, perhaps you have the same problem.)

#!/usr/local/bin/python -u
import sys
sys.path.append('/www/zope/lib/python')

print "Content-type: text/plain"
print
print "Everything OK!"

import ExtensionClass

print "Still ok!"





 
 Hi
 
 I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris
 8, built it ok, but when I try run ./start it it dumps core with a
 segmentation fault.
 Is this problem known? Anything I can do?
 I am completely new to both Python and Zope ...
 
 
 Thanks
   Michele
 


___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks


- Original Message -
From: "R. David Murray" [EMAIL PROTECTED]
To: "Tim Hicks" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 07, 2000 10:12 PM
Subject: Re: [Zope] Zclass not reindexing (it is CatalogAware)


 On Thu, 7 Sep 2000, Tim Hicks wrote:
  The question is, do I need to add the equivalent of what is
written in
  'How-To: Creating a CatalogAware ZClass' for reindexing zclass
  properties, but for reindexing the actual text?  How could I do
this?

 When is the text created?  After it is, you have to call
reindex_object.


So each time there is a change made to the text, I must call
reindex_object, is that correct?  If so, how do I make it so that each
time I hit the 'Change' button at the bottom of the text box,
dtml-call "reindex_object()" is executed?

cheers

tim
 --RDM



___
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] ZClass for PDFs

2000-09-07 Thread Tim Cook

Timothy Wilson wrote:
 
 Hi everyone,
 
 I'd like to make a large number of PDF files available for download from my
 site. HTML versions of the files will also be available for online viewing.
 
 I could certainly include the PDF files as regular file objects or I could
 create a ZClass specifically for PDF files.
 
 I suspect that this question may be of general interest, so I'm asking for
 comments about the pros and cons of either approach.
 

Does this not do what you want?

http://www.zope.org/Members/gaaros/ZpdfDocument

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Tim Hicks wrote:
 So each time there is a change made to the text, I must call
 reindex_object, is that correct?  If so, how do I make it so that each
 time I hit the 'Change' button at the bottom of the text box,
 dtml-call "reindex_object()" is executed?

If you take a close look at the how-to, it also tells you you have
to write your own management 'editForm' method and assign it to the
view tab.  In the action method for that form, you do the
reindex_object.

--RDM


___
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] OSError along with FSSession...

2000-09-07 Thread Dieter Maurer

Chien-Pin Wang writes:
   Zope complains an error type "OSError" and throws the error value
  saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/'
  occasionally since a recent upgrade of FSSession product to 0.4.2.
  Following that error will be a series of TransactionErrors for each and
  every request Zope received. And only a zope restart could help zope
  resume its operations. Since this error only comes up occasionally, I'm
  completely clueless on solving it. 
  
File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line
  208, in
  final_commit
  (Object: FSSession)
  OSError: [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/'

Maybe, a bug in "FSSession.final_commit".

Look at line 208 of "FSSession.py".
I expect some lines before, a filename is constructed
for the above directory and session specific data.
For some reason, the session specific data leads to
an empty filename. Therefore, the operation in
line 208 (probably an "os.rename" or other "os" operation)
gets the directory rather than a file path.

You have two options:

 * analyse, why the session data leads to an empty filename
   (this may be difficult)

 * add a
try: ...
except: pass

   around line 208 and wait for the FSSession author
   to analyse and fix the problem.


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] Using Chinese Characters

2000-09-07 Thread David Trudgett

At 2000-09-07 21:18 +0200, Tino Wildenhain [EMAIL PROTECTED] wrote:

Hi Kelvin,

Kelvin Cheong wrote:
 
  i was wondering how i can use chinese characters with Zpe on Linux. does
  anyone know how? According to my "mild" research so far, i found out that
  Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to
  be the de-facto for traditional chinese characters. There're also Unicode
  CJK and GB. But GB is for China, which uses simplified chinese characters.
  And CJK includes both Big5 and GB.

classic zope is built on python 1.52 and does not naturally support
unicode.
But there is a light on the horizont:

http://www.zope.org/Members/htrd/wstring

I have a vision of everything working together for localizing and
internationalisation ;-)

It's good to finally see some Unicode support coming through. I'm a bit 
surprised that Guido didn't mandate Unicode support from the beginning, 
given that Python is a relative newcomer to the programming scene. I 
imagine Python 2 will have full Unicode support, right? Or is it already in 
Python 1.6?

Bad news is that Unicode is not good enough. It allows for about 64k 
characters, yet Chinese alone (Han ideographs) has over 75,000 (maybe a lot 
more, but that includes old, rare and uncommon characters). When will we 
see support for UCS (Universal Character System, ISO 10646) which uses (up 
to) 32 bit (31 bit?) characters. As far as I know, at present the only UCS 
characters currently defined are those defined by Unicode (about 40,000 of 
them), but we should be supporting it now in readiness for the future.

Food for thought.

Zai jian!  (Too bad email is plain ASCII or I could use the proper characters!)


David Trudgett




___
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] SiteRoot (SiteAccess) problem

2000-09-07 Thread Joshua Brauer

I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a 
"SiteRoot" item in the available items list. I can copy site roots and move them, but 
I cannot create new site roots... After reinstalling SiteAccess ( restarting) I still 
have problems. Any ideas?




General Info:

*   Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) 
*   Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 
19990314/Linux (egcs- 
*   System Platform: linux-i386 

Installed Products:
AspSucks (Installed product AspSucks) 
BTreeFolder (Installed product BTreeFolder (BTreeFolder-0.1.1)) 
Calendar (Installed product Calendar (calendar-0-9-0)) 
Confera (Broken product Confera) 
DemoPortal (Through-the-web Sample Portal) 
ExternalMethod (Installed product ExternalMethod (External 
Method-1-0-0)) 
Fortune (Installed product Fortune) 
Glossary (Glossary ZClass) 
Hotfix_06_16_2000 (Installed product Hotfix_06_16_2000) 
Hotfix_2000-08-17 (Installed product Hotfix_2000-08-17) 
IMAPAdapter (Broken product IMAPAdapter) 
KMnetNews (KM|net News) 
KnowledgeKit 
LoginManager (Installed product LoginManager (LoginManager-0-3-0)) 
MIMETools (Installed product MIMETools) 
MailHost (Installed product MailHost (MailHost-1-2-0)) 
NewsSyndicate (Installed product NewsSyndicate (NewsCenter 0.0.5)) 
NotMail (Broken product NotMail) 
OFSP (Installed product OFSP (OFSP-1-0-0)) 
PTKBase (Installed product PTKBase) 
PTKDemo (Installed product PTKDemo) 
Photo (Installed product Photo (Photo-0-4-0)) 
Planner (Planner) 
Poll (Installed product Poll (Poll-0-6-0)) 
PythonMethod (Installed product PythonMethod (PythonMethod-0-1-7)) 
Redirector (Installed product Redirector) 
SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0b3)) 
Squishdot (Installed product Squishdot (Squishdot-0-7-1)) 
TinyCal (Installed product TinyCal (calendar-0-9-0)) 
TinyTable (Installed product TinyTable (TinyTable-0-8-2)) 
WebPages (WebPages Class) 
Wizard 
WorldPilot (Installed product WorldPilot (WorldPilot 1.00.3)) 
XMLDocument (Installed product XMLDocument (XML Document 1.0a6)) 
ZCallable (Installed product ZCallable) 
ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) 
ZFDocument (Installed product ZFDocument) 
ZGadflyDA (Installed product ZGadflyDA) 
ZPhotoAlbum (Z Photo Album) 
ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3)) 
ZRTChat (HTML Chat for Zope) 
ZSQLMethods (Installed product ZSQLMethods) 
ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) 
beehiveCal (Installed product beehiveCal (Version 0.2.0)) 
seminarCalendar (Seminar Calendar) 

-- 
-
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] NEWBIE HELP can not get Zope to start

2000-09-07 Thread Douglas Eadline


I have tried this 10 times with several versions of Zope and
I get the same result - Zope will not let me add a user or log in.

Here are my steps:

1. download and install latest RPMS:
 Zope-2.2.1-1.i386.rpm 
 Zope-zserver-2.2.1-1.i386.rpm

2. Start zope:

/etc/rc.d/init.d/zope start

3. login as superuser

superuser
123

4. See first Zope Screen

5. Attempt to run the tutorial as described in the Content Managers Guide

   Zope will not let superuser do this

6. OK, I'll add a user. I go to acl_users and add a user.
  
7. I quit netscape, and restart and attempt to login as
   the new user - DOES NOT WORK

8 I check /var/zope/access - no new user added

9. I quit netscape and re-login as superuser.
   I look at the user I added, now the password field
   has more stars in it than the password I assigned.
   The confirm field has 1 star less than the password field.

I do not get it. Is there something to read that explains 
how to start Zope and try the tutorial?

Or is this some secret only Zope hackers know?

Doug
---
Paralogic, Inc.   | PEAK |  Voice:+610.814.2800
130 Webster Street|   PARALLEL   |Fax:+610.814.5844
Bethlehem, PA 18015 USA   |  PERFORMANCE |http://www.plogic.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 )




Re: [Zope] ZClass for PDFs

2000-09-07 Thread Timothy Wilson

On Thu, 7 Sep 2000, Tim Cook wrote:

 Timothy Wilson wrote:
  
  I'd like to make a large number of PDF files available for download from my
  site. HTML versions of the files will also be available for online viewing.
  
  I could certainly include the PDF files as regular file objects or I could
  create a ZClass specifically for PDF files.
  
  I suspect that this question may be of general interest, so I'm asking for
  comments about the pros and cons of either approach.
  
 
 Does this not do what you want?
 
 http://www.zope.org/Members/gaaros/ZpdfDocument

Thanks for the pointer.

It doesn't appear that the ZpdfDocuments is what I'm looking for.
ZpdfDocument seems to render PDF on the fly from structured text or HTML. I
was interested in simply storing an existing PDF file in the ZODB and making
it available for download.

Is there a reason to make a PDF ZClass? Would it make things easier?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.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 )




Re: [Zope] ZClass for PDFs

2000-09-07 Thread Tim Cook

Timothy Wilson wrote:

 It doesn't appear that the ZpdfDocuments is what I'm looking for.
 ZpdfDocument seems to render PDF on the fly from structured text or HTML. I
 was interested in simply storing an existing PDF file in the ZODB and making
 it available for download.
 
 Is there a reason to make a PDF ZClass? Would it make things easier?
 

I can't think of one. But if you need it then someone else
probably does too. g

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Help: PATH_INFO==object

2000-09-07 Thread Li Dongfeng

I am writing a service for other pages to
use as form action. How can I reference
the caller object in DTML/python?

I can only think of this: First use PARENTS[-1]
to get to the root object of the site.
Then split the PATH_INFO containing the caller's
path, and go down from the root to every subfolder
in PATH_INFO and then get to the caller object.
But this is not very elegant.

Can anyone give better solution to this?


___
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] ZClass for PDFs

2000-09-07 Thread Loren Stafford

From: "Timothy Wilson" [EMAIL PROTECTED]


 On Thu, 7 Sep 2000, Tim Cook wrote:

  Timothy Wilson wrote:
  
   I'd like to make a large number of PDF files available for download
from my
   site. HTML versions of the files will also be available for online
viewing.
  
   I could certainly include the PDF files as regular file objects or I
could
   create a ZClass specifically for PDF files.
  
   I suspect that this question may be of general interest, so I'm asking
for
   comments about the pros and cons of either approach.
  
 
  Does this not do what you want?
 
  http://www.zope.org/Members/gaaros/ZpdfDocument

 Thanks for the pointer.

 It doesn't appear that the ZpdfDocuments is what I'm looking for.
 ZpdfDocument seems to render PDF on the fly from structured text or HTML.
I
 was interested in simply storing an existing PDF file in the ZODB and
making
 it available for download.

 Is there a reason to make a PDF ZClass? Would it make things easier?

 -Tim


There's an example of a PDF ZClass at
http://www.zope.org/Members/lstaffor/zProperties. If all you do in the class
is add simple properties as in this example, the arguments are in favor of
making a ZClass boil down to:

1. You can enforce the presence of certain properties.
2. In your navigation methods, you can use the metatype to distinguish PDF
files from other files and thereby treat them differently.
3. You can help content managers handle PDF files in a consistent manner.

...worthwhile, but not all that compelling arguments.

On the other hand, once you have a separate class, it's easier to add
functionality; for example,

1. Automatically catalog the content of the PDF by running it thru some
converter (like XPDF),
2. Extract the document properties from the PDF identification block.
3. Provide an alternative byte-serving access to large PDFs.

-- HTH
-- 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] [PATCH] dtml-comment doesn't? Please fix... ;-)

2000-09-07 Thread Kip Rugger

Andrew Kenneth Milton  [EMAIL PROTECTED] wrote:
+---[ Kip Rugger ]--
|
| [snip]
| 
| dtml-if "0"
| crap
| more crap
| dtml-if "0"
| Lots of crap
| /dtml-if
| /dtml-if
| 
| by analogy with the common practice of #if 0 in C

Won't work, the container will still be parsed for correctness at 'save' time.
The problem isn't getting nested comments per se, we already have that. 
The problem is to completely ignore the contents of the comment tag whilst
still allowing nested comments.

Th second part of the problem is that ChrisW(hinger) really wants it, but,
doesn't want to do what is necessary to do it. So the problem is simplified
to not actually doing anything except talking about doing it. d8)

Thankyou for playing d8)


Since I put my stupid foot into it, I just had to write the patch.
For penitence and to learn about DocumentTemplate.

This should let you nest dtml-comment arb stuff /dtml-comment
without any syntactical value being ascribed to the contents.

I am too new to Zope to know if this is even desirable :-) so I
just offer it as more of an amusement than anything else.

Patch against 2.2.1 source.

--- DT_String.py.orig   Thu Aug 17 08:46:48 2000
+++ DT_String.pyThu Sep  7 22:27:42 2000
@@ -237,7 +237,11 @@
 if s: result.append(s)
 start=l+len(tag)
 
-if hasattr(command,'blockContinuations'):
+if command == Comment:
+start = self.parse_comment(text, start, result, tagre, tag, l,
+   command, args)
+
+elif hasattr(command,'blockContinuations'):
 start=self.parse_block(text, start, result, tagre,
tag, l, args, command)
 else:
@@ -280,7 +284,11 @@
 try: tag, args, command, coname= self._parseTag(tagre,scommand,sa)
 except ParseError, m: self.parse_error(m[0],m[1], text, l)
 
-if command:
+if command == Comment:
+start=l+len(tag)
+start = self.parse_comment(text, start, result, tagre, tag, l,
+   command, args)
+elif command:
 start=l+len(tag)
 if hasattr(command, 'blockContinuations'):
 # New open tag.  Need to find closing tag.
@@ -325,6 +333,35 @@
 start=self.parse_close(text, start, tagre, tag, l,
command,args)
 elif not coname: return start
+
+def parse_comment(self, text, start, result, tagre,
+stag, sloc, sargs, scommand):
+nest = 1
+while 1:
+
+l=tagre.search(text,start)
+if l  0: self.parse_error('No closing tag', stag, text, sloc)
+
+tag, name = tagre.group(0, 'name')
+start = l + len(tag)
+if name == 'comment':
+try:
+end = tagre.group('end')
+except:
+try:
+end = tagre.group('fmt')
+if end != ']': end = ''
+except:
+self.parse_error('Delimiter problems',
+ stag, text, sloc)
+if end == '':
+nest = nest + 1
+else:
+nest = nest - 1
+
+if nest == 0:
+start=self.skip_eol(text, start)
+return start
 
 shared_globals__roles__=()
 shared_globals={}

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

2000-09-07 Thread Roch'e Compaan

I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1.
Whenever I post an article on my squishdot sites I get an attribute error:
_catalog.  It seems like squishdot has trouble putting the article in the
catalog.  I did modify all references to thread[0] to getThread(0):

Traceback (innermost last):
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/2-2-0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: addPosting)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: addPosting)
  File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py,
line 979, in addPosting
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py,
line 702, in setItem
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/Products/ZCatalog/ZCatalog.py, line
377, in catalog_object
(Object: Traversable)
AttributeError: (see above)



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