Re: [Zope-dev] Common Icons or Free Icon collection

2000-06-26 Thread Holger Lehmann

Linux distributions come bundled with a bunch of "free" icons. And I beleive
there are some ...tar.gz archives on metalab.unc.edu (former sunsite.unc.edu).

-Holger

Am Mon, 26 Jun 2000 schrieben Sie:
 Hi,
 
 I need some icons/pics for my Zope project. Are there any common icons for
 Zope I could use, and if not, shouldn`t there be such a thing? Does anybody
 know of any other collection of free icon-collections available ?
 
 Thomas
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

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




Re: [Zope-dev] Python 1.6

2000-06-26 Thread Toby Dickenson

On Fri, 23 Jun 2000 21:27:43 +0200 (CEST), Dieter Maurer
[EMAIL PROTECTED] wrote:

Toby Dickenson writes:
  I'm about to start looking at running Zope on python 1.6 (Im feeling
  the need for better Unicode support).
Almost surely, it will work.

But it probably will not use the Unicode support automatically.

That much I do know. I'm migrating to 1.6 so I can add this support to
Zope ;-)

(fyi, my prototype implementation for ZPublisher unicode support for
python 1.5.2 is at http://www.zope.org/Members/htrd/wstring )

Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope-dev] zpatterns-0.4a4

2000-06-26 Thread mike

Jephte CLAIN wrote:
 
 There is a bug (a feature?) in Specialist.getItem in zpatterns-0.4a4:
 
 def getItem(self, key):
 if hasattr(self.aq_base,'retrieveItem'):
 return self.retrieveItem(key=key) # XXX need DTML check?
 
 for rack in self.rackList:
 item = rack.__of__(self).getItem(key)
 return item
 
 This code should (IMHO) read:
 
 def getItem(self, key):
 if hasattr(self.aq_base,'retrieveItem'):
 return self.retrieveItem(key=key) # XXX need DTML check?
 
 for rack in self.rackList:
 item = rack.__of__(self).getItem(key)
 if item is not None:
 return item
 return None
 

I also think so, Jephte. But I thought 'for rack ...' was just a shorter
form of

if len( rackList)  0) :
  return rackList[0].__of__( self).getItem( key)
else :
  return None

Better you, Phillip, replace it with one of more clear forms - Jephte's
or mine.

By the way, I do not like this Rack list at all. Racks and Specialists
are both DataManagers with compatible interfaces (getItem, newItem).
IMHO, Specialists should have list of DataManagers. This make much sense
in context of combining Specialists - ZSession and ClientManager, for
example. It is not sufficient just to tune ZSession using
ClientManager's rack and ZClass, because in this case we are losing the
ClientManager's aspect in sessions. Of course, one always can create
delegating rack (and even rack-to-specialist bridge), but what do this
for if simple replacing rackList with dataManagerList will solve all
such problems?

(Oh Gott, help mine improvink mie English :-)

Mike

___
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] zpatterns-0.4a4

2000-06-26 Thread Jephte CLAIN

mike wrote:
 I also think so, Jephte. But I thought 'for rack ...' was just a shorter
 form of
 
 if len( rackList)  0) :
   return rackList[0].__of__( self).getItem( key)
 else :
   return None
The intended behavior (at least in zpatterns-0.3) was to get an item
from one of the racks. This is why I think this is a bug. It changes the
behavior of zpatterns-0.3 because it returns the value from the first
rack, and ignore the others. I wonder then of what use is the other
racks... (or is this intended? I don't think so)
If a rack returns None, then we assume the rack is not responsible for
storage of that element, and go on with the next rack in the list


 Better you, Phillip, replace it with one of more clear forms - Jephte's
 or mine.
 
 By the way, I do not like this Rack list at all. Racks and Specialists
 are both DataManagers with compatible interfaces (getItem, newItem).
 IMHO, Specialists should have list of DataManagers. This make much sense
 in context of combining Specialists - ZSession and ClientManager, for
 example. It is not sufficient just to tune ZSession using
 ClientManager's rack and ZClass, because in this case we are losing the
 ClientManager's aspect in sessions. Of course, one always can create
 delegating rack (and even rack-to-specialist bridge), but what do this
 for if simple replacing rackList with dataManagerList will solve all
 such problems?
I believe RackMountable/Racks/Specialist are not the same as
DataSkin/DataManagers (in the spirit at least) They are used for
different things. Or it is kept for compatibilty with old applications
(at least, LoginManager use the Specialist/Rack paradigm)

 (Oh Gott, help mine improvink mie English :-)
itoo :-)

regards,
jephte clain
[EMAIL PROTECTED]

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




Re: [Zope-dev] zpatterns-0.4a4

2000-06-26 Thread Phillip J. Eby

At 01:08 PM 6/26/00 +0400, Jephte CLAIN wrote:

This code should (IMHO) read:

def getItem(self, key):
if hasattr(self.aq_base,'retrieveItem'):
return self.retrieveItem(key=key) # XXX need DTML check?

for rack in self.rackList:
item = rack.__of__(self).getItem(key)
   if item is not None:
return item
return None

Corrected for next release.


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




RE: [Zope-dev] Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...

2000-06-26 Thread Brian Lloyd

 TJM That did it!  But...  :) I ended up having to re-create all
 TJM my ZSQL methods, which was funny because they all worked in
 TJM the beta 1 but not in beta 2.  I kept getting len() of
 TJM unsized object errors.  Anyway, re-creating them all from
 TJM scratch (ugh..)  solved that problem.
 
 So - any news on the re-creating all the sql methods bit?  I am about
 to start doing the same thing.  Any way to work around this?

You certainly shouldn't have to do that - AFAIK, TJ's was the 
only report of that behavior. There ARE other people reporting 
something about "len of unsized object" errors with their SQL 
methods after upgrading that I'm trying to get to the bottom of. 

Unfortunately, I haven't been able to reproduce that locally. I 
would really appreciate if some folks would:

  o !!backup your original Data.fs!! before trying out 2.2 beta 2

  o If you have any problems with the SQLMethods, if you can send 
me your zipped object db (and info on what products need to 
be installed to reproduce your environment) that would help a 
lot. (send a copy of the back up Data.fs)

It would be great if someone can send me one where the SQL stuff 
is based on Gadfly or MySQL connections if possible...


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



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




RE: [Zope-dev] No feedback for SOAP patch ?

2000-06-26 Thread Brian Lloyd

 On Fri, Jun 23, 2000 at 10:34:50PM -0400, Evan Simpson wrote:
  I've barely had a free second with functioning brain 
 capacity this past
  week, but I'm interested.  More so now that Secret Labs has 
 announced their
  SOAP client library at 
 http://www.pythonware.com/products/soap  If you
 
That made me to do it :^) (and it is partly guilty for why 
 it isnt working
 as good as it should...).
 
  haven't already popped your patch into the Collector, please do!
 
I just did now
 
 -Petru

Thanks Petru - 

It will probably be a few days before I can look at the SOAP 
stuff, but I am definitely interested. SOAP support is one 
of the things on the (soon to be published) development 
roadmap for the Zope core - but it looks like we might get 
there a lot sooner than I originally thought :^)

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



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




[Zope-dev] setup.py scripts

2000-06-26 Thread Andrew Kuchling

Has anyone at DC looked at the setup.py scripts I posted a while back?
Any questions?  Any opinions?  Anyone care for a mint?

--amk

___
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] 2.2 permission problem with adding ZClass Instance as user in DTML

2000-06-26 Thread Bill Anderson

OK, I have aproblem that is largely baffling me.

I have Meerting Management installed and working properly ... for the
most part.

If I use the following code to add a Managed Meeting, it works fine:

a
href="/LAN/manage_addProduct/MeetingManagement/ManagedMeeting_factory"Add
LAN Party/a

I get the form, and it adds as user just fine. Anonymous wokrs fine too.

However, this is not only ugly, it wreaks havoc with my navtrail. So I
copied my code from KnowledgeKit, and changed to suit the product:

Form calls as action the method CreateEvent:
dtml-with "manage_addProduct['MeetingManagement']"
dtml-call "ManagedMeeting_Add(_.None, _)"
/dtml-with

And it barfs on permissions, requesting a username/pass combo through
Basic HTTP Auth, as opposed to the cookie login I am using (Membership
0.6.0). The traceback is less than helpful, but if anyone wants it, I'll
post it.

Any help much appreciated, since I'll be able to return to working on
some cool stuff once this is resolved. 

Bill

___
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] New security model and products breaking zope management

2000-06-26 Thread Bill Anderson

"R. David Murray" wrote:
 
 OK, I've stared at this for a couple days and have not made any progress.
 Perhaps others will have some insights.
 
 Zope 2.2.0b2, clean install.  Works fine.  Add EMarket.  Now the
 management is broken.  Accessing the base URL of the site with
 /manage_main appended gives you the file list view of the root
 folder, with no prompt for authentication.  Accessing /manage
 prompts for a login, but the right panel view is the import/export
 screen and not the folder list.  There's other weird stuff, like
 a key error on "a_", which appears to be temporary variable used
 in one of the DTML management pages.
 
 I've read Brian's 2.2 product security update, and it looks to me like
 EMarket is Doing the Right Thing (though I haven't checked completely for
 unprotected methods yet), which makes sense since it was a working
 product grin.
 
 I have a private report that eTailor also has this problem, but haven't
 tested it myself.

If I am not the source of that report, chalk up another one for the
tally.

___
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] New security model and products breaking zope management

2000-06-26 Thread R. David Murray

On Mon, 26 Jun 2000, Lalo Martins wrote:
 I had the same problem ("Contents" tab not appearing) and it
 didn't even occur to me that it might be a Product (because
 that happened before the update on Products was released).
 
 After much munching trough the code, I made the simple change
 (attached) to lib/python/app/Management.py based on the
 warnings given by that same file and
 lib/python/AccessControl/ZopeSecurityPolicy.py - and now my
 Zope 2.2 is working just fine.
 
 I don't know whether the problem is in a Product or
 Management.py, but my "fix" makes sense to me...

Well, your fix fixed the "a_" problem, but not the permissions
problem (I don't get prompted for a login when accessing
/manage_main).  I haven't gotten too far on my testing yet, but
I have shown that a zero length __init__.py file in the EMarket
product directory still yeilds the problem.  I don't understand
the product import process, so I don't know what else does get
loaded with a zero length __init__ file.  I'll do more experimenting
Wednesday...

--RDM

--
--- Management.py.orig  Thu Jun 22 01:18:59 2000
+++ Management.py   Thu Jun 22 01:48:48 2000
@@ -127,7 +127,7 @@
 if o is None: continue
 
 try:
-if validate(value=o):
+if validate(container=self, value=o):
 result.append(d)
 except:
 if not hasattr(o, '__roles__'):


___
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] 2.2.0b3 - try/except changed?

2000-06-26 Thread Dr. Ross Lazarus

This new beta has fixed some problems for me and the documentation on
the new security model for products has really helped...

However, I seem to be getting errors in previously (2.1.6) dtml
try/except structures.
1. dtml-except now seems to die unless there's an error_type parameter
(I usually don't need them...) - presumably a new buglet?

2. dtml-trydtml-var "fooZSQL"/dtml-try doesn't catch exceptions in
SybaseDA connected ZSQL method fooZSQL anymore?? I'm pretty sure this is
a change from 2.1.6 behaviour - and a change for the worse IMHO - it's
very useful to be able to expect a try/except structure to trap ALL
errorsgracefully

Could some kind soul confirm that it's not just me so I can pop this
into the collector please?
-- 

Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 126A, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429   Mobile: +61414872482  
Fax: (+61 2) 93516646   Email: [EMAIL PROTECTED]

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




RE: [Zope] Zope 2.2b2 security conundrum

2000-06-26 Thread Jay, Dylan

 -Original Message-
 From: Bill Anderson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 26, 2000 1:42 PM
 To: Jay, Dylan
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: [Zope] Zope 2.2b2 security conundrum
 
 
 "Jay, Dylan" wrote:
  
  I am playing with ZDP-Tools which are ZClassed based. When 
 I try to add a
  new object I get security failure.
  
H2Zope Error/H2
PZope has encountered an error while publishing this resource.
/P
PSTRONGUnauthorized/STRONG/P
  
You are not authorized to access emmanage_editProperties/em.
  !--
  Traceback (innermost last):
File D:\PROGRA~1\Zope22\lib\python\ZPublisher\Publish.py, 
 line 222, in
  publish_module
File D:\PROGRA~1\Zope22\lib\python\ZPublisher\Publish.py, 
 line 187, in
  publish
File D:\PROGRA~1\Zope22\lib\python\ZPublisher\Publish.py, 
 line 171, in
  publish
File D:\PROGRA~1\Zope22\lib\python\ZPublisher\mapply.py, 
 line 160, in
  mapply
  (Object: FAQQuestionClass_add)
File D:\PROGRA~1\Zope22\lib\python\ZPublisher\Publish.py, 
 line 112, in
  call_object
  (Object: FAQQuestionClass_add)
File D:\PROGRA~1\Zope22\lib\python\OFS\DTMLMethod.py, line 168, in
  __call__
  (Object: FAQQuestionClass_add)
File 
 D:\PROGRA~1\Zope22\lib\python\DocumentTemplate\DT_String.py, line
  500, in __call__
  (Object: FAQQuestionClass_add)
File 
 D:\PROGRA~1\Zope22\lib\python\DocumentTemplate\DT_With.py, line 146,
  in render
  (Object: 
 FAQQuestionClass.createInObjectManager(REQUEST['id'], REQUEST))
File D:\PROGRA~1\Zope22\lib\python\OFS\DTMLMethod.py, line 164, in
  __call__
  (Object: DocumentFolderClass_add_fragment_exec)
File 
 D:\PROGRA~1\Zope22\lib\python\DocumentTemplate\DT_String.py, line
  500, in __call__
  (Object: DocumentFolderClass_add_fragment_exec)
File 
 D:\PROGRA~1\Zope22\lib\python\DocumentTemplate\DT_Util.py, line 339,
  in eval
  (Object: propertysheets.Info.manage_editProperties(REQUEST))
  (Info: REQUEST)
File lt;stringgt;, line 0, in ?
File 
 D:\PROGRA~1\Zope22\lib\python\DocumentTemplate\DT_Util.py, line 140,
  in careful_getattr
File D:\PROGRA~1\Zope22\lib\python\OFS\DTMLMethod.py, line 187, in
  validate
  (Object: FAQQuestionClass_add)
File 
 D:\PROGRA~1\Zope22\lib\python\AccessControl\SecurityManager.py, line
  139, in validate
File 
 D:\PROGRA~1\Zope22\lib\python\AccessControl\ZopeSecurityPolicy.py,
  line 208, in validate
  Unauthorized: (see above)
  
  I figure this is due to the new security model. The user I 
 am using doesn't
  have Manager privlidges but has permission to add this 
 object. I get the add
  form however when I try to submit the above occurs. I think 
 this might have
  something to do with the ownership of FAQQuestionClass_add. 
 However I can't
  see who owns FAQQuestionClass_add. How is the new security 
 model supposed to
  work with ZClasses and how do I get round this problem so I 
 can give a user
  the ability to add a new object.
 
 
 Check fo rthe permission "Manage Properties". This one threw me for a
 while. I posted this a week or two back, you should be able to find it
 in the archives.
 This works wehn I call the addForm directly, yet when I use a 
 form local
 to the direntoy and s the "dmtl-with ..." technique from the FAQ As I
 use in KnowledgeKit), it doesn't seem happy, requesting authentication
 through Basic Auth, as opposed to the Cookie Login form I use 
 currently
 (Membership 0.6.0).
 
 I am working on this, and will pst a fix as soon as I have one.

I solved this by giving the piece of code that changes the properties the
Proxy Manager role.

___
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] Problem with the datatype lines

2000-06-26 Thread Anders Holmbech Nielsen

Hi Zopers,

I have found out that when using the datatype "lines" in my own 
ZClass it won't obey to the locale settings. That means that the 
words coming from "lines" look like: t/370nk. And therefore they 
don't get correctly indexed in the database.
I'm running Zope 2.1.6 (on both linux and winnt 4.0).

Is there an update to this problem or a workaround ?


Thanks in advance
-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
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] Unique Identifiers for Zope Objects

2000-06-26 Thread Michael Abbott

I'm looking for an internal globally unique identifier for objects in my
Zope store.

I know that I can use id=object.absolute_url() to create an identifier and
then something.resolve_url(id) to recover the object from the identifier
-- but I have two problems with this API:

1. The URL is not really a global identifier, as resolving it seems to
depend on the something from which I call resolve_url().  In particular,
if the id is created when Zope is running normally (as a service), and
resolved when running Zope from the command line debugger, the resolve
fails.  This is not good.

2. The need to locate an object something carrying the resolve_url()
function is a problem; in particular, I would find it helpful if I could
resolve my global identifier from within a __setstate__() method (where I
have no access to local Zope variables), so I really want a genuinely global
function for resolving my id.

Any suggestions, or do I have to dig into the (disagreeable and uncommented)
bowels of Zope and write my own?

(If this is on the wrong list, please point me to the right one.  Thanks.)

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




RE: [Zope] Can not add Zope Tutorial with 2.2

2000-06-26 Thread Oleg Broytmann

On Sun, 25 Jun 2000, Brian Lloyd wrote:
 Did you try to _import_ the tutorial or add it from the "add list" 
 in the management interface? It is intended that you should add it 
 from the add list (this should be better documented though...)

   Both variants didn't work for me - both gave "len() of unsized object"!

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] (no subject)

2000-06-26 Thread Bill Anderson

"Jay, Dylan" wrote:
 
  -Original Message-
  From: Marco Mariani [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 23, 2000 9:54 PM
  To: Jay, Dylan; [EMAIL PROTECTED]
  Subject: Re: [Zope] (no subject)
 
 
  On Fri, Jun 23, 2000 at 04:32:39PM +1000, Jay, Dylan wrote:
 
   It seems to me that a few tweaks to the dtml-if syntax
  would be beneficial
  
   something like the following would certainly clean up some
  of the logic I
   end up writing.
  
   dtml-if X
a href="a_url"
   dtml-always
link text
   dtml-else
(no link currently available)
   dtml-then
/a
   /dtml-if
 
  dtml-if X
 a href="a_url"
 link text
 /a
  dtml-else
 link text
 (no link...)
  /dtml-if
 
 yes but the repitition of "link text" could be a real pain if "link_text" is
 big. Repitition is always a maintance nightmare.


If it is, make it a method or attribute.

dtml-if X
   a href="a_url" dtml-var linktext/a
dtml-else
   dtml-var linkText (No Link Available)
/dtml-if X

You could make the links objects, such that:
dtml-in "objectValues('Link Object')"
  br a href="dtml-var linkURL" dtml-var linkText /a
dtml-else
  p Sorry, no links available at this time.
/dtml-if Link Objects

The real question is why have link text that doesn't link... ;)

___
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] MySQLDA Problems with simple constant/function queries

2000-06-26 Thread Monty Taylor

This is actually fixed in both 1.1.4 and in 1.2.0. The problem has to do
with type conversions from a dictionary in the adapter. Any type of
non-row function or aggregate returns a type of 'unhandled' which was
not mapped in the conversion dictionary. This is fairly much the bug
that called for 1.1.4 to be released. You're right, though, very easy to
fix.

1.2.0 deals with the problem by taking a different approach to
type-mapping. 

Monty

Stefan Franke wrote:
 
 I'm using MySQLDA 1.1.3 on Win32. When I type the following queries
 into the test tab edit box, I get the traceback below:
 
   select LAST_INSERT_ID()
 
 or
 
   select 1 from table
 
 Of course "select * from table" works.
 
 When I look into db.py, the error doesn't look very hard to fix, I think
 I'll give tomorrow. Is there some API documentation of what a DA is
 supposed to do?
 
 Since the 1.1.4 query() code is identical, I think the problem appears
 there as well.
 
 Please reply to the posting via email directly, since I'm not subscribed
 to the list.
 
 Stefan
 www.meso.net
 
 ---
 
 Error Type: KeyError
 Error Value: unhandled
 
 Traceback (innermost last):
   File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line
 224, in publish_module
   File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line
 189, in publish
   File D:\Programme\Zope2.2\mensa_m\lib\python\Zope\__init__.py, line 221,
 in zpublisher_exception_hook
 (Object: RoleManager)
   File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line
 175, in publish
   File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\mapply.py, line
 160, in mapply
 (Object: manage_test)
   File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line
 112, in call_object
 (Object: manage_test)
   File D:\Programme\Zope2.2\mensa_m\lib\python\Shared\DC\ZRDB\Connection.py,
 line 178, in manage_test
 (Object: RoleManager)
   File D:\Programme\Zope2.2\mensa_m\lib\python\Products\ZMySQLDA\db.py, line
 191, in query
 KeyError: (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 )

begin:vcard 
n:Taylor;Monty
tel;cell:+31 (0)6 200 17486
tel;fax:+31 (0)20 589 5566
tel;work:+31 (0)20 589 5517
x-mozilla-html:TRUE
url:http://www.goldridge.net
org:Information Innovation
adr:;;Amstelveenseweg 88-90;Amsterdam;;1075 XJ;The Netherlands
version:2.1
email;internet:[EMAIL PROTECTED]
title:Information Artist
x-mozilla-cpt:;0
fn:Monty Taylor
end:vcard



Re: [Zope] Re: SiteAccess 2.1.6

2000-06-26 Thread Bill Anderson

Oleg Broytmann wrote:
 
 On Sun, 25 Jun 2000, ethan mindlace fremen wrote:
  repeatably make 2.1.6 not work with SiteAccess 1.0.1 , you should let us
  know about it.  I don't think there are millions of failures with
  SiteAccess.
 
There certainly are. Many people in Russian Python/Zope User Group asked
 in our mailing list "What the hell with authentication in 2.1.6?" - and
 downgrading to 2.1.4 always helped.


You have a group millions large??? Wow. ;-)

___
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] Translator package/project died or what ?

2000-06-26 Thread Holger Lehmann

Hi everyone, especially J. David Ibáñez and Federico Di Gregorio :-)

Since Federico did not reply to my mail I am posting this on the list to gain
responses.

We **need** a translator package for Zope. We will be hosting a site that will
have the feature to "speak" different languages.

So I got Translator-0.5.tar.gz from somewhere (do not ask me where, I forgot).
Unpacked it and restarted Zope. The product is broken since it tries to import:
from Shared.xmlio import XMLio
But this is obviously not available (I tried finding it on zope.org  and
with google/altavista). The only available xml package is in DC.xml and is
based on xmllib.

Now here is the question: Does anyone have the XMLio stuff ? If so can this
someone be so nice and either post the URL here or make it available and post
the URL here ?
If all this is in vain and that package will not be developed any further, can
someone tell me if there is another solution out there ?

- TIA Holger

-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

___
Zope 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] embed an SQL method inside a dtml-in tag

2000-06-26 Thread wai

Hi,

I tried to embed an SQL method statement inside my dtml-in listing, the
problem I'm facing was, will Z sql method detact the value I passed in, let
say :

# This is my first listing
dtml-in abc_sql_statement
 #another sql_statement
 dtml-in bcd_statement
  dtml-var xyz
 dtml-in
/dtml-in
#  The bcd_statement will not be requested by a form

The reason being I do this is because I need to do some interaction in the
results of  bcd_statement.

Any one can help or done this before ??

Please help.

Cheers

Wai


___
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 a zope newbie

2000-06-26 Thread Amit Redij

Hello

I want to know more about Zope.

I have seen few site powered by Zope. One thing I had noticed is that almost
all of those sites are mostly static pages. I mean I am interested to see
how can Zope be used for a portal. like containing many pages having lots of
form variables. database connectivity etc. what is the performance then.

can anybody help me evaluating this.

thanks in advance.

Amit

 .--.
|o_o |
|:_/ |
   //   \ \Amit Redij
  (| | )   mailto:[EMAIL PROTECTED]
 /'\_   _/`\
 \___)=(___/



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




[Zope] Zope 2.1.6 Bug?

2000-06-26 Thread James W. Howe

I'm running Zope 2.1.6 under Windows 2000.  I've encountered a situation 
where I can cause Zope to completely hang.  For example, if I create a 
DTMLMethod called test in the root folder and give it this 
contents  (leading spaces on the table tag are important):

 table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 tdHello/td
   /tr
 /table

and click the View tab, the page displays as expected.  However, if I edit 
this to look like this:

 table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 tdHello/td
   /tr
   tr
  tdGoodbye/td
   /tr
 /table

and click View, Zope goes off and never returns.  The Python.exe file 
continues to consume CPU but doesn't display anything.

However, if I remove the leading spaces before the table tags, save my 
changes and then click View, the contents are displayed immediately.  I 
then experimented with adding one space before the tag.  The contents 
displayed, but after a pause.  Two spaces paused longer.

Can anyone else verify this behavior?

Thanks.

James W. Howe   mailto:[EMAIL PROTECTED]
Allen Creek Software, Inc.  pgpkey: http://ic.net/~jwh/pgpkey.html 
 
Ann Arbor, MI  48103


___
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] problem with the beta

