Re: [Zope-dev] Re: [Zope] Optimization and speed

2000-07-17 Thread Toby Dickenson

On Sat, 15 Jul 2000 13:19:33 -0700, Stephan Richter [EMAIL PROTECTED]
wrote:

I take that back in the previous mail to Steve about the large table. We 
have one and I split the header from the rest as you suggested. But since 
it is not streaming the information, it will still pop up all at once.

What you describe is true: Zope will not start sending the page until
it is finished calculating. If one bit of your page takes a long time
to calculate then the user will see *nothing* until that is complete.

However, I don't think this limitation is affecting you. You say the
page displays quickly when viewed over DSL - the connection bandwidth
doesnt affect how long the page takes to calculate! A modem user will
receive the first few bytes equally quickly - it just takes them
longer the receive the rest.



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 )




[Zope-dev] Multi-homed objects?

2000-07-17 Thread Chris Withers

Is there any reason why an object cannot be contained in more than one
Folder in the ZODB?

Apparently what I'm talking about is very similar to hard linking in
UNIX...

I can't think of any reasons why this would be bad but I can't think how
to implement an 'Add hard link to this object' function...

Ideas/comments?

cheers,

Chris

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




[Zope-dev] Acquisition/cDocumentTemplate bug

2000-07-17 Thread Dieter Maurer

Recently, several posters have reported strange "AttributeError __call__"
exceptions.

The most precise was a report by Oleg Broytmann:
  
   /index_html  DTML Document
  dtml-var standard_html_header
   /standard_html_headerDTML Method
  dtml-with sub/dtml-with
   /sub Folder

  When he calls "/sub/index_html", he gets this
  "AttributeError __call__" for "sub".

  He observed the problem on Zope 2.1.4 and 2.2a4.


I partially analysed this problem report under Zope 2.1.6:

  In "MM_cget", "sub" is retrieved as an "ImplicitAcquirerWrapper"
  (correct). 

  In line 373, however, "PyCallable_Check(sub)" returned "1",
  which is probably wrong, because a folder is not callable.
  The "ImplicitAcquirerWrapper"'s "tp_call" mislead
"PyCallable_Check".

  In line 376, the attribute "py_isDocTemp" is looked up
  and succeeds. Therefore, the folder "sub" is seen as
  a Document Template, which definitely is not true.
  The following call fails because it arrives at CallMethodO in
  "Acquisition.c:119" which looks for a non-excisting "__call__" method.



Dieter
  


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




Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Oleg Broytmann

On Mon, 17 Jul 2000, Chris Withers wrote:
 Is there any reason why an object cannot be contained in more than one
 Folder in the ZODB?
 
 Apparently what I'm talking about is very similar to hard linking in
 UNIX...

   Hardlinks are prohibited on directories; and 5 minutes ago you said all
objects are foldersih :)

   Hardlinks are prohibited on directories because it'd cause infinite
loops on traversing.

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-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] Multi-homed objects?

2000-07-17 Thread Chris Withers

Oleg Broytmann wrote:
Hardlinks are prohibited on directories; and 5 minutes ago you said all
 objects are foldersih :)

I'm not sure if my statement applies in this situation... ;-)

Hardlinks are prohibited on directories because it'd cause infinite
 loops on traversing.

Hmm, would Python catch those already?

Obviously care would need to be taken and it might be possible to build
a loop checker into whatever creates the hard links...

cheers,

Chris

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




[Zope-dev] ZPatterns: Coad Object Models

2000-07-17 Thread Steve Alexander

Hi Folks, 

After the ZPatterns chat on Friday, it looked like a few people were
thinking of getting into Peter Coad's book "Object Models: Strategies,
patterns and applications".

I've just received my copy, and I'll be starting it later today.


I intend to use a Wiki to record my observations and thoughts about the
book, as I read it. I'd like this to be a collaborative learning thing,
so anyone else who is reading the book, or who as read it, is most
welcome to join in.

  http://www.zope.org/Members/stevea/CoadObjectModels

There's not much up there right now, as I've only read the
Acknowledgements at the front :-)

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

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




Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Shane Hathaway

Chris Withers wrote:
 
 Oleg Broytmann wrote:
 Hardlinks are prohibited on directories; and 5 minutes ago you said all
  objects are foldersih :)
 
 I'm not sure if my statement applies in this situation... ;-)
 
 Hardlinks are prohibited on directories because it'd cause infinite
  loops on traversing.
 
 Hmm, would Python catch those already?
 
 Obviously care would need to be taken and it might be possible to build
 a loop checker into whatever creates the hard links...

This could be part of a "visitor" interface I've been pondering in the
back of my mind.  It would be capable of traversing, performing an
arbitrary function, and never falling into a recursive trap.

class ObjectManager:

  ...

  def visit(self, func, visited=()):
func(self)
for id in self.objectIds():
  ob = self._getOb(id)
  if hasattr(ob, 'visit') and ob not in visited:
ob.visit(func, (ob,) + visited)

Shane

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




Re: [Zope-dev] Wstring

2000-07-17 Thread Toby Dickenson

On Mon, 17 Jul 2000 21:05:06 +0800, "Sin Hang Kin"
[EMAIL PROTECTED] wrote:

hello :

Does anyone known how to patch Zope2.2 for Wstring? 

If you mean my wstring patches that were developed for 2.1.6, you will
find some updated patches at the original location,
www.zope.org/Members/htrd/wstring 

The current patch (version 0.3) is incompatible with the previous ones
(but this time it 'feels right'. I plan to keep this interface
stable). It needs python 2.0, and uses the new built-in unicode type.


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] Multi-homed objects?

2000-07-17 Thread Chris Withers

Shane Hathaway wrote:
  Can you see any weirdities that might occur from having an object as an
  attribute of more than one object manager / folder?
 
 The recursion problem, for one.  

Hmmm, how much of Zope would need changing to use the visitor interface?

 Also, if you change the object in one
 place, it will also get changed in the other, which may not be the
 expected behavior.

Nope, that's exactly the desired and expected behaviour :-)

What about Zope's deleting machinery? The desired effect is similar to a
refcount, the object only gets deleted when all references to it have
been deleted...

 You could also do soft links like this (I bet this actually works :-)
 ):
 
 class SoftLink (SimpleItem):
   def __init__(self, path):
 self.path = path
 
   def __of__(self, parent):
 ob = self.restrictedTraverse(self.path)
 return getattr(ob, 'aq_base', ob).__of__(parent)
 
 ... but once again, changes made in one place would cause changes in
 the other.  And then there are security considerations: how should the
 security behave if two users with different roles want to access/change
 the object?

How does it work in Unix? (that seems to be a good baseline :-)

  PS: Do you know the answer to my dtml.url-; question I asked earlier?
 
 I couldn't find your question.  :-(

Urg.. it was on [EMAIL PROTECTED], sorry :-S

Basically, can you do dtml.url-/folder/object/method; yet?

cheers,

Chris

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




Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Oleg Broytmann

On Mon, 17 Jul 2000, Chris Withers wrote:
 How does it work in Unix? (that seems to be a good baseline :-)

   On UNIX symlink is not a link - it is a text file, that contains a name
of resource. The name could points to nowhere, or to resource, even to
other symlink...

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-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] Question: circumventing the full fishbowl for small changes...?

2000-07-17 Thread Brian Lloyd

   I've reviewed the introduction to the fishbowl process 
 and its description of creating a project proposal wiki 
 document and such, and the full process a project should 
 take.  However, I have 2 very small but useful additions 
 to Zope I wish to make.  Both additions are already available 
 for download on zope.org - and have been tested extensively.  

 However, the larger of the two changes is perhaps 80 lines of 
 code.  It seems cumbersome, to me at least, to go through 
 this whole process of "Inception, Elaboration, Construction, 
 and Transition" for small code snippets which are already 
 created and tested... So, my question is, could a side-line 
 process be created for the integration of already existent, 
 tested, and somewhat small, code changes?  

 snip
 
 Please keep in mind that I am not trying to be critical,
 nor am I attempting to change the fishbowl process for normal
 projects - I only wish a parallel process to exist for very
 small changes, so that the changes are not forgotten or passed
 up.

Hi Jon - 

You are correct that we need something featherweight for 
very specific features/changes. I know that it's not 
optimal, but for right now the process for things like 
this is to add a feature request (preferably w/patch) 
to the collector. 

My hope is that some of the other things going on will 
allow us to be better about getting to those things. I 
expect to still try to get the community involved in 
those small decisions (voting, etc. on the dev list). 

Hopefully that will be good enough to hold us for a 
little while - I'm open to feedback on how we might 
improve this (though for the immediate near term I 
prefer to focus the bulk of effort on working out 
kinks in the process for larger projects).




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] 2.2 annoying nit

2000-07-17 Thread Martijn Faassen

Hi there,

I see that the 2.2 still has this annoying, and seemingly completely
unnecessary minor change in the tab order:

Tabs for folder in 2.1:

Contents View Properties Import/Export Security Undo Find

Tabs for folder in 2.2:

Contents Import/Export Properties View Find Security Undo Ownership

What's the reason for this change? I'm rather used to the original
configuration; I imagine other users are too. Why is everything
reordered?

I posted this to the collector 10 days ago, but the status is still
'pending' and 2.2 was released. While of course this is a minor thing,
why make everyone relearn the interface? It's akin to switching 'file'
and 'edit' around in a GUI. :)

Regards,

Martijn



___
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] The Application object

2000-07-17 Thread Jeff K. Hoffman

Hello,

What is the easiest way for me to get ahold of the Application object at
run-time?

I am writing a Product that needs to access some things in the
Control_Panel, and need the app object to get there.

I know how to do it given a reference to an object in the ZODB
(getPhysicalRoot(), etc.), but need a way to do it given no references. I
need something like:

  import AppSingleton

  app = AppSingleton.Instance()
  app.Control_Panel.blah

--Jeff

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

2000-07-17 Thread Chris McDonough

I'm not sure I understand.  What is AppSingleton?  What does the
Instance() method do?

 -Original Message-
 From: Jeff K. Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 17, 2000 11:54 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope-dev] The Application object
 
 
 Hello,
 
 What is the easiest way for me to get ahold of the 
 Application object at
 run-time?
 
 I am writing a Product that needs to access some things in the
 Control_Panel, and need the app object to get there.
 
 I know how to do it given a reference to an object in the ZODB
 (getPhysicalRoot(), etc.), but need a way to do it given no 
 references. I
 need something like:
 
   import AppSingleton
 
   app = AppSingleton.Instance()
   app.Control_Panel.blah
 
 --Jeff
 
 ---
 Jeff K. Hoffman   704.849.0731 x108
 Chief Technology Officer  
 mailto:[EMAIL PROTECTED]
 Going Virtual, L.L.C. http://www.goingv.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 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] The Application object

2000-07-17 Thread Jeff K. Hoffman

On Mon, 17 Jul 2000, Chris McDonough wrote:

 I'm not sure I understand.  What is AppSingleton?  What does the
 Instance() method do?

Sorry I wasn't clear enough. The Singleton is a design pattern from the
Gang of Four book that fits this situation well. It is a class that is 
meant to control access to the one and only instance of a global
variable. I was just using that as a frame of reference, though; Zope has
no such class for the Application object, or I wouldn't be writing this
message.

I just need some way of getting at the one and only Application object at
run-time. Something like:

  from Globals import app
  myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
  ...

Given a reference to an object in the ZODB, I can do this via:

  app = self.getPhysicalRoot()
  myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')

But, this does not work from methods like __init__, or __setstate__, where
we do not have a physical location in the ZODB, yet.

I just need a reference to the app object. I know the answer has to be
simple, but I can't find it.

--Jeff

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

2000-07-17 Thread Chris McDonough

 Sorry I wasn't clear enough. The Singleton is a design 
 pattern from the
 Gang of Four book that fits this situation well. It is a 
 class that is 
 meant to control access to the one and only instance of a global
 variable. I was just using that as a frame of reference, 
 though; Zope has
 no such class for the Application object, or I wouldn't be 
 writing this
 message.

Oh, ok, sorry, hard to tell intent from actual code.  :-)

 
 I just need some way of getting at the one and only 
 Application object at
 run-time. Something like:
 
   from Globals import app
   myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
   ...
 
 Given a reference to an object in the ZODB, I can do this via:
 
   app = self.getPhysicalRoot()
   myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
 
 But, this does not work from methods like __init__, or 
 __setstate__, where
 we do not have a physical location in the ZODB, yet.

Ah, I see the problem.

I'm afraid I don't know the answer.

I generally use the manage_afterAdd and manage_beforeDelete methods to
do things like this.

I suppose you could pass the root object into the constructor.
__setstate__... well.  Err...

Anybody else?

___
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] The Application object

2000-07-17 Thread Shane Hathaway

Chris McDonough wrote:
 
  Sorry I wasn't clear enough. The Singleton is a design
  pattern from the
  Gang of Four book that fits this situation well. It is a
  class that is
  meant to control access to the one and only instance of a global
  variable. I was just using that as a frame of reference,
  though; Zope has
  no such class for the Application object, or I wouldn't be
  writing this
  message.
 
 Oh, ok, sorry, hard to tell intent from actual code.  :-)
 
 
  I just need some way of getting at the one and only
  Application object at
  run-time. Something like:
 
from Globals import app
myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
...
 
  Given a reference to an object in the ZODB, I can do this via:
 
app = self.getPhysicalRoot()
myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
 
  But, this does not work from methods like __init__, or
  __setstate__, where
  we do not have a physical location in the ZODB, yet.
 
 Ah, I see the problem.
 
 I'm afraid I don't know the answer.
 
 I generally use the manage_afterAdd and manage_beforeDelete methods to
 do things like this.
 
 I suppose you could pass the root object into the constructor.
 __setstate__... well.  Err...
 
 Anybody else?

The way to get the root application object is to open a connection to
the ZODB and get the 'Application' object from the list of root
objects.  There is an easy shortcut:

import Zope
app = Zope.app()

app now refers to a *copy* of the root Application object.  When you're
done modifying it and its descendants you have to commit or abort the
transaction.

get_transaction().commit()  (or abort())

This gives you all kinds of benefits like undo and elimination of
threading conflicts.  You *must* remember to close the connection:

app._p_jar.close()

Shane

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




Re: [Zope-dev] The Application object

2000-07-17 Thread Jeff K. Hoffman

On Mon, 17 Jul 2000, Shane Hathaway wrote:

 The way to get the root application object is to open a connection to
 the ZODB and get the 'Application' object from the list of root
 objects.  There is an easy shortcut:
 
 import Zope
 app = Zope.app()
 
 app now refers to a *copy* of the root Application object.

Yeehaw, that worked! I was so close. :-)

 When you're done modifying it and its descendants you have to commit or
 abort the transaction.

[snip]

Do I need to commit or abort even if I don't make changes to the
application object? The only thing I need it for is to get to the
Control_Panel; I am instantiating ZClass instances in the constructor of a
Python class, i.e.:

class MyClass:

  def __init__(self, id, title=''):
  import Zope
  app = Zope.app()

  ob = app.Control_Panel.Products.MyProduct.MyZClass('newId')
  ob.id = 'newId'

  self._setObject('newId', ob)

  # Do I need a get_transaction().abort() here? Will that not abort
  # the wrong transaction?

  app._p_jar.close()

  ...

 This gives you all kinds of benefits like undo and elimination of
 threading conflicts.

[snip]

Good stuff. Thanks, Shane.

 Shane

--Jeff

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

2000-07-17 Thread Chris McDonough

So it's kosher then to reimport the Zope module and use app() in a
constructor method, Shane?  I was always afraid it would do something
horrible.

 -Original Message-
 From: Jeff K. Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 17, 2000 1:11 PM
 To: Shane Hathaway
 Cc: Chris McDonough; 'Jeff K. Hoffman'; [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] The Application object
 
 
 On Mon, 17 Jul 2000, Shane Hathaway wrote:
 
  The way to get the root application object is to open a 
 connection to
  the ZODB and get the 'Application' object from the list of root
  objects.  There is an easy shortcut:
  
  import Zope
  app = Zope.app()
  
  app now refers to a *copy* of the root Application object.
 
 Yeehaw, that worked! I was so close. :-)
 
  When you're done modifying it and its descendants you have 
 to commit or
  abort the transaction.
 
 [snip]
 
 Do I need to commit or abort even if I don't make changes to the
 application object? The only thing I need it for is to get to the
 Control_Panel; I am instantiating ZClass instances in the 
 constructor of a
 Python class, i.e.:
 
 class MyClass:
 
   def __init__(self, id, title=''):
   import Zope
   app = Zope.app()
 
   ob = app.Control_Panel.Products.MyProduct.MyZClass('newId')
   ob.id = 'newId'
 
   self._setObject('newId', ob)
 
   # Do I need a get_transaction().abort() here? Will that 
 not abort
   # the wrong transaction?
 
   app._p_jar.close()
 
   ...
 
  This gives you all kinds of benefits like undo and elimination of
  threading conflicts.
 
 [snip]
 
 Good stuff. Thanks, Shane.
 
  Shane
 
 --Jeff
 
 ---
 Jeff K. Hoffman   704.849.0731 x108
 Chief Technology Officer  
mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] The Application object

2000-07-17 Thread Chris McDonough

How about a class attribute?

class MyClass:

myAttr2 = 'Default'

def getMyAttr1(self):
return self.myAttr1

def getMyAttr2(self):
return self.myAttr2

If myAttr2 needs to be a ZClass instance, just grab it inside the class.

 -Original Message-
 From: Jeff K. Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 17, 2000 2:44 PM
 To: Chris McDonough
 Cc: 'Jeff K. Hoffman'; Shane Hathaway; [EMAIL PROTECTED]
 Subject: RE: [Zope-dev] The Application object
 
 
 On Mon, 17 Jul 2000, Chris McDonough wrote:
 
  Jeff, what exactly do you need to do with setstate?  can 
 you provide an
  example?
 
 I am simply trying to "upgrade" a persistent instance of a 
 Python class.
 For instance:
 
   class MyClass:
 
   def __init__(self, id, title=''):
   self.myAttr1 = 'Value 1'
 
   def getMyAttr1(self):
   return self.myAttr1
 
 Imagine that I use the class, as defined above, for a while, then
 decide I need to modify it as follows:
 
   class MyClass:
  
   def __init__(self, id, title=''):
   self.myAttr1 = 'Value 1'
   self.myAttr2 = 'Value 2'
 
   def getMyAttr1(self):
   return self.myAttr1
 
   def getMyAttr2(self):
   return self.myAttr2
 
 I already have a few instances of MyClass in the ZODB, and 
 they only have
 myAttr1; myAttr2 is not defined on existing instances, since 
 they will not
 be constructed via the new __init__. Therefore, getMyAttr2() 
 will throw an
 exception.
 
 The simple solution is to also define __setstate__:
 
   def __setstate__(self, state):
   Persistent.__setstate__(self, state)
   if not hasattr(self, 'myAttr2'):
   self.myAttr2 = 'Value 2'
 
 Now, when the old instances of my object are de-ghosted from the ZODB,
 __setstate__ notices that they don't have a myAttr2, and sets 
 it to the
 value normally given by the constructor.
 
 Unfortunately, in my case, 'Value 2' is an instance of a ZClass.
 Therefore, I need to get at Control_Panel.
 
 Hope this helps. Now I'm going to try Shane's wacky __of__ idea. :-)
 
 --Jeff
 
 ---
 Jeff K. Hoffman   704.849.0731 x108
 Chief Technology Officer  
mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] Zope crashing on

2000-07-17 Thread Shane Hathaway

Steve Alexander wrote:
 
 Zope 2.1.6
 
 I'm using a "walk the tree" method of updating instances of a Python
 class, using an external method. Is there any reason that the following
 excerpt from an external method would cause Zope to crash shortly after
 it's been run on all suitable objects? The crash happens when I try to
 see one of the converted objects in my browser.
 
   def update_state(self):
   item = getattr(self, 'aq_base', self)
   item.content_state=PersistentMapping({'review':'public'})
   item.review_state=ComputedAttribute(\
   lambda self: self.content_state['review'])
 
 It seems to do something nasty to ZODB. I need to truncate Data.fs to
 get Zope working again.
 
 Perhaps I'm misunderstanding something about ComputedAttributes...

You're storing the ComputedAttribute itself in the pickled object. 
AFAIK ComputedAttribute objects can't be pickled.  What you really
want, I think, is to create a review_state ComputedAttribute for the
class, then "del item.review_state" for each instance.

Shane

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




Re: [Zope-dev] Errors causing half rendered pages

2000-07-17 Thread Martijn Pieters

On Sun, Jul 16, 2000 at 10:38:41PM +0100, Chris Withers wrote:
 Dieter Maurer wrote:
  I saw this only when buggy HTML was generated.
  When I viewed the HTML source my Netscape browser sometimes
  showed me blinking parts that located the errors.
 
 Nope, this was with IE...
 
 I viewed source and sure enough, it ended after a few lines.
 
 I guess it might have something to dop with streaming HTTP output, but I
 don't think Zope uses that...
 
 Ideas anyone?

THis rings vague bells of IIS or some other proxy server or somthing
converting LF tp CRLF but not updating the Content-Length header, thus having
your browser drop part of the transmission.

I could be talking absolute nonsense of course.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
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] The Application object

2000-07-17 Thread Martijn Pieters

On Mon, Jul 17, 2000 at 12:21:42PM -0400, Jeff K. Hoffman wrote:
 On Mon, 17 Jul 2000, Chris McDonough wrote:
 
  I'm not sure I understand.  What is AppSingleton?  What does the
  Instance() method do?
 
 Sorry I wasn't clear enough. The Singleton is a design pattern from the
 Gang of Four book that fits this situation well. It is a class that is 
 meant to control access to the one and only instance of a global
 variable. I was just using that as a frame of reference, though; Zope has
 no such class for the Application object, or I wouldn't be writing this
 message.
 
 I just need some way of getting at the one and only Application object at
 run-time. Something like:
 
   from Globals import app
   myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
   ...
 
 Given a reference to an object in the ZODB, I can do this via:
 
   app = self.getPhysicalRoot()
   myOb = app.Control_Panel.Products.MyProduct.MyZClass('foo')
 
 But, this does not work from methods like __init__, or __setstate__, where
 we do not have a physical location in the ZODB, yet.
 
 I just need a reference to the app object. I know the answer has to be
 simple, but I can't find it.

See the __init__.py method of ZScheduler, which can be found on Zope.org.
ZScheduler uses a Singleton as well.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
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] Errors causing half rendered pages