2000-06-26 Thread frank cuzzocrea

i am using 2.2 Beta 2 and every time i attempt to add a new folder, or a dtml 
document, i keep having this error
Error Type: SuperCannotOwn

Error Value: Objects cannot be owned by the superuser

I never got this with 2.1.6  is this an error in the 2.2 beta 2 version, or do u think 
i just have a bad copy.  i am going back to the 2.1.6 version till i find out

Frank from Miami
___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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

2000-06-26 Thread Rob W. W. Hooft

I only have a few internationalized pages, but I'm more than half-way
happy with a very simple approach:

1) an External Method "preferred_lang", which takes a list of possible
   languages as argument, and returns the language from that list that
   has the highest ranking in HTTP_ACCEPT_LANGUAGE. If there is no
   hit, it returns the first language in the list.
   
   import string

   def preferred_lang(self,langs):
  for lang in map(string.strip,string.split(self.HTTP_ACCEPT_LANGUAGE,',')):
if lang in langs:
  return lang
  return langs[0]
   -
   This External Method is available as "PreferredLanguage" on the
   root folder.

2) In each internationalized page, I call the External Method with a
   list of the available languages (it is not the same for all
   pages), and then select the contents based on the result.
   
   dtml-var standard_html_header
   dtml-call "REQUEST.set('lang',PreferredLanguage(REQUEST,['en','nl']))"

   dtml-if "lang=='nl'"
   H2De Hooft Familie Webdienst/H2
   dtml-else
   H2The Hooft Family Web/H2
   /dtml-if
   etc
   -