2000-07-17 Thread Chris Withers

Martijn Pieters wrote:
 THis rings vague bells of IIS or some other proxy server or somthing
 converting LF tp CRLF but not updating the Content-Length header, thus having
 your browser drop part of the transmission.
 
 I could be talking absolute nonsense of course.

To much work on ZopeStudio I think ;-)

It was way more than a few characters off, usually I would get about 20%
of the page...

To be fair, it's only ever happened when I'm causing an error, but it's
not healthy...

Like those invalid header (0) errors that still pop up if you don't have
HTMLHEAD/HEAD/HTML on the frotn of anything that gets squirted
over HTTP (whether it's HTML or not ;-)

I'm betting this is the fault of that BASE tag too ;-)

good luck with ZS,

Chris

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




Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Chris Withers

Terry Kerr wrote:
 
 Where would the object aquire its attributes from?  Would it try one of its
 folders, then the other?  Which order would it choose?

Now that's a very good question ;-)

Probably from the folder you referenced it from and then normal
acquisition from then on...

cheers,

Chris

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




Re: [Zope-dev] The Application object

2000-07-17 Thread Yves-Eric Martin

On Mon, 17 Jul 2000 12:50:27 -0400
Shane Hathaway [EMAIL PROTECTED] wrote:

 import Zope
 app = Zope.app()

 get_transaction().commit()

I am doing just that in the next version of zzLocale (Zope interface
internationalization product) I was about to release. I figured it out
from the "Zope Debugging" doc
(http://www.zope.org/Documentation/Misc/DEBUGGING.txt), but:


 You *must* remember to close the connection:
 
 app._p_jar.close()

This is not mentionned in the above document, so I was doing without
so far, and did not run into any problem. Now that I see it, I believe
this is the Right Thing to Do and will include it in the release. But
since you put an emphasis on its being required, can you tell us what
evil things may happen if you don't close the connection? (Consuming
ressources?)


-- 
Yves-Eric Martin
Digital Garage Inc.
[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 )




[Zope-dev] Re: [Zope] DTML?

2000-07-17 Thread Dieter Maurer

R. David Murray writes:
  On Tue, 11 Jul 2000, Chris Withers wrote:
   Tino Wildenhain wrote:
I want that too. When we are over it, how about replacing (or at least
aliasing)
these - variables to _ ? sequence-item, sequence-index etc. comes to
mind.
   
   IF you've got a patch that will do this, please mail it to me and stick
   it in the collector...
  
  Note that DC has in the (recent) past expressed reluctence to do
  this.  I don't understand why.  Something about namespace pollution?
I understand the namespace problem.

However, a prefix "dtml_" (or something similar) may be a better solution 
than using letters not allowed in Python names.


Dieter

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




Re: [Zope-dev] CalendarTag fix for Zope 2.2

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


Shane already told me about this bug, the latest release (0.9.17) is fixed.

 
 Here is a small patch to make the lovely calendar tag play nice with
 DT_Util.namespace() in Zope 2.2:
 
  $ diff -c lib/python/Products/Calendar/CalendarTag.py \
 lib/python/Products/Calendar/CalendarTag.py.org
 *** lib/python/Products/Calendar/CalendarTag.py  Sun Jul 16 21:39:27 2000
 --- lib/python/Products/Calendar/CalendarTag.py.org  Sun Jul 16 21:41:40 2000
 ***
 *** 248,254 
   __call__ = render
 
   def render_day_(self, md, date, firstday):
 ! ns = namespace(md,
   date = date,
   mode = self.mode,
   firstday = firstday,
 --- 248,254 
   __call__ = render
 
   def render_day_(self, md, date, firstday):
 ! ns = namespace(self,
   date = date,
   mode = self.mode,
   firstday = firstday,
 
 namespace() now insists that its self argument be an InstanceDict,
 which caused it to barf.
  
 -- 
 =
 Tres Seaver  [EMAIL PROTECTED]
 Digital Creations   "Zope Dealers"   http://www.zope.org
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
 
 


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




Re: [Zope] MetaPublisher DB - was linuxworld article

2000-07-17 Thread Mark Pratt

hi,

On Sun, 16 Jul 2000, Chris Withers wrote:

 Mark Pratt wrote:
   Sorry if that's a dumb question ;-)
  
  no, it`s not a dumb question. MetaPublisher is open source.
 
 Written in Zope?

its a zope product. 
 
 Where can I find out more?

you can either use Zope Treasures 
http://www.zope-treasures.com or go directly to beehive's
website to find out more about MetaPublisher.

regards,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299



___
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 build script

2000-07-17 Thread Oleg Broytmann

On Sat, 15 Jul 2000, Bill Anderson wrote:
 and running w_pcgi.py or wo_pcgi.py and watch them compile the produtcs
  and sometimes spit out syntax errors in them...

   Very often, 'fcourse, but anyway I always have "fromwin" binary around.

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] ZCatalog

2000-07-17 Thread Jonathan Desp

Thank you very much Chris,

I have a project in my head for Zope,  I might be able to help Zope soon :)
I'm not talking about money though.. ;-)



- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Jonathan Desp" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 17, 2000 3:06 AM
Subject: Re: [Zope] ZCatalog


 Jonathan,

 Please respond to the list as well as to me so others can benefit.

 What's happening here is that your catalog is named "s".  I should have
 noticed this the first time around.  But I didn't.  The bit you want is:

 a href="dtml-var "s.getpath(data_record_id_)""
 dtml-var title

 Whether you use "raw" or "title" depends on what you want to see.  If
 you want to see the "raw" DTML that makes up the object that gets
 referenced in the catalog as a link, use "raw".  If you want to see the
 title as a link, use "title".

 If your catalog isn't named "s", and the DTML is actually wrong where it
 says "dtml-in s size=50 start=query_start", change "s" to whatever the
 catalog is named.

 What Zope is doing:

 1.  Iterating over the catalog in batches of fifty responses in the line
 that says:

 dtml-in s size=50 start=query_start

 2.  Doing some stuff at the beginning of the batch (all the "if
 sequence-start" stuff)

 3.  Showing results, if any with a link (the bit you're adding)

 4.  Doing some stuff at the end of a batch (all the "if sequence-end"
 stuff)

 5.  Showing a meaningful message if there were no results.



 Jonathan Desp wrote:
 
  yes, so I quess:
 
  a href="dtml-var "catalog.getpath(data_record_id_)""
  dtml-var title
 
  will become:
 
  a href="dtml-var "catalog.getpath(data_record_id_)""
  dtml-var raw
 
  then I did it,
 
  here I tryed  my search:
 
  http://www.atomasoft.com/gosearch
 
  and it's not working.
 
  All is great with my source or I need to shutdown zope if I want to see
the
  result working.. ?
 
  Do you know if there is any other changing to do?
 
  here is my new source again:
 
  dtml-var standard_html_header
  dtml-in s size=50 start=query_start
 dtml-if sequence-start
 
dtml-if previous-sequence
 
  a href="dtml-var URLdtml-var sequence-query
   query_start=dtml-var
   previous-sequence-start-number"
  (Previous dtml-var previous-sequence-size results)
  /a
 
/dtml-if previous-sequence
 
table border
  tr
thRaw/th
  /tr
 
 /dtml-if sequence-start
 
  tr
  tda href="dtml-var "catalog.getpath(data_record_id_)""dtml-var
  raw/a/td
  /tr
 
 dtml-if sequence-end
 
/table
dtml-if next-sequence
 
   a href="dtml-var URLdtml-var sequence-query
  query_start=dtml-var
  next-sequence-start-number"
   (Next dtml-var next-sequence-size results)
   /a
 
/dtml-if next-sequence
 /dtml-if sequence-end
 
  dtml-else
 
There was no data matching this dtml-var title_or_id query.
 
  /dtml-in
 
  dtml-var standard_html_footer



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

2000-07-17 Thread Jonathan Desp

Hi Chris,

If I type "Zope" on the Zope.org search engine, I can see this -

Found 918 items matching "zope"

What is the script behind that, because I'd like to do it for my site too.

I didnot find the How  to, for that.

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Jonathan Desp" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 17, 2000 3:06 AM
Subject: Re: [Zope] ZCatalog


 Jonathan,

 Please respond to the list as well as to me so others can benefit.

 What's happening here is that your catalog is named "s".  I should have
 noticed this the first time around.  But I didn't.  The bit you want is:

 a href="dtml-var "s.getpath(data_record_id_)""
 dtml-var title

 Whether you use "raw" or "title" depends on what you want to see.  If
 you want to see the "raw" DTML that makes up the object that gets
 referenced in the catalog as a link, use "raw".  If you want to see the
 title as a link, use "title".

 If your catalog isn't named "s", and the DTML is actually wrong where it
 says "dtml-in s size=50 start=query_start", change "s" to whatever the
 catalog is named.

 What Zope is doing:

 1.  Iterating over the catalog in batches of fifty responses in the line
 that says:

 dtml-in s size=50 start=query_start

 2.  Doing some stuff at the beginning of the batch (all the "if
 sequence-start" stuff)

 3.  Showing results, if any with a link (the bit you're adding)

 4.  Doing some stuff at the end of a batch (all the "if sequence-end"
 stuff)

 5.  Showing a meaningful message if there were no results.



 Jonathan Desp wrote:
 
  yes, so I quess:
 
  a href="dtml-var "catalog.getpath(data_record_id_)""
  dtml-var title
 
  will become:
 
  a href="dtml-var "catalog.getpath(data_record_id_)""
  dtml-var raw
 
  then I did it,
 
  here I tryed  my search:
 
  http://www.atomasoft.com/gosearch
 
  and it's not working.
 
  All is great with my source or I need to shutdown zope if I want to see
the
  result working.. ?
 
  Do you know if there is any other changing to do?
 
  here is my new source again:
 
  dtml-var standard_html_header
  dtml-in s size=50 start=query_start
 dtml-if sequence-start
 
dtml-if previous-sequence
 
  a href="dtml-var URLdtml-var sequence-query
   query_start=dtml-var
   previous-sequence-start-number"
  (Previous dtml-var previous-sequence-size results)
  /a
 
/dtml-if previous-sequence
 
table border
  tr
thRaw/th
  /tr
 
 /dtml-if sequence-start
 
  tr
  tda href="dtml-var "catalog.getpath(data_record_id_)""dtml-var
  raw/a/td
  /tr
 
 dtml-if sequence-end
 
/table
dtml-if next-sequence
 
   a href="dtml-var URLdtml-var sequence-query
  query_start=dtml-var
  next-sequence-start-number"
   (Next dtml-var next-sequence-size results)
   /a
 
/dtml-if next-sequence
 /dtml-if sequence-end
 
  dtml-else
 
There was no data matching this dtml-var title_or_id query.
 
  /dtml-in
 
  dtml-var standard_html_footer



___
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] linuxworld article

2000-07-17 Thread Graham Chiu

In article [EMAIL PROTECTED],
Firestar [EMAIL PROTECTED] writes
http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html

Hmm...what is your opinion on the article above? I'm interested to see the
author's comparison btwn Enhydra and Zope.

The author creates a straw man ( a shoe shop built upon a shoe object )
without mentioning that Zope users can use a relational database instead
to build their store.

And he is not aware of the way that many here use editors with FTP
capabilities to interact with Zope. ( though FTP doesn't work in many
situations ).

Far from being torture "Expecting someone to code in a browser text box
is considered a human-rights violation in most civilized nations" the
small text browser box encourages code to be factored.

-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and 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] linuxworld article

2000-07-17 Thread Gijs Reulen

 Well Gijs, you've got some points right in what you're saying BUT...
 If you know some HTML and Stylesheets why don't you revamp the
 interface yourself. I have.

I was not talking of myself. I do not care much anymore for the visual
aspect of the interface. However, for new users it could be disappointed.
The interface does not look slick and does not offer interesting looking
wizards that invite to click on. I think it should ! The first acquaintance
with Zope should be a joy ! A new world opening up, a world where everything
seems to be possible !  ;-)
Maybe a bit commercial thinking, but hey, thats what made Microsoft and
Oracle big. Not by delivering but simply by promising... At least Zope
delivers, so what we need is showing the world it does.

I also think that interfacing with stuff like Dreamweaver is very important.
People use that a lot and therefore are familiar with it. Zope would then be
just another back-end like Lasso (the normal Dreamweaver database connection
stuff).

Maybe when installing Zope, it should offer to automatically set up
connections for databases ? Something like: which database do have ? Select
one of more [odbc, Oracle, mySQL, etc. ]. I think this kind of end-user
thinking is what Open Source really lacks compared to commercial software.

Yes, I know, all this is easy to think of but it also has to be realised
-( Unfortunately thats where my personal abilities are lacking...

Gijs Reulen


___
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: Folderish objects and that BASE tag...

2000-07-17 Thread Chris Withers

Oleg Broytmann wrote:
Documents/Methods aren't, m? 

Yes they are...

http://site/com/folder/object may now look like a folder to you, but
what if you want to excecute a method on a folder? It becomes:

http://site/com/folder/object/method

So, in effect, object should be treated as a 'folderish' thing from a
web-y point of view :S

 And I certainly don't want trailing slash
 on url like http://my.zope/site/file.html :)

Why not? It'd then get the default file for:
http://my.zope/site/file.html/

Which would return the contents of file.html anyway...

Not very well explained but I don't think I'm missign anything...

cheers,

Chris

___
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] linuxworld article

2000-07-17 Thread Chris Withers

Gijs Reulen wrote:
 I also think that interfacing with stuff like Dreamweaver is very important.

Totally agree...

What about Dreamweaver UltraDev? It has support for Coldfusion and
various other similar offerings but not Zope. I'd say that's pretty
important to sort out...

That said, Zoep Studio may be very promising :-)

 I think this kind of end-user
 thinking is what Open Source really lacks compared to commercial software.

Again, too true :(

Chris

___
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: Folderish objects and that BASE tag...

2000-07-17 Thread Chris Withers

Oleg Broytmann wrote:
 On Mon, 17 Jul 2000, Chris Withers wrote:
   And I certainly don't want trailing slash
   on url like http://my.zope/site/file.html :)
 
  Why not? It'd then get the default file for:
  http://my.zope/site/file.html/
 
What is "defaul file" if file.html is DTML Document? 

If you go to:
http://my.zope/site/file.html/

It will just return the DTML document :-)

I wonder if it is redirecting to http://my.zope/site/file.html?

 Anyway the URL
 looks bad; and robots will create directory for it instead of file.

Well, it's either that or the BASE tag that I can see, and that BASE tag
causes far worse problems :(

Any better idea are very welcome! :-)

Chris

___
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] linuxworld article

2000-07-17 Thread Chris Withers

Graham Chiu wrote:
 The author creates a straw man ( a shoe shop built upon a shoe object )
 without mentioning that Zope users can use a relational database instead
 to build their store.

I think that's a Zope Documentation problem ;-)

 And he is not aware of the way that many here use editors with FTP
 capabilities to interact with Zope. ( though FTP doesn't work in many
 situations ).

FTP support is not good enough to use for total site development.
It's also not at a high enough level for content managers as I'm
currently finding.


 Far from being torture "Expecting someone to code in a browser text box
 is considered a human-rights violation in most civilized nations" the
 small text browser box encourages code to be factored.

Sorry, that's simply not true ;-)

Text boxes are pathetic for editing. Find and replace?

That said, DTML is probably more of a human rights violation right
now...

I think Zope Studio will address a lot of the aboev problems, but I
can't help feeling a pluggin type thing for Dreamweaver would be of
great benefit too :-)

From the content managers point of view I think it's all about
consistency of interface and ease of use... the two reasons I still use
WinNT on my desktop instead of LINUX ;-)

cheers,

Chris

___
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] Long Data Type

2000-07-17 Thread Dieter Maurer

Ronnie Sengupta writes:
  Can anybody who has succesfully managed to insert text data (greater than 2k
  or 4k) into Oracle 8i 8.1.6 with DCOracle version 1.3.1 please explain how
  it is to be done.
  
  I have seen several other posts in this mailing list. But nothing fruitful.
  
  The same goes for Stored Procedures. Can't get them to work either.
  
  I am a web developer for a site called www.zdnetindia.com. We are using Zope
  with Mysql. Planning on Migrating to Oracle.
DCOracle currently does not support LOB's (neither CLOB's nor BLOB's).

DC is looking for funders to upgrade DCOracle to use the
Oracle 8 OCI interface. Currently, the Oracle 7 OCI interface is
used mainly with a few 8 extensions.


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] Cannot uncheck boolean properties in 2.2b3 fixed in 2.2?

2000-07-17 Thread Wolfgang Strobl

On 3 Jul 2000, 1:55  Ron Bickers wrote:

 In 2.2b3, after setting a boolean property to "checked", it will not
 save when trying to "uncheck" it.  I reported this to the Collector
 already (751).
 
 As a workaround, you can just delete it and readd it since it defaults
 to unchecked.

The collector reports this as "fixed" in 2.2. I notice that for example 
"yihawdirectory", a zclass based product from www.zope.org, still  
displays this behaviour in 2.2. final, when changing any boolean 
property (like "highlight" or "topstory") using 
manage_baseproperties. Changing non-boolean properties in the 
very same same form works, so it looks like a problem with bools, 
not within yihaw. Perhaps the problem is specific to zclasses? 


--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_===  Schloss Birlinghoven, std.disclaimer
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
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] Creating folders in LocalFS

2000-07-17 Thread Aaron Williamson

I have a LocalFS object within a directory, and in the same directory I
have a method which I want to use (among other things) to create new
folders within the LocalFS object, which is called "pictures."  If I try
pictures.manage_addFolder(id) the folder gets stuck in the directory it
is called from, not in pictures.  There doesn't seem to be any specific
docs on this, so I am at a loss.  Any pointers would be greatly
appreciated.

--Aaron


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




[Zope] Re: [Zope-dev] SQL-Methods

2000-07-17 Thread Dieter Maurer

Andre Schubert writes:
  i ave a problem, i do some sql-queries in my python product and would
  return the results like the ZSQLMethods.
  How do i have to return the data and field names from my python product
  to an dtml document so that i can work with it like ZMYSQL.
"dtml-in" expects its argument to behave like a sequence of objects.
It makes the current object's attributes available for direct access.

Z SQL Methods use the class "Shared.DC.ZRDB.Results.Results"
for results which in turn uses a subclass of "Shared.DC.ZRDB.Record"
to wrap the rows. Look at the code in "Shared/DC/ZRDB" on
how to use them.



Dieter

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




Re: [Zope] DTML Problem (from the newbie hair ripper category)

2000-07-17 Thread Dieter Maurer

Darin Lee writes:
  Here is the proverbial rub. If I want to *test* for the presence of
  "navigation_name" so I can print "title_or_id" if it's not defined, Zope
  simply skips the "navigation_name" property. It's like it always evaluates
  to false!
  dtml-in "objectValues(['Category'])"
   dtml-with sequence-item
   dtml-if "hasProperty('navigation_name')"
dtml-var navigation_name
  dtml-else
   dtml-var title_or_id
  /dtml-if
  /dtml-with
  /dtml-in
  
  Doesn't work!
I do not yet know the method "hasProperty".

As a short term work around, you may try directly:

dtml-if navigation_name
  dtml-var navigation_name
dtml-else
  dtml-var title_or_id
/dtml-if

This may acquire "navigation_name". Thus, you may restrict
namespace lookup with:

dtml-with sequence-item only
-- code above--
/dtml-with


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] Zboard 0.1 released

2000-07-17 Thread Graham Chiu

In article [EMAIL PROTECTED],
rainlood [EMAIL PROTECTED] writes
Hello.
I want to announce this.

http://www.zope.org/Members/rainlood/Zboard/


Umm, what is it?

-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and 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] linuxworld article

2000-07-17 Thread George Donnelly

as a newbie i am kind of glad that there are no slick interfaces. i want to
learn. i dont need to be coddled. :-)

is it important for zope to be "big" like MS and oracle? [lets think about
that for a second; do you really want to say that zope should be like MS or
MS products? yeah MS has some good points, but ...] or high-quality, open,
"home-grown", *real* ...?

i thought oss was supposed to be different ... ? :-/

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The longer I live the more beautiful life becomes. --Frank Lloyd Wright

... However, for new users it could be disappointed.
 The interface does not look slick and does not offer interesting looking
 wizards that invite to click on. I think it should ! The first acquaintance
 with Zope should be a joy ! A new world opening up, a world where everything
 seems to be possible !  ;-)
 Maybe a bit commercial thinking, but hey, thats what made Microsoft and
 Oracle big. Not by delivering but simply by promising... At least Zope
 delivers, so what we need is showing the world it does.


___
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] linuxworld article

2000-07-17 Thread Chris Withers

George Donnelly wrote:
 i thought oss was supposed to be different ... ? :-/

Yes, but that doesn't mean it should be a pain in the ass to use and
learn ;-)

cheers,

Chris

___
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] suggestions for what to run in front of ZEO'ed zopes for failover?

2000-07-17 Thread Toby Dickenson

On Fri, 14 Jul 2000 14:12:33 -0600, Bill Anderson [EMAIL PROTECTED]
wrote:

Roman Milner wrote:
 
 I'm wondering if anyone can suggest something good to run in front of
 2 zopes talking to a zeo server - for failover and load balancing.  I
 have been using a tool called 'balance' which works really well - but
 for failover it only works if the socket to one of the zope servers
 doesn't connect.
 
 We occasionally have a situation where the socket will still answer
 but the zope server hanges and never returns an answer.  So, I'm
 looking for something with configurable timeouts on responses.  Does
 any one know of anything like that?


You didn't specify the platform, so I'll suggest a nice, cost-effective
one:
Linux with IPVS (IP Virtual Server). www.linux-ha.com has more
information.

That looks good on paper, and I may be setting up a trial system next
month.

One disadvantage is that solution is that each Zope will have poor
locality-of-reference within the object database. I think I can avoid
that using a squid redirector (www.squid-cache.org). Ill post any
news.


Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope] Long Data Type

2000-07-17 Thread Satheesh Babu

I'm using DCOracle compiled with  8.1.5 client on NT4.0.
Oracle SQL has a limitation of around 5K string literal
size, which prevents any manipulation of bigger strings.

One way to do this is to split strings using python/DTML
at this level and then insert one by one - I'm using this for
pure text content.

Another way is to upload strings/text files to a localFS folder,
from which an Oracle PL/SQL procedure loads them into
BLOB columns. Works nicely from Zope and I'm using this
method to even add MSWord documents into Oracle, which
are then indexed using interMedia search.

I'm using stored procedures by creating ZSQL methods like:
begin
  myprocedure();
end;

No problems so far.

HTH
[EMAIL PROTECTED] http://vsbabu.csoft.net

 Ronnie Sengupta writes:
   Can anybody who has succesfully managed to insert text data (greater
than 2k
   or 4k) into Oracle 8i 8.1.6 with DCOracle version 1.3.1 please explain
how
   it is to be done.
  
   I have seen several other posts in this mailing list. But nothing
fruitful.
  
   The same goes for Stored Procedures. Can't get them to work either.


  
   I am a web developer for a site called www.zdnetindia.com. We are using
Zope
   with Mysql. Planning on Migrating to Oracle.
 DCOracle currently does not support LOB's (neither CLOB's nor BLOB's).

 DC is looking for funders to upgrade DCOracle to use the
 Oracle 8 OCI interface. Currently, the Oracle 7 OCI interface is
 used mainly with a few 8 extensions.


 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 )




[Zope] PCGI and 2.2.0 final horribly broken?

2000-07-17 Thread Bill Anderson


I can't get this combo to work at all. All I get is 
"""
C-Runtime errno:

Connection refused

PCGI Error:

(102) failure during connect to ZServer
"""

Anyone have any suggestions? File permissions are fine...


Bill

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

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




[Zope] ZEO and a front end...

2000-07-17 Thread Bill Anderson

Toby Dickenson wrote:
 
 On Fri, 14 Jul 2000 14:12:33 -0600, Bill Anderson [EMAIL PROTECTED]
 wrote:
 
 Roman Milner wrote:
 
  I'm wondering if anyone can suggest something good to run in front of
  2 zopes talking to a zeo server - for failover and load balancing.  I
  have been using a tool called 'balance' which works really well - but
  for failover it only works if the socket to one of the zope servers
  doesn't connect.
 
  We occasionally have a situation where the socket will still answer
  but the zope server hanges and never returns an answer.  So, I'm
  looking for something with configurable timeouts on responses.  Does
  any one know of anything like that?
 
 
 You didn't specify the platform, so I'll suggest a nice, cost-effective
 one:
 Linux with IPVS (IP Virtual Server). www.linux-ha.com has more
 information.
 
 That looks good on paper, and I may be setting up a trial system next
 month.

I'm doing it this week, I'll keep you posted ;-)

 
 One disadvantage is that solution is that each Zope will have poor
 locality-of-reference within the object database. I think I can avoid
 that using a squid redirector (www.squid-cache.org). Ill post any
 news.

What do you mean?

 


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

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




[Zope] Enitity syntax and 2.2

2000-07-17 Thread Chris Withers

Hi,

Just wondering if the entity syntax has been updated in 2.2 yet so I
could do something like the following:

dtml.url-/folder/object/method;

cheers,

Chris

___
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] 2.2 installation problem on Linux

2000-07-17 Thread Andy Pahne


not for me. everything worked fine on my redhat 6.0 box.
first I thought upgrading would be a nightmare but after all it took me 10
minutes and all my sites are up and running smoothly :-)

andy


Hi,

this seams to be a bugglet in the final distribution, the pcgi_wrapper is
not build by the install script. This worked in beta 4. You can fix it by
running it manally in the pcgi-directory like:

cd pcgi
sh configure
make

On Sat, 15 Jul 2000, Ragnar Beer wrote:

 Howdy!

 Zope 2.2 (linux2) installs and works fine using ZServer but for
 whatever reason there is no pcgi-wrapper built in the pcgi dir so
 that I cannot call Zope.cgi. I checked again and again but ./install
 doesn't give an error message. What am I doing wrong?

 --Ragnar



___
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] Case sensitivity

2000-07-17 Thread Tino Wildenhain

Hi,

Ian Sparks wrote:
 
 One of my pet peeves with web servers is that :
 
 mysite.com/Members
 
 is different to :
 
 mysite.com/members
 
 (but there is no difference between MYSITE.COM and mysite.com)
 
 is there any way of making Zope case-insensitive?

Most web-servers are case-sensitive. So where is the problem?
You only have to type your links carefully, what is somewhat 
simplyer with dtml-var object url

Regards
Tino Wildenhain

___
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] Case sensitivity

2000-07-17 Thread Chris Withers

Tino Wildenhain wrote:
 You only have to type your links carefully, what is somewhat
 simplyer with dtml-var object url

even simpler with dtml.url-object; :-)

cheers,

Chris

___
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] ZEO and a front end...

2000-07-17 Thread Toby Dickenson

On Mon, 17 Jul 2000 05:45:49 -0600, Bill Anderson [EMAIL PROTECTED]
wrote:

  I'm wondering if anyone can suggest something good to run in front of
  2 zopes talking to a zeo server - for failover and load balancing.  I


 One disadvantage is that solution is that each Zope will have poor
 locality-of-reference within the object database. I think I can avoid
 that using a squid redirector (www.squid-cache.org). Ill post any
 news.

What do you mean?

Suppose your zope site www.contrived-example.com is comprised of many
largely independant sections,
http://www.contrived-example.com/section1,
http://www.contrived-example.com/section2 etc.

Your multiple Zopes can all serve all of these sections, however
theres not enough storage for each machine to hold all the sections
simultaneously.

You can make better use of ZODB's in-memory cache and the ZEO pickle
cache if the requests for /section1 usually go to the same server.

However, you don't want to hardwire this relationship since any other
machine should handle /section1 if its 'home' machine goes down, or is
busy.


This problem can't be solved without parsing http headers, so
low-level solutions such as www.linux-ha.com are not a total solution.



Toby Dickenson
[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] The Wizards of Zope (was Linuxworld Article)

2000-07-17 Thread Richard Moon

At 19:34 17/07/00 +0900, you wrote:
as a newbie i am kind of glad that there are no slick interfaces. i want to
learn. i dont need to be coddled. :-)

Most of us do though !

The one thing that attracted me to Zope at the beginning was the ZSearch 
(using SQL Methods) Interface Wizard. Within an hour I was writing queries 
on my databases and doing useful stuff which I could show to people and say 
- look at this great Zope stuff !

I could also then look at the code and see how it worked, adapt it etc - so 
it was a great learning tool as well.

I think being able to do some simple but useful stuff when you first 
install a product is really, really encouraging and really helpful. There 
has to be substance behind the wizards, but with Zope there is.

The more Zope continues to become popular the more people who are not 
Python/OO gurus are going to look at it. And many of them are going to 
misunderstand it just like the Linuxworld article's author did.

If the Zope model is to convince people of its usefulness then it has show 
them what it can do. Otherwise people will dismiss it as 'theory', 'for 
gurus only', OO-only or whatever. Wizards are one way to do this which many 
(not all) would enjoy using.

Perhaps some us would like to think about the 'Wizards of Zope' and what we 
would like others to be able to achieve with Zope right out of the box.

Personally I'd like to see the ZSearch Interface build 'Intelligent' forms 
(that is DTML methods which render the form/results/error messages 
depending on the values returned by previous activities. )


Regards


Richard


Richard Moon
[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] ColdFusion-Zope converter

2000-07-17 Thread John Leach

Anyone have one of these ?
(or tips on writing such a thing?)
John Leach
http://www.bosware.com.au




___
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] PCGI and 2.2.0 final horribly broken?

2000-07-17 Thread Oleg Broytmann

On Mon, 17 Jul 2000, Bill Anderson wrote:
 I can't get this combo to work at all. All I get is 

   I have no problems connecting to PCGI-only or to ZServer+PCGI (I am
using mod_pcgi2)...

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] ColdFusion-Zope converter

2000-07-17 Thread Phill Hugo

John Leach wrote:
 
 Anyone have one of these ?
 (or tips on writing such a thing?)
 John Leach
 http://www.bosware.com.au

Ouch. As far as I know CF has a few hundred tags available. Zope/DTML
offers only about 10-20 but provides the same underlying features in
Python via the expr="" attribute. You'd really be looking to transfer CF
to python. This would probably produce code that sucked under Zope as CF
doesn't offer as many core platform features like ZClasses, Aquisition
etc.

I'd say the best conversion tool is simply someone who knows a bit of
both (or a bit of CF and a sizable chunk of Zope).

I can only imagine CF-Zope convertors which would leave you wanting to
rewrite the resultant code anyway. That said, it could at least offer a
neater way to import your CF files into Zope but import and FTP already
offer that.

Phill

___
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] Enitity syntax and 2.2

2000-07-17 Thread Shane Hathaway

Chris Withers wrote:
 
 Hi,
 
 Just wondering if the entity syntax has been updated in 2.2 yet so I
 could do something like the following:
 
 dtml.url-/folder/object/method;

Hmm.  Nope.  Ought to be though, IMHO.  Collector?

Shane

___
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] PropertySheet Question

2000-07-17 Thread Darin Lee

Hi everyone,

I want to do something very simple: I have a ZClass propertysheet with an integer 
property called "views"
Every time I load the page, I would like to increment this value by one, and write it 
back to the propertysheet.
(Yep, a good old-fashioned access counter)


Sounds easy right?? Well, I can't seem to figure it out. Every time I get a little 
farther with Zope, something "trivial" like this completely knocks me for a loop and 
sends me hunting through piles of howto's for hours! argh...how hard can it be??

Got this from the help page (hopefully on the right track)...
manage_changeProperties(self, REQUEST=None, **kw): 

However, there is no clear example of how to call without a REQUEST object. I want to 
increment views, and then write it back to the property sheet. That's all. Do I need 
to include the asterisks? Do I need to include the keyword "self?" It really doesn't 
say. Everything I have seen on Zope.org, references the Web context with a REQUEST 
object.

Coming from the "Perl-CGI" world I can honestly say, Zope *feels* like it should be 
easier to develop with, but this learning curve is immense! 

Thanks for your patience,
Darin Lee (Zope Newbie Extraordinaire)





Darin M. Lee 
Analyst / Web Administrator
Office of Automation Coordination
Michigan Department of Environmental Quality
Phone: 517.241.5214
[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] SECURITY ROLES and DTML-IN

2000-07-17 Thread Theodore Patrick

I am having trouble rendering a DTML IN in ZOPE 2.2.0 to any user
regardless of roles.

I have allocated the proper rights to all objects used and nothing happens.
The IN will not let any user view its contents.

DTML IN

I am using an IN in a DTML Document to render the contents of an
SQL_Method from and Oracle Database.
There are 3 objects.

1. Database Connection(ORACLE) - Working and can run test. OK

2. SQL_Method(VIEW_METHOD)- Working and can see results when run.
SQL: select id, v_id vid, item_name name, url from item
The SQL method returns columns: id, vid, name, url as expected. OK

3. DTML Document - Works fine with an IN that renders folder properties.
Change the Source of the DTML IN to the SQL_Method and it will prompt me
for user authentication.

dtml-in VIEW_METHOD size=1000 start=query_start
dtml-var id, dtml-var vid, dtml-var name, dtml-var url 
/dtml-in

When used it prompts the user to login - REGARDLESS OF CURRENT LOGIN and
returns the following error.

Traceback (innermost last):
  File C:\PROGRA~1\island8\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\island8\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\island8\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\island8\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: view)
  File C:\PROGRA~1\island8\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: view)
  File C:\PROGRA~1\island8\lib\python\OFS\DTMLMethod.py, line 167, in
__call__
(Object: view)
  File C:\PROGRA~1\island8\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
(Object: view)
  File C:\PROGRA~1\island8\lib\python\DocumentTemplate\DT_In.py, line 602,
in renderwb
(Object: view_method)


Things I have tried.

1. Opening up security all the way on all objects. Doesn't work. It
continues to ask me to log-in.
2. Proxy the DTML Documents ROLE to a higher role for the SQL_METHOD. Fails
just as before.

Is this a bug? Can anyone else confirm this.

PLATFORM: WINDOWS NT 4
ZOPE: 2.2.0 Final Release. 

___
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] Enitity syntax and 2.2

2000-07-17 Thread Chris Withers

Shane Hathaway wrote:
  Just wondering if the entity syntax has been updated in 2.2 yet so I
  could do something like the following:
 
  dtml.url-/folder/object/method;
 
 Hmm.  Nope.  

*grumble* *mumble* *moan* ;-)

 Ought to be though, IMHO.  Collector?

Damn right... and done:
http://classic.zope.org:8080/Collector/1436/view

thanks for the info,

Chris :-)

___
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 Components and ZPatterns

2000-07-17 Thread RC Compaan

In trying to install ZPatterns on linux the install fails during the "make"
part of the install, complaining about a non-existant ExtensionClass.h,
which should be in the Zope Components directory (also not existent).  I
noticed on the mailing list that one should do a rebuild if you install from
the source.  I ran the install script that comes with the source but still
no Components directory is created and no ExtensionClass.h is to be found.
Where do I go wrong?

Waiting for ZPattern-magic
Roché


___
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] upgrade to 2.2 and zsql methods problems

2000-07-17 Thread Brian Lloyd

 I have the exact same problem.
 
 Júlio
 

Hi guys - 

For those of you (I've mostly heard ODBC adapter users) 
having authorization problems with your SQL methods, heres
the scoop:

Database connections use one of two classes in the 
framework for wrapping up result data returned from 
queries. One of those classes (that understands results 
in RDB format) was missing a required security assertion. 

The results returned by the ODBC adapter were bitten by 
this - probably there are other adapters that could 
be affected.

I've attached a patch file for the file:
lib/python/Shared/DC/ZRDB/RDB.py

...as well as an updated version of the whole file (since 
I know a lot of you will be on Windows w/o patch :) Either 
patch or replace the file and restart Zope to fix the 
problem.

This is also checked in for a 2.2.1 release that will 
probably happen after a few weeks when enough people 
have upgraded to shake out any other problems.




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


 RDB.py
 RDB.py.patch


Re: [Zope] PropertySheet Question

2000-07-17 Thread Chris Withers

Darin Lee wrote:
 I want to do something very simple: I have a ZClass propertysheet with an integer 
property called "views"
 Every time I load the page, I would like to increment this value by one, and write 
it back to the propertysheet.
 (Yep, a good old-fashioned access counter)

Access counter in ZODb = very bad idea

It's a transactional database with rollback capability so it will grow
each time you increment your counter!

 Sounds easy right?? Well, I can't seem to figure it out. Every time I get a little 
farther with Zope, something "trivial" like this completely knocks me for a loop and 
sends me hunting through piles of howto's for hours! argh...how hard can it be??

ZClasses are a little harsh on occasion

 Got this from the help page (hopefully on the right track)...
 manage_changeProperties(self, REQUEST=None, **kw):
 
 However, there is no clear example of how to call without a REQUEST object.

Try this:

manage_changeProperties(views=yourobject.getProperty(views)+1)

Where will you be calling this from?

cheers,

Chris

___
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] SECURITY ROLES and DTML-IN

2000-07-17 Thread Brian Lloyd

 I am having trouble rendering a DTML IN in ZOPE 2.2.0 to any user
 regardless of roles.
 
 I have allocated the proper rights to all objects used and 
 nothing happens.
 The IN will not let any user view its contents.

Theodore - 

I bet you're running into the same problem as the 
folks using the ODBC adaptor. I've attached the post 
I made addressing this a few minutes ago.

If this fixes your problem, could you send a note to 
the zope-list and let the folks there know that the fix 
works for the Oracle DA too? (I'm going out of town today, 
so I won't be able to forward it if you only reply to me)

Thanks!

 Hi guys - 
 
 For those of you (I've mostly heard ODBC adapter users) 
 having authorization problems with your SQL methods, heres
 the scoop:
 
 Database connections use one of two classes in the 
 framework for wrapping up result data returned from 
 queries. One of those classes (that understands results 
 in RDB format) was missing a required security assertion. 
 
 The results returned by the ODBC adapter were bitten by 
 this - probably there are other adapters that could 
 be affected.
 
 I've attached a patch file for the file:
 lib/python/Shared/DC/ZRDB/RDB.py
 
 ...as well as an updated version of the whole file (since 
 I know a lot of you will be on Windows w/o patch :) Either 
 patch or replace the file and restart Zope to fix the 
 problem.
 
 This is also checked in for a 2.2.1 release that will 
 probably happen after a few weeks when enough people 
 have upgraded to shake out any other problems.
 


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





 RDB.py
 RDB.py.patch


[Zope] Zope 2.0 Startup

2000-07-17 Thread Michael Arndt

Hello

i use Apache / Zope

with 2.1.0 2.1.6  i can without problems start Zope

With Zope 2.2
i get (after making the pcgi Wrappper and providing the new Zope.cgi to
apache/cgi-bin Dir)

No such file or directory

PCGI Error:

(102) failure during connect to ZServer

Explanation:

The PCGI-wrapper program, spawned by Apache to handle the HTTP request
via the standard CGI protocol, is unable to
connect to the ZServer background process via Unix socket
/soft/swtest.rw.root/zope/rel2.2stable/Zope-2.2.0-src/var/pcgi.soc.
and
Mon Jul 17 17:16:32 2000
  pcgi-wrapper(/usr/freeware/apache/share/cgi-bin/Zope.cgi): No such
file or directory  (102) failure during connect to ZServer

where should i begin searching ?

thanks for Help
Micha
(the Socket pcgi.soc is not generated but i assume this to be follow up
to Problems starting Zserver ?)



-- 

Michael Arndt
science + computing gmbh
c/oCAE-Systemservice
Abt. I/FS-2, CAE Systeme, Visualisierung
Tel. +49 (841) 89-37421 Fax -35093
mail [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] Error loggin in as acl user

2000-07-17 Thread vaibhav



Hi,

I added an acl user as a manager. But it does not accept the 
password when I log in.

Zope 2.2.0 does not allow the superuser to do anything 
:(

I can't add a mailhost unless I log in as another 
user.

Please help...my CEO has a gun to my 
head.


Re: [Zope] GUF Authentication Problems

2000-07-17 Thread Mario Premke

Yes, I made the proxy roles ...
Before that Zope said:
 you are not authorized to access emUserAuthentication/em

But meaanwhile I turned to Zope-2.2.0 and I recognized "Login Manager"
in the Available Objects. Is that the Login MAnager which was formerly distributed
as a Product and hence makes GUF obsolete ??
Thanks
MArio

 
 Mario Premke writes:
   Maybe, your password is encrypted? 
  NO, it isn't.
   
   The problem is, that I cannot access "real_password", because Zope says:
   
   2000-07-12T15:54:46 ERROR(200) GUF
   http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
   raised an exception (('Unauthorized', 'You are not authorized to access
   emreal_password/em.', traceback object at 857e2d0))
 I know.
 
 Because I read the Zope digests, I am always about 1 day behind.
 I, therefore, may respond to questions already answered by
 the poster or others.
 
 You tried a proxy role as suggested by someone else?
 
 
 
 Dieter
 


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




[Zope] Re: [Metapublisher] how to get the Catlog to find MP entries? (2ndpost)post)

2000-07-17 Thread Sebastian Luehnsdorf

hi!

On Thu, 29 Jun 2000, George Donnelly wrote:

 i have several MP instances in subfolders and need to present the most
 recent mp entries from any/all of the these MP instances on my index_html
 page in the zope root.
 
 when i add a Z search interface in the zope root it only offers me the
 Catalog in the zope root as a searchable object and does not seem to be
 aware of any mp_catalog's.
 
 alternatively i could find all meta entry's to the Catalog in the zope root
 but the meta entry meta type does not show up in the selection list. how
 could i find the meta entrys without finding all objects? can anybody
 recommend an expression? i tried something like meta type==meta entry but
 this was a no go -- it returned ALL objects
 
 the only way i could do it is by adding each individual mp entry's id into
 the find to catalog mechanism. for a site with any traffic this could be a
 major bummer!
 

hmmm... a little tricky! i found a workaround which looks like this: if
you modify the __init__.py of the MetaPublisher product, so that a
MetaEntry object appears in a Folder's available objects, obviously
ZCatalog will find MetaEntries. I have created an __init__.py which
registers MetaEntry objects properly but uses MetaPublisher's
constructors. This means, if you select a MetaEntry to add to some Folder,
you will actually add a MetaPublisher. This might not be the cleanest
solution but it works :) I attached a sample __init__.py file, which you
should copy to 'lib/python/Products/MetaPublisher'.

 then the next problem was that when i used the getpath directive to get a
 url for the records returned by the Catalog i got a url like this
 mpfolder/mp_entries/9995757.435 which plays all kinds of havoc with my
 carefully crafted directory structure ;-|

depends on your structure... what exactly is the problem? unfortunately, 
in the current version, the mp_entries folder has to stay. there are early
plans to remove it completely but this will take some time before it
becomes a reality.

 any ideas?

some... ;)

 Regards,
 GEORGE DONNELLY
 [EMAIL PROTECTED]
 http://cyklotron.com/
 The smallest minority on earth is the individual. Those who deny individual
 rights, cannot claim to be defenders of minorities. --Ayn Rand
 
 
 
 ___
 MetaPublisher mailing list
 [EMAIL PROTECTED]
 http://mailman.beehive.de/mailman/listinfo/metapublisher
 

ciao, basti

--
sebastian f. luehnsdorf beehive elektronische medien gmbh
--
http://basti.beehive.de http://www.beehive.de
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
http://www.zope.de  fon: (+49 30) 84 78 20
http://www.i-surf.defax: (+49 30) 84 78 22 99



# =

#   MetaPublisher 1.0.1b3 - Initialization

# -

#   read README.txt for more information or

#   visit http://www.zope.de/software/MetaPublisher/

# =



# -

#   Initialization

# -



__doc__ = '''Product MetaPublisher'''

__version__ = ''

from ImageFile import ImageFile

import MetaPublisher

import FType 

import Config

import Entry 

import Container 

import Interface 

 

def initialize(context): 

"""

Initialize all the products defined in this Product distribution.

"""

try:

context.registerClass(

MetaPublisher.MetaPublisher,

constructors = (

MetaPublisher.manage_addMetaPublisherForm,

MetaPublisher.manage_addMetaPublisher,

MetaPublisher.manage_getMetaPublisherTypes,

),

icon = "images/icon_metapublisher.gif"

)

context.registerClass(

Entry.MetaEntry,

constructors = (

MetaPublisher.manage_addMetaPublisherForm,

MetaPublisher.manage_addMetaPublisher,

MetaPublisher.manage_getMetaPublisherTypes,

),

icon = "images/icon_metapublisher.gif"

)

context.registerBaseClass(MetaPublisher.MetaPublisher)

context.registerBaseClass(Entry.EntryFolder)


[Zope] Problem on install DCOracle

2000-07-17 Thread gustavo

Hi List,

I newbie in Zope and Python. I tried to install DCOracle, but it didn't work
properly:

make -f Makefile.pre.in boot PYTHON=python

rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
 VERSION=$VERSION \
 installdir=$installdir \
 exec_installdir=$exec_installdir \
 Makefile
make[1]: Entering directory `/usr/local/DCOracle-1.3.1b1/src'
make[1] *** No rule to make target `/usr/lib/python1.5/config/Makefile`, needed
by `sedscript'. Stop.
make[1]: Leaving directory `/usr/local/DCOracle-1.3.1b1/src'
make: *** [boot] Error 2

Oracle version is 8.1.5 and Python 1.5.2. Could you help me?

Thanks,

Gustavo



___
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] How to require an @ symbol in email form field??

2000-07-17 Thread Stacy Formby

Hello,

I am new to Zope; since our webmaster left I'm trying to make small
changes to the website. We have a standard registration form that
collects information from users (first name, last name, email, company
name, etc.) All of the fields are required, except address 2, address3.

Great. fine. If the user doesn't fill out a field, they get an alert.
But they can fill each field out with gibberish--as long as there is a
character in the input, we accept it.

Is there a way to require at least an "@" sign in the email field? The
powers that be think this would be useful.

Here's the form processing code as it stands today. Any help is
appreciated.

Sformby

!-- Check whether any fields are missing. -- dtml-in required
dtml-comment
The length of the following expr is due to the fact that some types of
form elements
(e.g. text) always create a var, while others (e.g. radio) don't.
/dtml-comment

dtml-unless expr="REQUEST.form.has_key(_['sequence-key']) and
REQUEST.form[_['sequence-key']]"
dtml-call request.set(missing_fields1)" /dtml-unless /dtml-in

 !-- If fields are missing, inform the user. --
dtml-if request.has_key(missing_fields')" The following input fields
are required
and have not been filled out: !-- List missing fields. --
ul
  dtml-in required dtml-unless
expr="REQUEST.form.has_key(_['sequence-key']) and
REQUEST.form[_['sequence-key']]"
  lidtml-var sequence-item
  /dtml-unless /dtml-in
/ul
Please click on your browser's "Back" button to update your information,
or a href="registration.html"click
here/a to start over. dtml-else



___
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] Creating folders in LocalFS

2000-07-17 Thread Dan L. Pierson

Aaron Williamson writes:
  I have a LocalFS object within a directory, and in the same directory I
  have a method which I want to use (among other things) to create new
  folders within the LocalFS object, which is called "pictures."  If I try
  pictures.manage_addFolder(id) the folder gets stuck in the directory it
  is called from, not in pictures.  There doesn't seem to be any specific
  docs on this, so I am at a loss.  Any pointers would be greatly
  appreciated.

Folder creation isn't really supported in LocalFS at the moment.  Very 
low level support is there (module function _save_Folder) but it's not 
intended to be called externally and there doesn't seem to be any path 
to call it.  There is certainly not a local definition of
manage_addFolder in LocalDirectory.  This is on my list of stuff to do 
for our site, but I don't know if it's on Jonothan's list for the real
product.

___
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: GUF Permission Problem

2000-07-17 Thread Mario Premke

Hi - You were absolutely right !!!

Thanks a lot!

There is still a problem remaining in my User-Authentication.
In the DTML-method userList I have the SQL-Method : 
dtml-return "sql_get_user_list()"
When I write the usernames in userList everything goes well.
Usind the SQL-method results in the Zope-message:

2000-07-17T22:20:44 ERROR(200) GUF An exception was raised by
http://134.96.119.88:8080/portal_folder/acl_users/userList
(('Unsupported Type', 'userList method returned an unsupported type',
traceback object at 8592580))

The Sql-method is tested an OK ...
What does the error 'Unsupported Type' mean ???

Any hints will be appreciated ...
MArio

 
 Hi Mario,
 In reference to your problem where GUF cannot access "real_password", try
 turning on "Access contents information" for your role(s) in the security
 permissions area of the acl_users folder.  I just ran into a similar problem
 where I could access my sql methods, but could not access the results from
 them.  Setting this permission for my user defined role in the acl_users
 folder fixed it.
 
 Let me know how it goes and if you have any questions.
 
-=brad=-
 


___
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] Printing data from a external python method.

2000-07-17 Thread jesse

Hello, I'm creating a smart forms type product, similar to Smarter 
Forms.  However, smarter forms, while a good product, is not as user 
friendly or as smooth running as we would like. 

   What I am doing is creating a Index, which calls the form, which 
once completed posts to the external pythod method formchecker.   
However, once formchecker checks to see that all the fields were 
filled out, how can I use the EPM (external python method to print 
out the data on a dtml method? 



   Thank you for your input, Jesse. 

___
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] Creating folders in LocalFS

2000-07-17 Thread Chris Withers

"Dan L. Pierson" wrote:
 Folder creation isn't really supported in LocalFS at the moment.  Very
 low level support is there (module function _save_Folder) but it's not
 intended to be called externally and there doesn't seem to be any path
 to call it.  There is certainly not a local definition of
 manage_addFolder in LocalDirectory.  This is on my list of stuff to do
 for our site, but I don't know if it's on Jonothan's list for the real
 product.

I asked about this ages ago and I think Jonothan posted some relevent
patch code to either zope or zope-dev.

Check the archvies at http://zope.nipltd.com/public/lists.html

cheers,

Chris

___
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 Zope 2.2.0 and changing a ZClass property

2000-07-17 Thread Jochen Knuth

Hi,

trying to update a ZClass based Product to Zope 2.2.0 i get the
following Error and Traceback:

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

Traceback (innermost last):
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187,
in publish
  File /usr/local/Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171,
in publish
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: postit)
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112,
in call_object
(Object: postit)
  File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 167, in
__call__
(Object: postit)
  File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: postit)
  File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
(Object: propertysheets.properties.manage_changeProperties(REQUEST))
(Info: REQUEST)
  File string, line 0, in ?
  File /usr/local/Zope-2.2.0/lib/python/OFS/PropertySheets.py, line 443,
in manage_changeProperties
(Object: Traversable)
  File /usr/local/Zope-2.2.0/lib/python/OFS/PropertySheets.py, line 255,
in _updateProperty
(Object: Traversable)
  File /usr/local/Zope-2.2.0/lib/python/OFS/PropertySheets.py, line 208,
in _wrapperCheck
(Object: Traversable)
ValueError: (see above)

The error occurs in a method i defined in a ZClass. The beginning of the
method is:

dtml-var standard_html_header
dtml-call "REQUEST.set('editor',AUTHENTICATED_USER)"
dtml-call "REQUEST.set('edit_date', ZopeTime())"
dtml-call "propertysheets.properties.manage_changeProperties(REQUEST)"
dtml-call reindex_object
[...]

The method is called from a edit form of a ZClass instance as the form
action.

Is there anything wrong with the method or is there something other to
look at?

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 )




Re: [Zope] Problem with Zope 2.2.0 and changing a ZClass property

2000-07-17 Thread Jochen Knuth