One advantage of this approach is that it keeps the different versions
together (making updates to the information easy to keep consistent).
One disadvantage of this approach is that it keeps the different
versions together (making it difficult to appoint different people to
maintaining the different languages), and another disadvantage is that
it clutters up the dtml source.

Suggestions for improvements always welcome.

Regards,

Rob Hooft

-- 
=   [EMAIL PROTECTED]  http://www.hooft.net/people/rob/  =
=   RD, Nonius BV, Delft  http://www.nonius.nl/ =
= PGPid 0xFA19277D == Use Linux! =

___
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 performance: reads to writes

2000-06-26 Thread Evan Simpson

- Original Message - 
From: Jimmie Houchin [EMAIL PROTECTED]

 This is what I understand based on your reply and from the paper by Jim.
 
 1. That there are solutions currently being worked on by DC (implied).
Yes, worked on does not mean 'Coming Soon to a Zope near You!' :)
 
 2. That if an app, either by it's nature or thru it's developers design,
 eliminates or handles conflicts before commits are made to the ZODB,
 that high write situations are not a problem.

AFAIK, these are both correct.

 Is number 1. below something that would take place with BTree Folders?

Yes.

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] help a zope newbie

2000-06-26 Thread Chris McDonough

 I have seen few site powered by Zope. One thing I had noticed 
 is that almost
 all of those sites are mostly static pages. I mean I am 
 interested to see
 how can Zope be used for a portal. like containing many pages 
 having lots of
 form variables. database connectivity etc. what is the 
 performance then.