Hi Shane,

Shane Hathaway wrote:


 Jochen Knuth wrote:
 
  Hi,
 
  trying to update a ZClass based Product to Zope 2.2.0 i get the
  following Error and Traceback:

[traceback deleted]

  The error occurs in a method i defined in a ZClass. The beginning of
the
  method is:
 
  dtml-var standard_html_header
  dtml-call "REQUEST.set('editor',AUTHENTICATED_USER)"
  dtml-call "REQUEST.set('edit_date', ZopeTime())"
  dtml-call
"propertysheets.properties.manage_changeProperties(REQUEST)"
  dtml-call reindex_object
  [...]
 
  The method is called from a edit form of a ZClass instance as the
form
  action.
 
  Is there anything wrong with the method or is there something other
to
  look at?

 Try changing:
   dtml-call "REQUEST.set('editor',AUTHENTICATED_USER)"
 to:
   dtml-call "REQUEST.set('editor',AUTHENTICATED_USER.getUserName())"

that's it. i changed the 2.1.x version (dtml-call
"REQUEST.set('editor',AUTHENTICATED_USER.getUserRealName())") because i
haven't ported our user folder (GUF, with an addition getUserRealName)
to 2.2.0 and forgot to set it to getUserName.

Thanx,

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] Urgent Problem - CMG - script is not working