While it may appear that these sites are "static", they are probably
very dynamic.  Sites based exclusively on Zope do not serve *any* static
content, all content is generated dynamically.

See http://www.codecatalog.com for an example of a site which does a lot
of forms processing and database lookups.  It is based on Zope.

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




Re: [Zope] Zope 2.1.6 Bug?

2000-06-26 Thread Anders Holmbech Nielsen

hi,

this is a strange error. I have just tried on my win nt 4.0 Zope 
2.1.6 with the same result.

I'm running Zope 2.1.6 under Windows 2000.  I've encountered a 
situation where I can cause Zope to completely hang.  For example, 
if I create a DTMLMethod called test in the root folder and give it 
this contents  (leading spaces on the table tag are important):

 table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 tdHello/td
   /tr
 /table

and click the View tab, the page displays as expected.  However, if 
I edit this to look like this:

 table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 tdHello/td
   /tr
   tr
  tdGoodbye/td
   /tr
 /table

and click View, Zope goes off and never returns.  The Python.exe 
file continues to consume CPU but doesn't display anything.

However, if I remove the leading spaces before the table tags, save 
my changes and then click View, the contents are displayed 
immediately.  I then experimented with adding one space before the 
tag.  The contents displayed, but after a pause.  Two spaces paused 
longer.

Can anyone else verify this behavior?

Thanks.

James W. Howe  mailto:[EMAIL PROTECTED]
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI  48103


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

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
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] (no subject)

2000-06-26 Thread ethan mindlace fremen

Luc Tonin wrote:
 
 does anybody know how to have some statistic about each web pages
 under zope?? each pages is da result of query on a mysql database !
 any id ???
 thx by advance

I don't know if this is what you mean, but you can use webalizer or
another statistics package on the log file created by zope. If you run
it behind apache, you can use the log file apache creates.

hope that helps,
-- 
ethan mindlace fremen
Zopatista Community Liason

___
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] URL parsing error in 2.2.0b2

2000-06-26 Thread T.J. Mannos

I used to be able to use URLs like this in Zope 2.1.6:
http://mysite.com/somepage?url=http://somewhere.com

In Zope 2.2.0b2, I get a "404 File Not Found" error.  Do I need to URL-quote
the address now?


___
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.1.6 Bug?

2000-06-26 Thread Satheesh Babu

Ha ha, still stranger results. I tried it on an NT4.0
machine and it hangs as well. Changed it to 
  table  border=0 cellspacing=0 cellpadding=0

- no quotes and no width
and it works fine. What the %#@%%^ ???

Can't play much with it because there are 
users on the system :-( Nothing on the ZServer
logs as well.


   ~  V.Satheesh Babu [EMAIL PROTECTED](Xt: 5348)
  . . http://vsbabu.csoft.net/
  /V\ - Duct tape is like the force.  It has
 // \\  a light side, and a dark side, and
/(   )\ it holds the universe together ...
 ^'~'^

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Anders Holmbech Nielsen
Sent: Monday, June 26, 2000 10:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] Zope 2.1.6 Bug?


hi,

this is a strange error. I have just tried on my win nt 4.0 Zope 
2.1.6 with the same result.

I'm running Zope 2.1.6 under Windows 2000.  I've encountered a 
situation where I can cause Zope to completely hang.  For example, 
if I create a DTMLMethod called test in the root folder and give it 
this contents  (leading spaces on the table tag are important):

 table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 tdHello/td
   /tr
 /table

and click the View tab, the page displays as expected.  However, if 
I edit this to look like this:

 table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 tdHello/td
   /tr
   tr
  tdGoodbye/td
   /tr
 /table

and click View, Zope goes off and never returns.  The Python.exe 
file continues to consume CPU but doesn't display anything.

However, if I remove the leading spaces before the table tags, save 
my changes and then click View, the contents are displayed 
immediately.  I then experimented with adding one space before the 
tag.  The contents displayed, but after a pause.  Two spaces paused 
longer.

Can anyone else verify this behavior?

Thanks.

James W. Howe  mailto:[EMAIL PROTECTED]
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI  48103


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

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

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



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




Re: [Zope] ProxyPass

2000-06-26 Thread Pierre Rougier

Hi Roché

 Thanks Pierre

 This is a relief, I really didn't want to switch back to pcgi.  I have
 worked a little bit with the rewritemodule but if anybody has an example on
 how to do this it would really be helpfull.

 Roché


I don't know if it help, but
My problem was to serve any request to Apache to the ZServer, and to change
the URL like that:
http://path/file.html(Apache server)
to
http://path:8080/?file.html (ZServer, with the file as a query_string)

and I wanted it to be transparent . So, I matched all the URLs with htm and
html extension to modify them.
The first thing u have to do is defining the regular expression which will
match the URL you want to serve as a proxy
then u can insert, and modify your URL (which will be served transparently
with the [P] flag.

the big problem is to find a way to match what u want, the syntax is horrible
(I passed a whole day on these three lines).

for more informations about rewrite_mod:

http://www.kenzonca.com/manual/mod/mod_rewrite.html


my example: (4 lines in the httpd.conf file this is very powerfull)

#Attention: ici insrtion des regles de reecriture avec mod_write
RewriteEngineon

RewriteRule^(^([^/]*/)*)([^/]*\.htm)$  http://margo.ina.fr:8080$1?$3
[P] # fichiers HTM
RewriteRule^(^([^/]*/)*)([^/]*\.html)$  http://margo.ina.fr:8080$1?$3
[P] # fichiers html
RewriteRule^(^([^/]*/)*)$ http://margo.ina.fr:8080$1 [P]   # pas de
fichier demande (pages sommaires Zope)


I hope it help u!
Pierre


___
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] Unique Identifiers for Zope Objects

2000-06-26 Thread Chris McDonough

 I'm looking for an internal globally unique identifier for 
 objects in my
 Zope store.

The object path would be that.

 I know that I can use id=object.absolute_url() to create an 
 identifier and
 then something.resolve_url(id) to recover the object from 
 the identifier
 -- but I have two problems with this API:
 
 1. The URL is not really a global identifier, as resolving it seems to
 depend on the something from which I call resolve_url().  
 In particular,
 if the id is created when Zope is running normally (as a service), and
 resolved when running Zope from the command line debugger, the resolve
 fails.  This is not good.

Yes, the REQUEST object is not available during a command line session.
This can be a real pain.

What you can do is (in Zope 2.2) use 'unrestrictedTraverse()' and
'restrictedTraverse()' in combination with the string.split() of the
relative URL as obtained via ob.absolute_url(relative=1), e.g.

ob = self.myob
oburl = ob.absolute_url(1)
obpath = string.split(oburl, '/')
obpath.insert(0, '')  # a null string as the first item in the
[un]restrictedTraverse list means relative to root
sameob = self.unrestrictedTraverse(obpath)

(this is untested, I think it's right...)

 2. The need to locate an object something carrying the resolve_url()
 function is a problem; in particular, I would find it helpful 
 if I could
 resolve my global identifier from within a __setstate__() 
 method (where I
 have no access to local Zope variables), so I really want a 
 genuinely global
 function for resolving my id.
 
 Any suggestions, or do I have to dig into the (disagreeable 
 and uncommented)
 bowels of Zope and write my own?

Well... if you don't plan on using mountable database features within
Zope, each Zope object will have an attribute "_p_oid", which is the
64-bit object id (stored as a string) that is used by the storage to
keep current and historical revisions to the object.  It's not
recommended that you base an extensible system on this attribute,
however, because using multiple storages within a single Zope instance
(such as when you use mountable databases) almost guarantees that this
identifier will not be unique.  I believe that mountable databases in
Zope will quickly become a common implementation practice.

I wouldn't suggest writing your own GUID generator for general-purpose
Zope objects.  I would promote the use of [un]restrictedTraverse and use
the object path as a unique ID.

See also:

http://www.zope.org/Members/michel/Projects/Interfaces/Traversal

and

http://www.zope.org/Members/michel/Projects/Interfaces/ObjectPublishing

___
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] More verbose zope errors

2000-06-26 Thread Chris McDonough

Do a view source on the page to show the traceback contents when they
don't show up within the page body.

 -Original Message-
 From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 26, 2000 11:08 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] More verbose zope errors
 
 
 Riku Voipio wrote:
  
  Hi,
  
  Is there any way to meke Zope be more verbose when hitting errors?
  Something like:
  
  Error Type: TypeError
  Error Value: illegal argument type for built-in operation
  
  rant
  Sucks it ass off to find where it came from. What operation?
  what argument? what line?
 
 Are you saying that the traceback (found commented out in the source
 code of the page) is unhelpful?  Also, if you start zope with the -D
 flag, the tracebacks will be uncommented (will show up on the page).
 
 -- 
 ethan mindlace fremen
 Zopatista Community Liason
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




[Zope] HTML Editors that recognize DTML (was bastardized form ofXML)

2000-06-26 Thread Jeff Peterson

As promised I did some checking over the weekend.

As for Windows editors, Homesite WILL let you create tags,
it works quite well actually.  One draw back (or a blessing, 
depending on your view) would be that it would force you to 
do dtml attributes long form, for example:

dtml-var name="foo" rather than dtml-var foo

the nice thing is that you would have a nice drop down menu 
of choices.  It supports syntax highlighting and has a ton of
helpful features.  In addition, if you gather enough Homesite 
"clue" you could also create your own wizards to accomplish 
certain tasks. 

Also for Windows there is Multi-Edit.  Not as powerful as Homesite
as an HTML, CFML, ad infinitum editor(well, maybe as powerful but 
it has all sorts of toolbars and buttons to push...annoying), but 
it has support for a tremendous number of legitimate programming 
languages built in including PERL, Python, JavaScript, C/C++, Delphi, 
ad nauseam.  While you can edit all this in Homesite, Multi-Edit 
provides support for compilers, error messages, and templates for 
almost any programming language you can think of (ad nauseam, remember?).
This doesn't necessarily help with DTML but maybe it's not all you do.

Both of these are priced nicely, Homesite goes for about $100 and 
can be checked out at www.allaire.com, while Multi-Edit prices at 
around $130(online) and can be found at www.amcyber.com. 

For Linux there is a nice little editor called NEdit.  NEdit 
includes customizable syntax highlighting, spell checker, etc.  
Unfortunately I know not of whether you can create customized tags
but, I doubt it very much.  Not as nice as the Windows stuff and 
there may be better editors made for Linux but this one does 
nicely in a pinch and beats the snot out of vi.  RPM's, and source
are both available, for free of course. 

That's my $.02,

Jeff Peterson
Software Engineer
The Bridge/Befera Interactive Cablenet
  





___
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] geting the type of an object from within dtml ??? == it works

2000-06-26 Thread Chris McDonough

in an external method, would not this work?:

def getclass(self, ob):
return type(ob)

Then use the getclass fn from DTML:

 dtml-var "getclass(anobject)"



-Original Message-
From: NABETH Thierry [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 26, 2000 4:11 AM
To: '[EMAIL PROTECTED]'
Cc: 'ethan mindlace fremen'
Subject: RE: [Zope] geting the type of an object from within dtml ???
== it works


Hello, 
 dtml-var "meta_type" works. 
Yes, it display the correct meta type. Thanks. 
When I had done some tests, I forgot to set the meta_type field, 
and the system was displaying the meta type of the superclass instead. 
(which had confused me). 
Note: 
I am still not very confortable to use the "meta_type" field to get the
class name, 
and would rather have prefered to have the real class itself. (python
type function). 



Thank you again for your help. 
Thierry 
Thierry Nabeth 
Research Fellow 
INSEAD CALT (the Centre for Advanced Learning Technologies) 
http://www.insead.fr/CALT/ 


-Original Message- 
From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 26, 2000 3:43 AM 
To: Thierry Nabeth 
Cc: [EMAIL PROTECTED] 
Subject: Re: [Zope] geting the type of an object from within dtml ??? 


Thierry Nabeth wrote: 
 for instance: 
 dtml-var meta_type 
 does not return the correct type. 
dtml-var "meta_type" works.  You can also use things like 
dtml-in "objectValues(['DTML Document'])" 
hope that helps, 
-- 
ethan mindlace fremen 
Zopatista Community Liason 

___
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] problem with the beta

2000-06-26 Thread Monty Taylor

It has to do with the new security model. The supuser can no longer own 
stuff.

Monty

 Original Message 

On 6/26/00, 3:31:02 PM, frank cuzzocrea [EMAIL PROTECTED] wrote 
regarding [Zope] problem with the beta:


 i am using 2.2 Beta 2 and every time i attempt to add a new folder, or a 
dtml document, i keep having this error
 Error Type: SuperCannotOwn

 Error Value: Objects cannot be owned by the superuser

 I never got this with 2.1.6  is this an error in the 2.2 beta 2 version, 
or do u think i just have a bad copy.  i am going back to the 2.1.6 version 
till i find out

 Frank from Miami
 
___
 Visit http://www.visto.com/info, your free web-based communications 
center.
 Visto.com. Life on the Dot.


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

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




[Zope] 'string' object has no attribute 'propertysheets'

2000-06-26 Thread Webmaster

Could anyone clue me into what I'm doing wrong here. I have searched the
archives and can't find the answer.

Thanks!!

Error Type: AttributeError
Error Value: 'string' object has no attribute 'propertysheets'

!--
Traceback (innermost last):
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/Zope220/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/Zope220/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: doEdit_html)
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: doEdit_html)
  File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in
__call__
(Object: doEdit_html)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: doEdit_html)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 333,
in eval
(Object:
_['goLiveDate'].propertysheets.eMed_information.manage_changeProperties({
   'eMed_title'   : REQUEST.form['new_eMed_title'],
   'eMed_memVerse': REQUEST.form['new_eMed_memVerse'],
   'eMed_summary' : REQUEST.form['new_eMed_summary'],
   'eMed_text': REQUEST.form['new_eMed_text'],
   'eMed_DateMod' : REQUEST.form['new_eMed_DateMod']
   }))
(Info: REQUEST)
  File lt;stringgt;, line 0, in ?
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 129,
in careful_getattr
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 )




RE: [Zope] Moving Z Classes around

2000-06-26 Thread Brian Lloyd

 Having discovered that [my] Z Class is in the wrong product, 
 I'd like to
 move it elsewhere.  The obvious thing to do is to use Cut + Paste;
 unfortunately, I get:
 
   The item my-item does not support this operation.
 
 (The function manage_copyObjects is not happy!)
 
 I can't think of another way to move my classes without 
 rebuilding them --
 any advice?

Michael,

I agree that this is a pain, but it is a fact of life for now 
in ZClass development. ZClasses have a different relationship 
with other Zope objects than normal, in that other instances 
in the object space refer to them as their class. That makes 
picking them up and moving them something not to be done 
lightly. In the Python world, this would be equivalent to 
pickling a bunch of objects and then moving the class for 
those objects to a different package. Without some explicit 
action, all of the pickled objects would break because they 
would be referencing a class that is no longer there. 

It's the same deal with ZClasses. It may be possible in the 
future to move ZClasses around, but something will still need 
to be done about existing instances created from a class that 
moves. So far we have avoided the hard thinking required to 
solve that :^) This would be a good candidate for a proposal 
in the forthcoming ZopeDev area on Zope.org. More on that 
later...

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://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] Zope 2.2.0b2 - PythonMethods

2000-06-26 Thread Brian Lloyd

I remember DC submitted PythonMethods into CVS, but I cannot find
 PythonMethod in 2.2.0b2. Are PythonMethods for later 
 versions? Or it will
 be separated Product forever?
 
I have downloaded latest PythonMethods and successfully 
 installed the
 component, but shouldn't it be in distribution? Or I just 
 don't understand
 something?

Oleg, 

There is still some work that we want to do on PythonMethods 
to get them where we want them for inclusion in Zope -- we 
need to get them well integrated with the Zope security 
policies and roll in some other work that will make all 
method-like objects behave in more consistent manner. I'm 
hoping that this will happen relatively soon (though I can't 
give you a date).

Until then, there's no problem using the latest distribution. 


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://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] Moving Z Classes around

2000-06-26 Thread R. David Murray

On Mon, 26 Jun 2000, Brian Lloyd wrote:
 future to move ZClasses around, but something will still need 
 to be done about existing instances created from a class that 
 moves. So far we have avoided the hard thinking required to 

If there are no instances to worry about, could one export the
ZClass and reimport it to the new location?

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




[Zope] R: [Zope] How-to Bypass DTML Code?

2000-06-26 Thread Marcel Preda


- Original Message - 
From: Nestor A. Diaz L. [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 26, 2000 7:47 PM
Subject: [Zope] How-to Bypass DTML Code?


 Hi, anyone know how to bypass the dtml-code, that's because i'm writing a
 howto with showing the use of some "dtml-tags" so it tries to interpreting
 it rather than only showing them.


One way:

Replace ` ' with `lt;'
and '' with 'gt;'

HTML
BODY
lt;dtml-var aVargt;
BODY
/HTML

PM


___
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] Generating products that perform a smart clone of a mastersite?