2000-07-17 Thread Sven Hohage



Hallo,
I've got an urgent problem.
I' like to add websites by using forms which decide 
about the new content( upload a logo, new text,etc.).
I know that's described in the CMG but the 
builder-script is not working. "Invalid syntax".
The most import thing is to be able  to clone an 
object and then to change the propertys.
Please mail me a version that's working because 
tomorrow I have to show it to my 
boss.
Thanks!!!


Re: [Zope] (no subject)

2000-07-17 Thread R. David Murray

On 14 Jul 2000, Karl Anderson wrote:
 __bobo_traverse__ is another attribute that the object may have to
 drive the publishing process, but I haven't needed to understand why
 it's useful yet :)

Isn't that where he'd hook in to do exactly what he wants?  To have
an (arbitrary) object "eat" subsequent URL elements as arguments
to operate upon.  Like ZSQLMethods do.

I think there's a howto on this somewhere.  And I think I remember
reading that it was a lot easier to do under 2.2.

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

2000-07-17 Thread Chris Withers

"Leichtman, David J" wrote:
 I've previously been a Perl programmer. I did a lot of stuff where I would
 have multiple links with different options.
 Ex.
 
 a href="/path/script.pl/1234"1234/abr
 a href="/path/script.pl/2345"2345/abr

You can do this and more with a SiteAccess access rule and modifying the
remaining traversal stack. It's a REQUEST variable but the name escapes
me right now...

However, I'm planning to do a PathHandler product to do just this as
soon as I get to grips with Zope 2.2...

cheers,

Chris

___
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] Urgent Problem - CMG - script is not working

2000-07-17 Thread R. David Murray

On Tue, 18 Jul 2000, Sven Hohage wrote:
 I know that's described in the CMG but the builder-script is not working. "Invalid 
syntax".
 The most import thing is to be able  to clone an object and then to change the 
propertys.
 Please mail me a version that's working because tomorrow I have to show it to my 
boss.

Try emailing us a cut and paste of the code you are trying to enter,
as well as the line number where it is complaining about the syntax error,
and perhaps we can help you figure out where things are going wrong.

--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] PTK cannot import DemoPortal

2000-07-17 Thread Nestor A. Diaz L.

Hi, i have a little problem trying to import the DemoPortal.zexp, i use
Debian GNU/Linux 2.2 with debian zope package, and the DemoPortal doesn't
import, i notice too that there is no "Portal" into the Add list.

Any ideas?

!--
Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_importObject)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: manage_importObject)
  File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 485, in
manage_importObject
(Object: ApplicationDefaultPermissions)
  File /usr/lib/zope/lib/python/OFS/CopySupport.py, line 377, in
_verifyObjectPaste
(Object: ApplicationDefaultPermissions)
Copy Error: (see above)

--

Thanks,

Nestor A. Diaz
Ingeniero de Desarrollo
Engendro - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] Writing a Zope Help System

2000-07-17 Thread J. Atwood

Has anyone posted a help on writing Zope help into your product for 2.2?

J