2000-06-26 Thread R. David Murray

On Mon, 26 Jun 2000, [iso-8859-1] Hamish Lawson wrote:
 What I think I need to do is to develop a facility that makes a 
 tutor's site into a product. Instantiating such a generated product 
 should make a smart clone of the master site, smart in the sense that 
 only active objects are actually cloned, but static files are shared 
 among all instances of the site. I suspect that ZClasses might be 
 involved to achieve this, but are there any issues with the fact that 
 a master site could contain folders? Furthermore I'd like a tutor to 
 be able to visit their productised site to update it, without seeing 
 a lot of alien stuff; changes to the master site should be reflected 
 in all instances of the site.

You've got a couple of problems, given the way ZClasses and Python
products currently work.  Either on one of them would allow you
to set up the static pages in a shared, updateable way; the catch
comes in how the updates get done.  For changes to be reflected in
a python product, you'd have to give the faculty member the ability
to change files in the server filesystem hierarchy.  This is problematic.
With ZClasses you can use the Zope security support to control who
updates what.  However, currently ZClasses can only go in the
Control_Panel/Products folder.  This means that all tutors will see
the products/classes used by all other tutors, which you say you wish
to avoid.

I think the best solution to this would be if you could have ZClasses
stored in a mountable storage.  Then you could have one storage per
tutor.  I don't think that is currently supported, though.

Another approach would be to have a separate Zope instance per
tutor.  This has the disadvantage of making code shared between
tutors harder to maintain.  If *that* code is in a python
product, though, you could use the INSTANCE_HOME support to have
the python product code shared between all the instances.

In short, I do think you are on the right track, but you've got
some hurdles to get over to achieve exactly what you want.

--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] How-to Bypass DTML Code?

2000-06-26 Thread Dan Rusch

I think the correct syntax is (at least for my my install of zope):

lt;dtml-var foogt;  -- this rendersdtml-var foo

not :

gt;dtml-var foolt;  -- where as this renders   dtml-var foo

Dan


Chris McDonough wrote:

 Use

 gt;dtml-var foolt;

 instead of

 dtml-var foo

  -Original Message-
  From: Nestor A. Diaz L. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 26, 2000 1:48 PM
  Cc: '[EMAIL PROTECTED]'
  Subject: [Zope] How-to Bypass DTML Code?
 
 
  Hi, anyone know how to bypass the dtml-code, that's because
  i'm writing a
  howto with showing the use of some "dtml-tags" so it tries to
  interpreting
  it rather than only showing them.
 
  Thank you,
 
  Nestor A. Diaz L.
  [EMAIL PROTECTED]
  PGP Public Key  `wget http://www.tiendalinux.com/pgp/nestor.pgp`
 
  
  Visita  http://www.tiendalinux.com  la tienda virtual de
Productos y Servicios para los usuarios de Linux en Colombia
   * Aprobado Credibanco VISA **
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 

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


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




Re: [Zope] How-to Bypass DTML Code?

2000-06-26 Thread Hannu Krosing

"Nestor A. Diaz L." wrote:
 
 Hi, anyone know how to bypass the dtml-code, that's because i'm writing a
 howto with showing the use of some "dtml-tags" so it tries to interpreting
 it rather than only showing them.


try this

pre
dtml-var "_.str(your_code_sample"
pre

---
Hannu

___
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] Products vs. ZClasses- Design Question

2000-06-26 Thread Maik Roeder

Hi Jimmie !

Jimmie Houchin wrote:
  This sounds weird ! Well, every page on the ZDP site has a Maintainer,
  and that is displayed on the top right. If you click on that link,
  you get to the member page, where the email exists.
 
 I go back again to make sure of what I saw. In the upper right side, all
 that is there is 'Contributed by maik'. It is not a link. It goes
 neither to a member page of the maintainer nor provides a mailto: link.
 This is in Win95 Netscape. When I view the source I didn't anything
 there but text in a table.

This is a bug specific to the Portal, which has a folder called members,
and unfortunately, I am using just this name in the DTML script that
fetches the information out of the members folder that holds the actual
member information.

dtml-with members
dtml-if "The_Maintainer in objectIds(['Member'])"
Maintainer: A HREF="/members/dtml-var The_Maintainer/"
dtml-var The_Maintainer/A
dtml-else
Contributed by dtml-var The_Maintainer
/dtml-if
/dtml-with
 
I have changed the portal name to zdpmembers, and now it works again.

  You also have to see that the topics in the ZDP-Portal
  are normally not related in a way like an article is,
  so I have not added a navigation, even though I had considered it.
 
 I don't think it is a problem for unrelated content or articles. It also
 doesn't necessarily have to be site wide thing. In this particular
 instance all three were related to each other and referenced each other
 via the pros and cons.

In this case I will have to make explicit links to the related content,
like you propose. It is worth the extra effort.
 
 If you think date is not a good indicator of currency, then howabout
 having Zope versions with which it is accurate for ?

The date will play a role when the changes history of documents
is implemented. 

 ie: Works with Zope
 2.x or Zope 2.2.x, etc. or even a range 2.0-2.1.x. This would allow for
 changes in Zope which break certain things. For example any information
 on the security model changes between 2.1.x and 2.2.x.
 Doing it this way makes it less date dependent. It also allows for
 people who are using older versions of Zope to understand if it is
 relevant for them.

In my opinion, things like that should be noted in the text, or in
the changes history (Something like "adopted to Zope 2.2 security model
on 22nd of July 2000). 
 
  I have noticed that product as well, but didn't find the
  time to check it out (There is no info on the product
  page).
 
 I haven't either. Just thought it seemed relevant to the topic.

It is relevant, and the portal is supposed to spare you the time
to check out everything on your own. If someone has checked out
this product, please add your knowledge to the Portal.
 
  Maybe you can help by adding a draft to the relevant topics,
  that can replace the description that exists ?
 
 Not at this time, sorry.

No problem. Thanks for your comments.

Best regards,

Maik Röder

-- 
Open Source is "about being able to work together with people you've
never  met, on projects that  are in  a constant state  of flux,  on 
a time schedule  that would  cause a  hummingbird's  head to  spin."
Paul Ferris, http://www.linuxplanet.com/linuxplanet/opinions/1593/1/

___
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] parsing strings in DTML

2000-06-26 Thread Timothy Wilson

Hi everyone,

I'm working on what should be a simple problem.

I pulling an address out of an ldap query and the data is in the form of a
$-separated string. Example:

101 Main St.$Anytown$MN$12345

Please correct me if I'm wrong, but I could probably do dtml-call
"REQUEST.set('parsed_address', _.string.join(old_address, '$')" except for
the fact that getting "old_address" (the $-separated one) would require its
own dtml-var old_address statement. I can't nest dtmls so how to I
combine these?

Second question... Once I've got my string parsed into a list called
"parsed_string", what's the syntax for accessing certain elements of the
list?

Thanks.

-Tim

P.S. Maybe I should do this in an external or python method, but I thought
it would be overkill for a single operation like this. Am I wrong?

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




[Zope] Cache X MySQL

2000-06-26 Thread Rogerio Atem de Carvalho

Dear coleagues,

I decided to use Zope as an Interface to maintain and 
search a touristic information database. All text is 
stored in MySQL tables and images will be stored 
outside the database, for cache reasons (I will keep 
only the path as TEXT columns in MySQL tables). My 
question is: for me to have an efficient cache system, 
Am I supposed to store the images as Zope Image Objects 
or can I store them outside Zope, in normal (Linux) 
folders? 
If I store them poutside Zope, is Zope able to cache 
them???

regrads,

Rogerio Atem
---
E-mail enviado pelo servidor do CEFETCampos

___
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] parsing strings in DTML

2000-06-26 Thread R. David Murray

On Mon, 26 Jun 2000, Timothy Wilson wrote:
 "REQUEST.set('parsed_address', _.string.join(old_address, '$')" except for

This is exactly correct.  Inside the quotes you are in python, and
so you can reference variables from the namespace by their unadorned name.

 Second question... Once I've got my string parsed into a list called
 "parsed_string", what's the syntax for accessing certain elements of the
 list?

parsed_string[0], parsed_string[1], ...  (inside an expr, of course).

--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] parsing strings in DTML

2000-06-26 Thread Rik Hoekstra



I'm working on what should be a simple problem.

I pulling an address out of an ldap query and the data is in the form of a
$-separated string. Example:

101 Main St.$Anytown$MN$12345

Please correct me if I'm wrong, but I could probably do dtml-call
"REQUEST.set('parsed_address', _.string.join(old_address, '$')" except for
the fact that getting "old_address" (the $-separated one) would require its
own dtml-var old_address statement. I can't nest dtmls so how to I
combine these?


I'm not sure I get you right.
try something like (untested):

dtml-call "REQUEST.set('parse_address', _string.split(old_address, '$')"

for parsing the string


Second question... Once I've got my string parsed into a list called
"parsed_string", what's the syntax for accessing certain elements of the
list?

By slicing:

dtml-call "parsed_string[0]"

gets you the first element parsed_string[1] the second etc

parsed_string[1:] is everything after the second ;-) element of the list

parsed_string[:5] is everything up to element 6

parsed_string[1:5]  is everything from element 2 to element 6

parsed_string[-1] is the last element of the list.

If you want to know more, you should probably look at the Python docs, as
this is Python stuff.


P.S. Maybe I should do this in an external or python method, but I thought
it would be overkill for a single operation like this. Am I wrong?


No, I think you're right, but others may disagree.


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] parsing strings in DTML

2000-06-26 Thread Timothy Wilson

On Mon, 26 Jun 2000, Rik Hoekstra wrote:

 Please correct me if I'm wrong, but I could probably do dtml-call
 "REQUEST.set('parsed_address', _.string.join(old_address, '$')" except for
 the fact that getting "old_address" (the $-separated one) would require its
 own dtml-var old_address statement. I can't nest dtmls so how to I
 combine these?
 
 I'm not sure I get you right.
 try something like (untested):
 
 dtml-call "REQUEST.set('parse_address', _string.split(old_address, '$')"

You're right, of course, about the "split." A slip of the typing fingers.
:-)

 If you want to know more, you should probably look at the Python docs, as
 this is Python stuff.

Doing this in Python is easy. That's not the problem. I've been struggling
with all of the RESPONSE.set, REQUEST.set, etc. stuff. I can't keep it all
straight. Adding the dtml layer to this really adds to the comlexity of it
all. I just need more Zen. :-)

Thanks for the help.

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




[Zope] CASE tools and Zope

2000-06-26 Thread Alexander Chelnokov

Hello All,
A newbie question. Is there any hints and tricks how to establish
connection between CASE like ERwin and Zope? We plan to develop a
a medical record system based on SQL database so data scheme is
essential. And all business rules will be held in Zope. SQL tables as
I realize should be mapped to ZClasses - if there is an entity
"Patient Personal Data" with columns Name, Gender, Date_of_birth,
Street_address and so on, then ZClasses with appropriate properties
are to be created. At the moment ER model can only be viewed and no
more while working in Zope. Is it the only use of data modelling tools
for Zope development? Or there is some other techniques of such
application development one should be aware of? THX in advance.

Best regards,
Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
7, Bankovsky str. Ekaterinburg 620014 Russia
ICQ: 25640913  



___
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] parsing strings in DTML

2000-06-26 Thread Timothy Wilson

On Mon, 26 Jun 2000, Rik Hoekstra wrote:

 try something like (untested):
 
 dtml-call "REQUEST.set('parse_address', _string.split(old_address, '$')"
 
 for parsing the string

But what if "parse_address" comes from a SQL query? Like this:

dtml-in qry_contactInfo
  dtml-call "REQUEST.set(dtml-var parse_address, ... etc.

Don't I run into trouble with nested DTML here?

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




[Zope] Zope 2.2.0 beta 3 released...

2000-06-26 Thread Brian Lloyd

Hi all,

Zope 2.2.0 beta 3 has been released - you can download it from
Zope.org:

http://www.zope.org/Products/Zope/2.2.0b3/

This release resolves the "len of unsized object" error some 
folks were seeing with their SQL methods as well as an issue 
with broken installed products causing a recursion problem 
instead of appearing as normal "broken" objects. I'm hopeful 
that this will be the last 2.2 beta, assuming that no other 
real problems arise that need fixes tested before final.

For more information, see the CHANGES.txt file for the release:

http://www.zope.org/Products/Zope/2.2.0b3/CHANGES.txt

If you are still using a 2.1.x version of Zope, be sure to 
see the document upgrading to Zope 2.2:

http://www.zope.org/Products/Zope/2.2.0b3/upgrading_to_220

for information on the recent changes to the Zope security model 
and other upgrade information.



Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://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] parsing strings in DTML

2000-06-26 Thread Bill Anderson

Timothy Wilson wrote:
 
 On Mon, 26 Jun 2000, Rik Hoekstra wrote:
 
  try something like (untested):
 
  dtml-call "REQUEST.set('parse_address', _string.split(old_address, '$')"
 
  for parsing the string
 
 But what if "parse_address" comes from a SQL query? Like this:
 
 dtml-in qry_contactInfo
   dtml-call "REQUEST.set(dtml-var parse_address, ... etc.
 
 Don't I run into trouble with nested DTML here?


Untested, but should be correct:

 dtml-in qry_contactInfo
   dtml-call "REQUEST.set(_['parse_address'], ... etc.

___
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] parsing strings in DTML

2000-06-26 Thread Jeff K. Hoffman

On Mon, 26 Jun 2000, Timothy Wilson wrote:

 On Mon, 26 Jun 2000, Rik Hoekstra wrote:
 
  try something like (untested):
  
  dtml-call "REQUEST.set('parse_address', _string.split(old_address, '$')"
  
  for parsing the string
 
 But what if "parse_address" comes from a SQL query? Like this:
 
 dtml-in qry_contactInfo
   dtml-call "REQUEST.set(dtml-var parse_address, ... etc.
 
 Don't I run into trouble with nested DTML here?

You should never "nest" DTML like you are suggesting. It won't work.

Variables set through REQUEST.set are immediately accessable in DTML
expressions after it, i.e.:

  dtml-call expr="REQUEST.set('i', 0)"
  dtml-var i
  dtml-call expr="REQUEST.set('i', i + 1)"
  dtml-var i

Notice all I did was "i + 1", not "dtml-var i + 1". You simply reference
it, as you would in python.

 -Tim

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] HappySession-0.1.1 available

2000-06-26 Thread Hung Jung Lu

This release fixes a problem with erasing cookie of expired sessions on the 
Linux platform. Thanks to Felipe Alvarez for pointing out the problem to me.
HappySession is an easy-to-use RAM-based session management product. It can 
be found at:

http://www.zope.org/Members/hungjunglu/Products/HappySession/a


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] ZOracleDA

2000-06-26 Thread Kiran Jonnalagadda

Hi,

I'm trying to install ZOracleDA. I've managed to get DCOracle to build,
but the test fails with this traceback:

-
[root@balrog src]# python DCOracle_test.py 
Traceback (innermost last):
  File "DCOracle_test.py", line 1, in ?
import Buffer, oci_, sys
ImportError: /u01/app/oracle/product/8.1.5/lib/libordvir8.so: undefined
symbol: __pure_virtual
-

I'm running Zope 2.1.6 with Python 1.5.2 on Linux. DCOracle and
ZOracleDA are both the stab;e releases. Oracle is 8.1.5 (needed the
Setup file from this list).

I added -lordvir8 a couple of times extra to Setup to see if this
problem went away, but it wouldn't.

nm on libordvir8.so says that it contains the __pure_virtual symbol.

Does anyone know how to get around this?

-- 

Kiran Jonnalagadda
http://lunateks.com

baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/';
sync; sync; sleep 15; done

___
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] Stupid question of the day

2000-06-26 Thread Andy McKay

Thank you.

- Original Message - 
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 23, 2000 3:07 PM
Subject: Re: [Zope] Stupid question of the day


 Andy McKay writes:
   How do I find the size of the results returned by the catalog?
 dtml-let results=Catalog()
 dtml-var "_.len(results)" -- the results' length --
 /dtml-let
 
 
 Dieter
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 


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




Re: [Zope] Can not add Zope Tutorial with 2.2: Solved

2000-06-26 Thread Jochen Knuth

Hi Brian,

Jochen Knuth wrote:
in preparation for the LinuxTag 2000 i tried to add the Zope
Tutorial to
Zope 2.2.0b2 (and fresh CVS versions of the last three days) but i get
the following error (i think it's the same error as Oleg mentioned):
   
Error Type: TypeError
Error Value: ('len() of unsized object', class
Shared.DC.ZRDB.DA.SQL at
85fb7e0, None)
  

the last updates for DA.py and/or TutorialTopic.py  have solved the
problem for me.

One "aesthetic" problem i see now: The order of the Tutorial lessons in
the "menu" frame is wrong. 

Zope Tutorial Glossary 

Welcome to the Zope Tutorial 

Lesson 9. Elvis, Up Close and Personal 

Lesson 10. So You've Seen Elvis 

Lesson 11. The Elvis Files 

Congratulations 

Lesson 1. "Elvis Lives" Home Page

Lesson 2. Going to Graceland 

Lesson 3. Elvis's Favorite Foods 

Lesson 4. Site Contact Information 

Lesson 5. Recent Elvis Sightings 

Lesson 6. Recent Elvis Sightings, cont. 

Lesson 7. Elvis Photo Archive 

Lesson 8. Elvis Photo Archive, cont. 

Ciao,
Jochen

___
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: HappySession-0.1.1 available

2000-06-26 Thread Hung Jung Lu

Sorry, the URL should be:

http://www.zope.org/Members/hungjunglu/Products/HappySession


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] (no subject)

2000-06-26 Thread Dieter Maurer

Jay, Dylan writes:
  ...
  Perhaps another example will prove its uglyness.
  
   dtml-if "REQUEST.has_key('some_value') and this().has_key(some_value) and
  _[some_value] == 'a property value' and
  AUTHENTICATED_USER.has_role('Manager')"