___
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] ZClasses gripe

2000-07-17 Thread Andy McKay

I hate to do something in ZClasses, but I did today just because I didnt
have the energy to write in Python. Oh how I wish I had. It was all so
simple except for "DestinationURL" not being implemented or being used
patchily. It would be really great if we were able to write our own
destination once a form has been filled. This would give us much better
access to things like property manager. Oh well back to Python.

--
 Andy McKay, Developer, ActiveState
 http://www.ActiveState.com
 Programming for the People



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




[Zope] Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Terry Kerr

Where would the object aquire its attributes from?  Would it try one of its
folders, then the other?  Which order would it choose?

Chris Withers wrote:

 Shane Hathaway wrote:
  This could be part of a "visitor" interface I've been pondering in the
  back of my mind.  It would be capable of traversing, performing an
  arbitrary function, and never falling into a recursive trap.

 Cool :-)

 Let me know when it's available :-)

 Can you see any weirdities that might occur from having an object as an
 attribute of more than one object manager / folder?

 Chris

 PS: Do you know the answer to my dtml.url-; question I asked earlier?

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

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




___
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 Knowledge Base on www.faqts.com

2000-07-17 Thread ethan mindlace fremen

Fiona Czuczman wrote:
 
 Hi All,
 
 It seems the consensus is that my working on a zope knowledge base would
 be appreciated so I'll take up the challenge 
 
 The issue of where to enter the questions was a tough one...
 zdp.zope.org or zope.faqts.com (FAQTs still need to set this up,
 currently http://www.faqts.com/knowledge-base/index.phtml/fid/295/lang/
 though there's not much there yet :)
 
 I decided to go with FAQTs for a couple of reasons.
 
 - the admin behind the site, for sending out summaries etc, is great.
 - I'll be working off the one site for python and zope.
 
 Basically it just makes the job easier for me.

Hi, fiona.  Thanks for doing this.  Email me once you're up and running
so I can link to it from zope.org.
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] mySQL - Z SQL - dtml-var

2000-07-17 Thread Dieter Maurer

Gijs Reulen writes:
  INSERT INTO test1
  ( id, content, phone )
  VALUES (
  dtml-var 12.12,
  dtml-sqlvar content type=nb,
  dtml-sqlvar phone type=nb optional
  )
  
  According to the doc I should be able to use dtml-var statements in Z SQL
  Methods. However, this returns an error: Error, exceptions.KeyError: 12.12
This is indeed a strange variable name (12.12).

Do you mean the floating point value 12.12 rather than a variable of
this name?

In this case, you should use:
  dtml-var "12.12"

  I also tried:
  INSERT INTO test1
  ( id, content, phone )
  VALUES (
  dtml-sqlvar id type=float,
  dtml-sqlvar content type=nb,
  dtml-sqlvar phone type=nb optional
  )
  
  This also retuns an error: Error, exceptions.ValueError: Invalid
  floating-point value for id
Obviously, "id" does not contain a floating point value.



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] How to require an @ symbol in email form field??

2000-07-17 Thread Dieter Maurer

Stacy Formby writes:
  Is there a way to require at least an "@" sign in the email field? The
  powers that be think this would be useful.
You can do it on the client with javascript or on the server
with

dtml-if "'@' in mailfield"
  !-- okay code --
dtml-else
  !-- alert --
/dtml-if


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] ZEO and a front end...

2000-07-17 Thread Curtis Maloney

On Tue, 18 Jul 2000, Bill Anderson wrote:
  Your multiple Zopes can all serve all of these sections, however
  theres not enough storage for each machine to hold all the sections
  simultaneously.

 As I understand ZEO, each machine _doesn't_ hold the site. The ZEO
 clients (servers) communicate with a central ZSS (Zope Storage Server).
 So in this contrived example, the problem is non-extant. ;-)

  You can make better use of ZODB's in-memory cache and the ZEO pickle
  cache if the requests for /section1 usually go to the same server.

 AIUI (I'm no ZEO expert, I just use it ;) ), you can have each server
 cache a certain amount, thus ameliorating the problem somewhat.

Yes, however his point is that by having each Zope instance 'predominantly' 
serving one portion of the site, its cache will contain more objects 
relevant, and thus be just that little bit faster.

Personally, I find this such a simple idea that it MUST be good. (o8
So much so, in fact, that I've decided to have a crack at writing just such a 
redirector.  I feel the Zope world (and others, most likely) could benefit 
from a 'preferential' redirector.

Watch this space. (o8

Have a better one,
Curtis Maloney.

___
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] ZEO and a front end...

2000-07-17 Thread Bill Anderson

Curtis Maloney wrote:
 
 On Tue, 18 Jul 2000, Bill Anderson wrote:
   Your multiple Zopes can all serve all of these sections, however
   theres not enough storage for each machine to hold all the sections
   simultaneously.
 
  As I understand ZEO, each machine _doesn't_ hold the site. The ZEO
  clients (servers) communicate with a central ZSS (Zope Storage Server).
  So in this contrived example, the problem is non-extant. ;-)
 
   You can make better use of ZODB's in-memory cache and the ZEO pickle
   cache if the requests for /section1 usually go to the same server.
 
  AIUI (I'm no ZEO expert, I just use it ;) ), you can have each server
  cache a certain amount, thus ameliorating the problem somewhat.
 
 Yes, however his point is that by having each Zope instance 'predominantly'
 serving one portion of the site, its cache will contain more objects
 relevant, and thus be just that little bit faster.

Which is why I said 'somewhat' ;-) Now, depending on if you set a shared
FS across the systems, this cache could theoretically be shared. If for
example, you usef afs/codafs, you could have each server using the same
FS, reading the same cache, unless something in ZEO prevents two
processes form using the cache, of course. Now, AFS/Codafs are not for
the faint of heart, but I get the feeling that someone willing to try an
IPVS setup is likely made of sturdier stuff. ;-)

 Personally, I find this such a simple idea that it MUST be good. (o8
 So much so, in fact, that I've decided to have a crack at writing just such a
 redirector.  I feel the Zope world (and others, most likely) could benefit
 from a 'preferential' redirector.

Roxen can do this to some extent. Not sure how well, since I am not
using that aspect of it, but I do see it in the modules. I do know thet
eddieware can also do this:
"""
The Eddie Intelligent HTTP Gateway package allows specialised functions
to be allocated to specific Back End Servers. As each user request
arrives, it is parsed by the Front End Server which then: 
o Splits multiple requests within HTTP 1.1 
  persistent connections into a number of 
  individual requests. 

o Sends the individual requests to Back End 

This allows a system administrator to, for example, dedicate certain
Back End Servers to be CGI processing engines, while other machines may
be dedicated to acting as image repositories. The individual machines
may then be tuned to optimise their performance to these specific tasks. 
"""

I have considered trying out eddieware, but haven't yet. 


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

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




[Zope] Confera

2000-07-17 Thread Tom Scheidt

Is there a way to make the newest messages show up on top?


Tom Scheidt | www.falsemirror.com | [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] Tim's Gripe Of The Week -- was: [Zope] (no subject)

2000-07-17 Thread Tim Cook

Hi all,

I have given myself permission to post this gripe.
Thank You g

While I do use the list archives and I try to get others that are
new to Zope to do the same.  I have a gripe for the Zen Masters. 
It's the subject line above.

Granted most of the "No Subject" mail starts with a newbie
question.  That doesn't mean you have to let it ride like that. 
Simply do what I did above.  WHY?

Once your words are immortalized in the archives they carry great
value, IF there is a subject line that makes sense.  Otherwise
it's just one more in the list each month that say "(no
subject)".  How sad that you would value you efforts at such a
low mark. 

I'd like to thank you all in advance for taking that extra 45
seconds to add or change to the appropriate subject line.  It
makes the archives that much more useful.

BTW: Thanks for all the help everyone.

-- Tim Cook --
"The more I learn, the more I realize I don't know, 
and the more I realize I don't know, the more I want to learn."
--Einstein

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




Re: [Zope] Re: Zope 2.2.0 Startup

2000-07-17 Thread ethan mindlace fremen

Chris Withers wrote:
 
 Indra Gunawan wrote:
  I've just install Zope 2.2.0 from 2.1.6 but when I run the start.bat it
  seems the startup process took a very2 long time compared to the usual, is
  it normal?

Did you just copy the Data.fs ? If so, your old zope had a Data.fs.index
that greatly speeds the startup of zope.  It is regenerated if zope
starts  stops safely, so probably it will start much faster next time.
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] Creating Factory Objects (Products)

2000-07-17 Thread Firestar

Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the
traceback:

File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in
__bobo_traverse__
(Object: ApplicationDefaultPermissions)
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/HTTPResponse.py, line 511,
in notFoundError
NotFound: (see above)

Maybe because i'm a newbie, i tend to feel that Zope's error messages(or
traceback) are not as clear as (for e.g.) PHP's error messages. Perhaps you
can give me some pointers here?

regards,
firestar


--Original Message--
From: Dieter Maurer [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 17, 2000 11:23:04 PM GMT
Subject: Re: [Zope] Creating Factory Objects (Products)


Firestar writes:
 "Resource not found

 Sorry, the requested Zope resource does not exist.
 Check the URL and try again." followed by the tracebacks...
You first need to determine what resource is not found.
The tracebacks may help you with this.

After you know the resource, you will ask, "why".
If you are lucky, this becomes obvious, once you know "what".


Dieter


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
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] product docs Re: [Zope] Zope docs ??

2000-07-17 Thread ethan mindlace fremen

[EMAIL PROTECTED] wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Anynoe recommend any documentation on Zope; esp. extending it with Python
 methods; besides the ZOpe.org stuff?

Beehive has a zclasses tutorial availiable for DM25 at
http://www.beehive.de . I would recommend zclasses over "pure python"
products.

-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] Zboard 0.1 released

2000-07-17 Thread ethan mindlace fremen

rainlood wrote:
 
 Hello.
 I want to announce this.
 
 http://www.zope.org/Members/rainlood/Zboard/

Rainlood, thank you for making a product for Zope!

It helps your product get more widespread use when you add a description
to the product.  There is also an informative document on how to do
context sensitive help in your product:

http://www.zope.org/Wikis/Docs/HelpTopicUsage

Also, when your product has these features, the Catalog Help tells you
how to make it appear in the Product's Page:

http://www.zope.org/Members/CatalogHelp
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] Importing exchange rates

2000-07-17 Thread Adrian Madrid

I need to obtain the current exchange rates for the yen, mark, etc. with
at least once a day, preferrably every other 15". Is there an easy way
to do this in Zope?

Adrian


___
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] ZEO and a front end...

2000-07-17 Thread ethan mindlace fremen

Curtis Maloney wrote:
 Yes, however his point is that by having each Zope instance 'predominantly'
 serving one portion of the site, its cache will contain more objects
 relevant, and thus be just that little bit faster.
 
 Personally, I find this such a simple idea that it MUST be good. (o8
 So much so, in fact, that I've decided to have a crack at writing just such a
 redirector.  I feel the Zope world (and others, most likely) could benefit
 from a 'preferential' redirector.

The way I would do this is have 

section1.contrived-example.com
section2.contrived-example.com
section3.contrived-example.com

with siteAccess, and then each zope would serve it according to it's IP
(though each "could" serve each site).  Then you can use whatever IP/DNS
load balancing tool your heart desires.

a thought,
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

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




  1   2   >