a href="a_url"
   /dtml-if
link text
   dtml-if "REQUEST.has_key('some_value') and this().has_key(some_value) and
  _[some_value] == 'a property value' and
  AUTHENTICATED_USER.has_role('Manager')"
 /a
   dtml-else
 (no link available)
   /dtml-if
  
  
  or
  
  dtml-if "REQUEST.has_key('some_value') and this().has_key(some_value) and
  _[some_value] == 'a property value' and
  AUTHENTICATED_USER.has_role('Manager')"
a href="a_url"
  dtml-always
link text
  dtml-else
(no link currently available)
  dtml-then
/a
  /dtml-if
  
  Now which looks cleaner?
You could use "dtml-let" to avoid the (admittedly) ugly
repetition of the condition.


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] (no subject)

2000-06-26 Thread Jay, Dylan

 -Original Message-
 From: Marco Mariani [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 26, 2000 6:39 PM
 To: Jay, Dylan
 Subject: Re: [Zope] (no subject)
 
 
 On Mon, Jun 26, 2000 at 02:56:39PM +1000, Jay, Dylan wrote:
 
   dtml-if X
  a href="a_url"
  link text
  /a
   dtml-else
  link text
  (no link...)
   /dtml-if
  
  yes but the repitition of "link text" could be a real pain 
 if "link_text" is
  big. Repitition is always a maintance nightmare.
 
 So is dtml-always.

No thats not the same thing. If I have a complex expression for X and it
needs to be changed then it will have to be changed in two places. If I
forget to update it in both places I would create a bug. My proposal
elegently avoids this problem.


 
   dtml-var "['A HREF=',''][not X]"
  link text
   dtml-var "['/A','(no link...)'][not X]"
  
  I've no idea about this syntax. Does it work?
 
 Yes it does. "not X" is the array index, 0 or 1.

oic. Thats nasty. Actually you can just write that dtml-var "not X and 'A
HREF='" which is a bit cleaner.

 
 
 -- 
 "This company has performed an illegal operation and will be 
 shut down.
  If the problem persists, contact your vendor or appeal to a 
 higher court."
  - Signal11 on slashdot
 

___
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] (no subject)

2000-06-26 Thread Jay, Dylan

 -Original Message-
 From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 27, 2000 3:31 AM
 To: [EMAIL PROTECTED]
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: [Zope] (no subject)
 
 
 Jay, Dylan writes:
   ...
   Perhaps another example will prove its uglyness.
   
dtml-if "REQUEST.has_key('some_value') and 
 this().has_key(some_value) and
   _[some_value] == 'a property value' and
   AUTHENTICATED_USER.has_role('Manager')"
 a href="a_url"
/dtml-if
 link text
dtml-if "REQUEST.has_key('some_value') and 
 this().has_key(some_value) and
   _[some_value] == 'a property value' and
   AUTHENTICATED_USER.has_role('Manager')"
  /a
dtml-else
  (no link available)
/dtml-if
   
   
   or
   
   dtml-if "REQUEST.has_key('some_value') and 
 this().has_key(some_value) and
   _[some_value] == 'a property value' and
   AUTHENTICATED_USER.has_role('Manager')"
 a href="a_url"
   dtml-always
 link text
   dtml-else
 (no link currently available)
   dtml-then
 /a
   /dtml-if
   
   Now which looks cleaner?
 You could use "dtml-let" to avoid the (admittedly) ugly
 repetition of the condition.

You could but this is something I end up doing a lot esp with the way
hyperlinks work. Syntax to help would make it cleaner. It is not to much of
a pollution of the name space as 'always' and 'then' would only be active
inside an if statement.

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




Re: [Zope] How-to Bypass DTML Code?

2000-06-26 Thread Andrew Kenneth Milton

+[ Nestor A. Diaz L. ]-
| Hi, anyone know how to bypass the dtml-code, that's because i'm writing a
| howto with showing the use of some "dtml-tags" so it tries to interpreting
| it rather than only showing them.
| 

It's easy:-

Make a method called 

printCode which contains one line:

dtml-return "CodeToPrint"

Then to display a method or a document:-

dtml-var "printCode(CodeToPrint=standard_html_header)"

Will print your standard_html_header, you will probably want

dtml-var "printCode(CodeToPrint=standard_html_header)" newline_to_br

The advantage of this, is that you can use actual methods (if you're doing
a tutorial). So when you change the method, your documentation updates itself.

If you just want to pass strings into printCode, you can do that too.

dtml-var "printCode(CodeToPrint='dtml-var FunnyVar')"


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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] Can't override standard_error_message on NotFound?

2000-06-26 Thread matt

I'm having some problems with standard_error_message on 2.2.0b2.  According to the 
mailing list archives I should be able to override NotFound errors (I even 
cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own 
standard_error_message in case I was missing something) but requesting a nonexistent 
object still gets me what appears to be a built-in page.

Is there something else to do?



___
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] Bizarre new problem...

2000-06-26 Thread Curtis Maloney


Green things,

I've had a site in development (almost ready to deploy) and in testing for 
some time.  I just went to go through another test run, when a previously 
working page suddenly generated the following error:

Error Type: OperationalError
Error Value: (1017, "Can't find file:
'./service/return.frm' (errno: 13)")

traceback at end of e-mail

I looked at the traceback, and it appeared to be coming from a particular SQL 
method.  I tried testing the method, same problem.  I tried another SQL 
method.  Same again.

Ok, so I looked into it further, and checked a previous install.  I can't 
find ANY *.frm files in either zope tree.

The only event to day which occurred which might have possibly corrupted 
files was when i had to reset due to Netscape (eternal be their pain) chewed 
up all my memory (AGAIN!) and I had to resort to power cycling the computer, 
since it still hadn't responded to my 'kill this annoyingly stupid app' 
keystrokes by the time i'd got back from lunch.

However, on bootup, the fsck did not find any problems on the disc, so I felt 
reasonably safe.


Any ideas?  PLEASE?

Installation:

  RedHat 6.1
  Zope 2.1.6 (from src)

Have a better one,
Curtis.


Traceback (innermost last):
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, 
in publish_module
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, 
in publish
  File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
(Object: sqlGetRADetails)
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, 
in publish
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
(Object: manage_test)
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, 
in call_object
(Object: manage_test)
  File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 331, 
in manage_test
(Object: sqlGetRADetails)
  File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 312, 
in manage_test
(Object: sqlGetRADetails)
  File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 430, 
in __call__
(Object: sqlGetRADetails)
  File /usr/local/Zope-2.1.6-src/lib/python/Products/ZMySQLDA/db.py, line 
173, in query
OperationalError: (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] Bizarre new problem...

2000-06-26 Thread Chris McDonough

I suspect this is coming from MySQLdb.  From the Python DB-API spec:

OperationalError 
 Exception raised for errors that are related to the database's
 operation and not necessarily under the control of the
 programmer, e.g. an unexpected disconnect occurs, the data
 source name is not found, a transaction could not be processed,
 a memory allocation error occurred during processing, etc. It must
 be a subclass of DatabaseError. 

.frm files seem to be table data containers for MySQL.  You should try
operating on your database outside of Zope to see if you can reproduce
the problem.

Curtis Maloney wrote:
 
 Green things,
 
 I've had a site in development (almost ready to deploy) and in testing for
 some time.  I just went to go through another test run, when a previously
 working page suddenly generated the following error:
 
 Error Type: OperationalError
 Error Value: (1017, "Can't find file:
 './service/return.frm' (errno: 13)")
 
 traceback at end of e-mail
 
 I looked at the traceback, and it appeared to be coming from a particular SQL
 method.  I tried testing the method, same problem.  I tried another SQL
 method.  Same again.
 
 Ok, so I looked into it further, and checked a previous install.  I can't
 find ANY *.frm files in either zope tree.
 
 The only event to day which occurred which might have possibly corrupted
 files was when i had to reset due to Netscape (eternal be their pain) chewed
 up all my memory (AGAIN!) and I had to resort to power cycling the computer,
 since it still hadn't responded to my 'kill this annoyingly stupid app'
 keystrokes by the time i'd got back from lunch.
 
 However, on bootup, the fsck did not find any problems on the disc, so I felt
 reasonably safe.
 
 Any ideas?  PLEASE?
 
 Installation:
 
   RedHat 6.1
   Zope 2.1.6 (from src)
 
 Have a better one,
 Curtis.
 
 Traceback (innermost last):
   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214,
 in publish_module
   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179,
 in publish
   File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in
 zpublisher_exception_hook
 (Object: sqlGetRADetails)
   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165,
 in publish
   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: manage_test)
   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102,
 in call_object
 (Object: manage_test)
   File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 331,
 in manage_test
 (Object: sqlGetRADetails)
   File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 312,
 in manage_test
 (Object: sqlGetRADetails)
   File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 430,
 in __call__
 (Object: sqlGetRADetails)
   File /usr/local/Zope-2.1.6-src/lib/python/Products/ZMySQLDA/db.py, line
 173, in query
 OperationalError: (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 )

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