[Zope-dev] Intializing the objects formerly-known-as-RackMountables

2000-07-19 Thread Itamar Shtull-Trauring

I need to do initialize some properties of new instances of a DataSkin
subclass - ASPAccount.  However, I can't put this in __init__ since the
object hasn't been stored at that point.  

Doing self.__dict__['name'] = 'Rincewind' seems kinda ugly.  Maybe newItem
should by default call a function on newly created objects, say __init?  I
don't want to have to subclass Specialist (or in my case, LoginManager) each
time I want to this, since it's a *very* common action.  For example,


*** Specialists.py.orig Wed Jul 19 12:37:32 2000
--- Specialists.py  Wed Jul 19 12:38:18 2000
***
*** 37,43 
  def newItem(self, key=None):
  """Create a new item"""
  # Default use first rack
! return self.rackList[0].__of__(self).newItem(key)
  
  def manage_refreshPlugIns(self, REQUEST=None):
  """Update plugin registries"""
--- 37,46 
  def newItem(self, key=None):
  """Create a new item"""
  # Default use first rack
! obj =  self.rackList[0].__of__(self).newItem(key)
! if hasattr(obj, '__init'):
! obj.__init()
! return obj
  
  def manage_refreshPlugIns(self, REQUEST=None):
  """Update plugin registries"""

___
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] several permissions for the same method

2000-07-19 Thread Jephte CLAIN

Hello,

is it possible for a single method, under Zope 2.1.6, to have several
permissions? ie

__ac_permission__ = (
('edit my data', 'edit_data'),
('edit others\'s data', 'edit_data'),
)

I have the scenario where a user can edit *its* data but not other
users's data, unless he has a special role. however, the method used to
edit one's data is the same.
So I make sure inside the edit_data method that the user has the
adequate permissions if he tries to edit another one's data.

this does not work. indeed, lib/python/AccessControl/Permission.py
reads:

# Attribute names which appear in a
# permission may not appear in any other permission defined
# by the
object.

thanks in advance for any advices.

regards,
[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] several permissions for the same method

2000-07-19 Thread Oleg Broytmann

On Wed, 19 Jul 2000, Jephte CLAIN wrote:
 I have the scenario where a user can edit *its* data but not other
 users's data, unless he has a special role. however, the method used to
 edit one's data is the same.
 So I make sure inside the edit_data method that the user has the
 adequate permissions if he tries to edit another one's data.

   Make edit_data unpublishable (remove docstring, rename it to _edit_data)
and write two wrappers for it - one for own data, one for other's data.
Protect these wrappers with different sets of permissions.

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 )




[Zope-dev] Another ZPatterns bug

2000-07-19 Thread Itamar Shtull-Trauring

(ZPatterns 0.4a5, Zope 2.2.0) If an agent raises an exception, you don't get
to see the traceback.  Instead, the object is simply not added (if the
exception was in _objectAdded, donno what happens in _objectChanged).  This
makes debugging agents basically impossible...

-- 
Itamar S.T.  [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534  025E D0E7 92DB E441 411C

___
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] Expanded access file (was Re: LoginManager patch consideredharmful)harmful)

2000-07-19 Thread Shane Hathaway

Chris Withers wrote:
 
 "Phillip J. Eby" wrote:
  Maybe, maybe not.  I think perhaps the most compelling argument from
  Digital Creations' viewpoint for having an expanded "access" file might be
  the simplification of the setup process for customers.  And it would also
  make it easier to:
 
  1) Phase out unownedness (user databases wouldn't need it)
  2) Narrow the role of superuser (super-can-create hack can go away)
  3) Do Zope virtual hosting and give somebody a Zope root and even
  superuser, while still being able to log in
  4) Stop all the whining from people who want to know why superuser can't
  create or own objects any more.  :)
 
 This sounds great, what happened about it?

You speak in the past tense.  This is only a suggestion and a
possibility. It's not as important as some other feature requests.

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] HTTP user agent?

2000-07-19 Thread Martijn Pieters

On Wed, Jul 19, 2000 at 04:57:12PM +0900, Brian Takashi Hooper wrote:
 Hi Zopistas,
 
 For anyone that might know:
 
 Is there a particular reason that the User-Agent header is not part of
 the request data that ZServer sends in the environment to ZPublisher?
 
 It looks like the user agent can also be provided to Zope's request
 object just by adding a line for 'user-agent' to
 ZServer.HTTPServer.header2env:
 
 header2env={'content-length': 'CONTENT_LENGTH',
 'content-type'  : 'CONTENT_TYPE',
 'connection': 'CONNECTION_TYPE',
 'user-agent': 'HTTP_USER_AGENT'
 }
 
 Is there a particular reason this is not done?

I have a HTTP_USER_AGENT in my Zope. Maybe your browser doesn't send your
server the header?

-- 
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] Intializing the objectsformerly-known-as-RackMountables

2000-07-19 Thread Itamar Shtull-Trauring

"Phillip J. Eby" wrote:

 Doing self.__dict__['name'] = 'Rincewind' seems kinda ugly.  Maybe newItem
 should by default call a function on newly created objects, say __init?  I
 don't want to have to subclass Specialist (or in my case, LoginManager) each
 time I want to this, since it's a *very* common action.  For example,
 
 Could you give a more specific example?  My assumption is that if you need
 to have things happen upon adding, that one uses a trigger to do it.  Or,
 if the data is specific to that instance, then the appropriate thing would
 be to manipulate properties or attributes in the code that calls newItem().

I like the OO idea that changes to an object should be done by the object,
not by someone else.  It seems silly to have to write a trigger to do this,
or a factory.  Why do classes have __init__ anyway?  So that all the
internal object creation logic is in the same place.

Okay - this is the ASP Account class.  These are user objects that I'd like
to store in a regular LoginManager.  I could subclass LoginManager of
course, but I don't want to spread my code all over the place, when there's
no real need.

class ASPAccount(LoginUser, MemberMixin):

def __init__(self, id, title=''):
LoginUser.__init__(self, id)
self.__dict__['_currentPayment'] = None
self.__dict__['debt'] = Payment.Debt(0.0)
self.__dict__['debtInPayment'] = Payment.Debt(0.0)
self.__dict__['services'] = ServicesManager.ServicesManager()
self.__dict__['lastMonthlyPayDay'] = None
# day in month on which we pay
self.__dict__['payday'] = 15
self.__dict__['log'] = ""


 Also, it isn't necessary to subclass the specialist -- you don't have to
 call your routine newItem(), after all.  newUser() would be a better choice
 of name for the method, it sounds like.

Again, why should I fagment my class into multiple parts?  I want it all to
be in once place - it's more readable, easier to debug, easier to
understand, and more portable.

-- 
Itamar S.T.  [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534  025E D0E7 92DB E441 411C

___
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] Intializing the objectsformerly-known-as-RackMountables

2000-07-19 Thread Phillip J. Eby

At 05:41 PM 7/19/00 +0300, Itamar Shtull-Trauring wrote:

class ASPAccount(LoginUser, MemberMixin):

def __init__(self, id, title=''):
LoginUser.__init__(self, id)
self.__dict__['_currentPayment'] = None
self.__dict__['debt'] = Payment.Debt(0.0)
self.__dict__['debtInPayment'] = Payment.Debt(0.0)
self.__dict__['services'] = ServicesManager.ServicesManager()
self.__dict__['lastMonthlyPayDay'] = None
# day in month on which we pay
self.__dict__['payday'] = 15
self.__dict__['log'] = ""


 Also, it isn't necessary to subclass the specialist -- you don't have to
 call your routine newItem(), after all.  newUser() would be a better choice
 of name for the method, it sounds like.

Again, why should I fagment my class into multiple parts?  I want it all to
be in once place - it's more readable, easier to debug, easier to
understand, and more portable.


If what you want is default values, then just put them in a DataSkin
property sheet in the ZClass.  Or, if using a Python class, implement them
as class attributes named  "class_default_for_X".  E.g.:

class ASPAccount(LoginUser, MemberMixin):

class_default_for__currentPayment = None
class_default_for_payday = 15
class_default_for_log = ""


Of course, this is only useful for immutables.


___
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 ZEO Wikis.

2000-07-19 Thread Chris McDonough

In trying to find the "Quorum Based Replication" stuff I've found that
we have two ZEO wikis.

http://www.zope.org/Products/ZEO/Wiki/FrontPage

http://www.zope.org/Wikis/ZEO/FrontPage

Bleah.

Chris McDonough
Digital Creations
Publishers of Zope - 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 )




Re: [Zope-dev] Expanded access file (was Re: LoginManager patch consideredharmful)harmful)

2000-07-19 Thread Phillip J. Eby

At 10:15 AM 7/19/00 -0400, Shane Hathaway wrote:
Chris Withers wrote:
 
 "Phillip J. Eby" wrote:
  Maybe, maybe not.  I think perhaps the most compelling argument from
  Digital Creations' viewpoint for having an expanded "access" file
might be
  the simplification of the setup process for customers.  And it would also
  make it easier to:
 
  1) Phase out unownedness (user databases wouldn't need it)
  2) Narrow the role of superuser (super-can-create hack can go away)
  3) Do Zope virtual hosting and give somebody a Zope root and even
  superuser, while still being able to log in
  4) Stop all the whining from people who want to know why superuser can't
  create or own objects any more.  :)
 
 This sounds great, what happened about it?

You speak in the past tense.  This is only a suggestion and a
possibility. It's not as important as some other feature requests.


Patch opportunity, perhaps?  :)  Ty and I would do it, no problem.  Heck,
I've been tempted to do it as a LoginManager function, since Zope doesn't
pay attention to anything past the first line of the "access" file...

___
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] Expanded access file (was Re: LoginManagerpatch consideredharmful)harmful)

2000-07-19 Thread Phillip J. Eby

At 11:09 AM 7/19/00 -0400, Shane Hathaway wrote:
 
 Patch opportunity, perhaps?  :)  Ty and I would do it, no problem.  Heck,
 I've been tempted to do it as a LoginManager function, since Zope doesn't
 pay attention to anything past the first line of the "access" file...

We would be most grateful! :-)


So are y'all at DC in agreement that this would be a useful feature with no
pitfalls?  Should we go through the new fishbowl process thing to do this?


___
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] Expanded access file

2000-07-19 Thread Phillip J. Eby

At 12:50 PM 7/19/00 -0400, Shane Hathaway wrote:
"Phillip J. Eby" wrote:
 
 At 11:09 AM 7/19/00 -0400, Shane Hathaway wrote:
 
  Patch opportunity, perhaps?  :)  Ty and I would do it, no problem.
Heck,
  I've been tempted to do it as a LoginManager function, since Zope
doesn't
  pay attention to anything past the first line of the "access" file...
 
 We would be most grateful! :-)
 
 
 So are y'all at DC in agreement that this would be a useful feature with no
 pitfalls?  Should we go through the new fishbowl process thing to do this?

Some of the crew are at oscon this week so they'll have to answer when
they get back.  But I am of the opinion that the fishbowl process is
only needed for relatively major changes.  Small modifications can just
be posted, reviewed, and merged.


Hm.  I don't think this could be classed as a "minor" change, however,
since it has impact on ownership, for example.  What's the path of the user
folder which is above "/", for example?  The whole thing is useless if
these extra users can't be owners, and the ownership machinery right now
wants an access path.  I think perhaps we should go the fishbowl route on
this, if only to make sure that Jim doesn't have a heart attack when he
gets back.  :)


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

2000-07-19 Thread Jeff K. Hoffman

Hello,

Should I call default__class_init__ on all of my Python products that care
about permissions? Or are there some times when it is not required?

--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] Overriding a method in an instance.

2000-07-19 Thread Chris Withers

Shane Hathaway wrote:
 I have an idea: the _objects attribute of ObjectManagers could include
 a "configurable" flag, which would tell _checkId that the object can be
 overridden.

Shane,

Is this what became the ConfigurableInstances thing at:
http://www.zope.org/Members/hathawsh/ConfigurableInstances/
?

Or is that something different that solved the same problem?

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] Overriding a method in an instance.

2000-07-19 Thread Shane Hathaway

Chris Withers wrote:
 
 Shane Hathaway wrote:
  I have an idea: the _objects attribute of ObjectManagers could include
  a "configurable" flag, which would tell _checkId that the object can be
  overridden.
 
 Shane,
 
 Is this what became the ConfigurableInstances thing at:
 http://www.zope.org/Members/hathawsh/ConfigurableInstances/
 ?

Yes, for now.  We need to start a Wiki on dev.zope.org about this.

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

2000-07-19 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  How hard would it be to add more of the called URL to the traceback?
 
  ... traceback ...
 
  Great, I know that I have not put product_number in as a cookie or a hidden
  value, and it could not be found by acquisition.  It failed in rendering
  index_html.  But there are 5 index_html's it could have failed in.
  
  How hard would it be to change the error message to say:
  
  Traceback (innermost last):
Exception raised while constructing 
http:
It would probably not be hard to add the URL.

Try editing "standard_error_message" and add "dtml-var URL"
at an appropriate place.

You can get it, too, when you are your browser to show
you the page/frame info.


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] Redirecting from the manage interfaces.

2000-07-19 Thread Chris Withers

Erik Enge wrote:
  call, it won't redirect.  So you should be able to achieve the same
  results just by invoking manage_addImage without including the REQUEST
  object.
 
 But I have to pass something with the REQUEST, or else it won't add the
 image, right?

This is the problem we've experienced here at NIP...

  A convention I've seen that works just a little better is to redirect
  based on the existence of a RESPONSE object.  You need RESPONSE to
  redirect, so if it isn't provided, you shouldn't redirect.
 
  Of course this needs to be documented and more reliable.

Hmm, I wonder if you could specify in the RESPONSE object where the
redirection would take place to?

Why I'm asking is 'cos it'd be really nice not to have to keep
re-writing UI when there's perfectly good stuff available in the
management interface, things like add forms, edit forms, etc...

However, if you call these from anywhere else, they dump you in the
management interface when you're finished rather than going to where you
want them to.

Any ideas or am I missing the point?

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] Redirecting from the manage interfaces.

2000-07-19 Thread Steve Alexander

Chris Withers wrote:
 
 Why I'm asking is 'cos it'd be really nice not to have to keep
 re-writing UI when there's perfectly good stuff available in the
 management interface, things like add forms, edit forms, etc...
 
 However, if you call these from anywhere else, they dump you in the
 management interface when you're finished rather than going to where you
 want them to.
 
 Any ideas or am I missing the point?

Silly idea: Write a wrapper that you put around the RESPONSE object that
does its own thing when it is told to redirect. You might have to wrap
the REQUEST object too, so that it returns a wrapped RESPONSE object.

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




[Zope-dev] ZCallable the Renderable Folders Patch

2000-07-19 Thread Chris Withers

Steve Alexander wrote:
 The __call__ method is what gets invoked when you call the method,
 either through the magic of dtml-var Catalog or with dtml-var
 "Catalog(client, namespace, args*)".

Now you see, this is what confuses me...

dtml-var dtml_method renders that method, implying in my mind that
__call__ should render stuff adn return it.

However, then with ZSearchable stuff, dtml-var catalog returns a list
of all the objects in the catalog, or does a search if you poke it
right.

In my mind, __call__ is a bit ambiguous right now. I'd love to see
objects have a __render__ method which gets called to render them, and
leave the __call__ method when they're being specifically called..

Then I guess dtml would need dtml-render adn dtml-call instead of just
dtml-var

I guess I'm in the minority when it comes to seeing this as a good
thing? ;-)

snip protocols thing?

 This mechanism is pretty much separate from the __call__ mechanism.

That's all cool, but not what was causing me confusion...

 In conclusion, I can't see any disadvantage to making Folder callable as
 I suggested in a previous message. It doesn't appear to break anything
 :-)

I'd agree, since it doesn't make my confusion over __call__ any worse..

 IIRC, ZRenderable lets you choose what method you want __call__ to
 forward to, whereas ZCallable always chooses the method index_html, if
 it exists.

Ah, so ZCallable is an inferior ZRenderable? *joke* :-)

 You have to do something like dtml-var
 "nameofafolder.index_html(_.None, _)". But, that's not quite the same
 because if the folder lacks an index_html, it gets acquired.

But index_html will get acquired with that method too as folders do
Implicit acquisiton, or am I missing something?

Hmm, I think the patch is good, has anyoen subitted it 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] Zope Add-on Installation

2000-07-19 Thread Bill Anderson

Chris Withers wrote:
 
 Dieter Maurer wrote:
What is needed is a new way of installing Zope stuff for the following
categories:
1. Python Base Products (Like ZPatterns, PTKBase and TrackerBase)
2. Instantiatable Products (like TinyTables, Squishdot and Tracker)
3. Interface Skins (none right now, DemoPortal is probably the closest)
 
 Sadly tarballs only address issues 1  2 that I can see above...
 
 I wonder if ZPatterns Specialists address 3?
 
  Tarballs are flexible enough to install both a Python Products and
  associated ZClasses from ZEXP's (the products "__init__" function
  imports the ZEXP at the appropriate place, if it is not already
  there).
 
 I presume you mean the thing created by the 'Distribution' tab of
 products?


I believe he is talkin gabout the __init__  function checking to see if
the .zexp has been imported, and if not, importing it for you. It's an
idea I have kicked around, but haven't tried yet.



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

___
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 Add-on Installation

2000-07-19 Thread Chris Withers

Bill Anderson wrote:
 I believe he is talkin gabout the __init__  function checking to see if
 the .zexp has been imported, and if not, importing it for you. It's an
 idea I have kicked around, but haven't tried yet.

IIRC, the 'Distribution' tab creates all this for you...

It creates a binary file (maybe a zexp?) and an __init__.py file that
imports it for you and wraps them all up in a TarBall with the correct
paths :-)

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] Newbie: How to create a Oracle connection (DCOracle)

2000-07-19 Thread Paul Browning



--On Tuesday, July 18, 2000 12:00 PM -0700 [EMAIL PROTECTED] wrote:

 Message: 15
 From: gustavo [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Organization: elipse
 To: [EMAIL PROTECTED]
 Subject: [Zope] Newbie: How to create a Oracle connection (DCOracle)
 Date: Tue, 18 Jul 2000 15:23:06 -0300

 Hi List,

 Finally, I installed DCOracle and works fine. But, how to create a Oracle
 connection inside Zope? I tried to add a SQL Method and received this
 warning:

 Warning: There are no SQL database connections. You need to add a Zope
 SQL database connection before you can use a Zope SQL Method.

 I not found nothing about that in documentation. Could you help me?

 Gustavo


If your Oracle DA is installed OK you should now find a

Z Oracle Database Connection

item in your Add menu in the management screens. Add this
object, provide a database connection string and you
should be in heaven.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


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




[Zope] Problems with Coding differences to do same stuff...

2000-07-19 Thread Felipe E. Barousse Boué

Hello all:

Trying to do a simple thing as creating a document and then adding a
property with an DTML method, found that the following code does not
work, it comes up with a password request (all security settings are at
defaults):

 dtml-call
"company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"
 dtml-with "company.noticias._[titulo]"
dtml-call
"propertysheets.manage_addProperty('link',resumen,'text')" 
 /dtml-with

titulo,subtitulo and resumen come from a form that calls itself upon
validating the submit button value. Of course folders company and
noticias DO exist.

This instead works:

 dtml-call
"company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"
 dtml-with "company.noticias"
  dtml-in objectValues
   dtml-in propertyValues
 dtml-if "id() == _[titulo]"
  dtml-with id
dtml-call
"propertysheets.manage_addProperty('link',resumen,'text')" 
/dtml-with
  /dtml-if


This is the hard way of doing it, I believe. What is wrong with the
first sample of code ? As said before, something about permissions is
wrong on the first case and the 2nd one works even nothing related to
security has been changed. Both pieces of code live in the same form.

Any help would be appreciated. Thanks in advance.

Ed.

begin:vcard 
n:Barousse Boué;Felipe E.
tel;fax:+(52)5247-0272
tel;work:+(52)5247-0272
x-mozilla-html:FALSE
url:http://www.piensa.com/
org:Bufete Consultor de Mexico - Piensa Systems;Supercomputer Cluster Systems group
version:2.1
email;internet:[EMAIL PROTECTED]
title:CEO, Director General
note:Tel: +(52)5247-0272
adr;quoted-printable:;;Ap. CAP Polanco 336=0D=0ACol. Anzures;Mexico City;D.F.;11550;Mexico
x-mozilla-cpt:;-27680
fn:Felipe E. Barousse Boué
end:vcard



RE: [Zope] Bi-directional update of Data.fs

2000-07-19 Thread Chris McDonough

If you're doing little or nothing in the way of Python development in
base classes (e.g. you're doing all of your development in the instance
or in ZClasses), you may want to take a look at ZEO
(http://www.zope.org/Products/ZEO).  Setting up the ZEO "storage server"
overseas and using a local Zope client as a sort of object cache might
make the situation bearable and solve your synchronization problem.  ZEO
caches objects until they're invalidated by the storage server, so the
object is read once and can be accessed many times until invalidated
without needing to cross the wire to the storage server.

If you are doing development on Python-based Products, you can still do
this, but it's complicated badly by need to be very careful that the two
installations keep "shared" Python modules (ala Product files)
synchronized as well, as if they get out of sync, one of the two of you
is going to end up with a broken Zope incessantly.  It's not an ideal
setup.

There is no generic diff or merge facility for two arbitrarily modified
Data.fs files.

 -Original Message-
 From: Brenton Bills [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 19, 2000 12:47 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Bi-directional update of Data.fs
 
 
 
 Hi,
   At the moment I am in a situation where I am working 
 for a company
 overseas across the Internet. Because of the lag between us 
 and the fact
 that I am working over a modem we have chosen both to have a 
 copy of the
 Data.fs files and when I complete a project (or at the end of 
 the day) I
 export the files I have modified. The only problem is at the 
 end of a hard
 day of working remembering which files I have changed. What would be a
 better solution is somesort of syncronisation between both 
 copies of our
 Data.fs files so I can see the updates they have made and 
 they can see the
 updates I have made at the end of each day.
 
 Is this possible and how can I do it?
 
 Thanks all,
   Brenton Bills.   
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




Re: [Zope] Member Login

2000-07-19 Thread Aleksander Salwa


On Wed, 19 Jul 2000, ethan mindlace fremen wrote:

 HTML, are generally beyond the purview of zope documentation. 
 The standard in this case is HTTP, where Basic Authentication is
 defined:
 
  http://www.cis.ohio-state.edu/htbin/rfc/rfc2068.html
 

Little fix: rfc2616 obsoletes this.

 There is another rfc - the next one, submitted the same month- that
 describes
 digest authentication, a vastly more intelligent scheme.  However,

rfc2617

ololo


___
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 problem i 2.2 final - Bug?

2000-07-19 Thread Peter Arvidsson

I have a very anoying problem...

I have created a news-product and have several news-objects. Now I want
to change the properties of a news-object. This is my code for that:

dtml-with "newsEntries"
dtml-call "_[objId].propertysheets[1].manage_editProperties(
 header=REQUEST['header'],
 date=REQUEST['date'],
 author=REQUEST['author'],
 email=REQUEST['mail'],
 text=REQUEST['text'],
 )"

  /dtml-with

'newsEntries' is the folder where I store my news-objects.
'objId' is the id of the product as a string.

Everytime I try to change properties a login prompt is displayed. The
problem is that I get access denied whoever I login as. My user has the
same permissions as the superuser and even when I login as the superuser
I get access denied. I have changed so that I am the owner of both the
product 'news' and the news objects, the methods that I use and the
folders that my objects and methods are in. I really dont know what this
problem could be. I thought these problems was supposed to be resolved
for 2.2 final but maybe there are some bugs left? I dont get this
problem when I run the code in 2.1.6.

I have also tried different possibilities in the code, I have both used
changeProperties and editProperties. I have also tried to write the name
of the propertysheet instead of '[1]' but everything renders the same
problem.

Really beacause I am the owner of everything and I have the same rights
as the superuser I dont think I should be "unauthorized" to change my
objects. I have no problem to add and to delete these objects so why
cant I change them?




___
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 query ZODB

2000-07-19 Thread Dirksen Lau

How can I make queries (something like ad hoc?) to the ZODB besides iteration? If 
iteration is the only option, how to go about it? Such as how to iterate through files 
in a folder?

Thanks
Dirksen


___
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] LoginManager 0.8.6 on Zope 2.1.6

2000-07-19 Thread Mathias Bengtsson

You need to install the ZPattern package to Zope. You can get it at
Zope.org.
After that it should work fine

/Mathias Bengtsson

--Hi there

--I tried to install LoginManager 0.8.6 owith Zope 2.1.6 but that
failed. Zope
--reports:

--LoginManager Import Traceback
--Traceback (innermost last):
--  File "C:\PROGRA~1\ZOPE_216\lib\python\OFS\Application.py", line 387,
in
--import_products
--product=__import__(pname, global_dict, global_dict, silly)
--  File "C:\Program
--Files\Zope_216\lib\python\Products\LoginManager\__init__.py", line 1,
in ?
--import LoginManager, LoginMethods, UserSources
--  File "C:\Program
--Files\Zope_216\lib\python\Products\LoginManager\LoginManager.py", line
7, in
--?
--from Products.ZPatterns.PlugIns import PlugInGroup
--ImportError: No module named ZPatterns.PlugIns

--Any solutions ? Does it need Zope 2.20 ?!

--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: [Fwd: [Zope] Announce: ZBabel a Translation Assistant for Zope]

2000-07-19 Thread Federico Di Gregorio

hi *,

i read with much interest this thread about ZBabel, because
it seems to do something like the Translator product. 

 Suppose web site in source language has something like this:
 
 'Click A href="{fieldX(someVar.A)}"here/A, for {fieldY(someVar.B)}'
 
 With suitably horrific DTML instead of ' ' and {}.
 
 Rendered english result would be, for some particular dynamic instance of
 someVar:
 
 'Click A href="http://www.zope.org/"here/A for Zope'
 
 Translator for language X decides to reverse the positions of fieldA and
 fieldB and use 3 separate substrings, because it is too abrupt for that
 language, so translates to something like:
 
 'If you would like {fieldY(someVar.B)}, click A
 href="{fieldX(someVar.A)}"this link/A, please'
 
 There are now 3 substrings in the translation because it would be rude not
 to start or end with something like "please" in language X, and it reads
 better with the fields reversed in that language.
 
 Final rendered result becomes (in language X):
 
 'If you would like Zope, click A href="http://www.zope.org/"this link/A,
 please'
 
 depending on the particular value of someVar at the time.

ok. Translator allows for that using just one (1) translated string.
you create a translator and put inside it a translated item (naming
it my_localized_text, for example):

language1:

Click A href="dtml-var "someVar.A""here/A, 
for dtml-var "someVar.B"  

language2:

If you would like dtml-var "someVar.B", click A
href="dtml-var "someVar.A""this link/A, please.

Then in the main body of your page you put:

dtml-lvar my_localized_text

and you get exactly what you want.

BTW, Translator also allow you to take an url of a localized object,
to do stuff like:

img src="dtml-lvar first_logo_png url" usemap=...

At now, the Transaltor does not support at now an easy way to generate
catalogues (as ZBabel does, i think.) I'll add that in a future release.
Or, if the author of ZBabel wants, we can try to merge the two projects
to and produce a single, usefull product.

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  99.% still isn't 100% but sometimes suffice. -- Me

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




[Zope] Implementing full text search

2000-07-19 Thread Erich Seifert

Hi folks,

I tried to create a full text search for my existing site. All went fine:
I can search my whole site's document contents (via PrincipaSourceSearch)
and titles (using 'or' as in advanced zcatalog searching how-to).

The problem I have at the moment is that Zope only searches in unrendered
content and all html and dtml code is found also when searching.
How can I search my documents with all dtml-vars inserted and without all html
code or at least dtml code?

I there a solution?

Any help appreciated.
Eric

---
Erich Seifert [EMAIL PROTECTED]
3 week webmaster and Zope user

___
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] Need an SQL based auth system that works with Zope 2.2

2000-07-19 Thread Tony McDonald

At 9:38 am +0800 19/7/00, Bak @ kedai wrote:
On Wed, 19 Jul 2000, Tony McDonald wrote:
  Hi all,
  I think the time has come to bite the bullet and change our
  authentication engine to work in line with Zope 2.2 and above.
  UserDB-1.2 seems to have some problems with it (see my message
  today), a

i use userdb with 2.2 and it worked great.  no problems at all.  maybe you
could try it on a fresh zope install or try it on a copy of your zope
install.

Thanks for the input Bak,
thing is the product works fine *if* you've already set things up via 
the Properties tab in another Zope installation. By that, I mean it 
does authentication very well. If you click the Properties tab 
however, you get the traceback (if you're going to try it, please do 
it on a copy of your installation - I'd hate to think I'd done damage 
to someones DB!!).

cheers
tone.
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

___
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] http://www.atomasoft.com/yahoo-yes!.something

2000-07-19 Thread Chris Withers

Jonathan Desp wrote:
 I did it, and you still can see the sentences --
 
 http://www.atomasoft.com/asdf.asfd

Did you restart Zope after you made the change?

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] sequence-item and

2000-07-19 Thread Chris Withers

Jonothan Farr wrote:
 There's a much cooler and more elegant solution in the pipe for 2.2.
 
 http://www.zope.org/Members/4am/DTMLWiki/NamedDTMLInLoop

I don't think this landed for 2.2...

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] http://www.atomasoft.com/yahoo-yes!.something

2000-07-19 Thread Jonathan Desp


- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Jonathan Desp" [EMAIL PROTECTED]
Cc: "Nick Garcia" [EMAIL PROTECTED]; "zope zope zope" [EMAIL PROTECTED]
Sent: Wednesday, July 19, 2000 5:20 AM
Subject: Re: [Zope] http://www.atomasoft.com/yahoo-yes!.something


 Jonathan Desp wrote:
  I did it, and you still can see the sentences --
 
  http://www.atomasoft.com/asdf.asfd

 Did you restart Zope after you made the change?

I put on shutdown, and then closed all my browser, it's still there, but I
think this is because David my friend for the server, didnot re-start zope,
for me I can't re-start  zope because it's not my server, and it's a remote
server, you see ?

if you know another way just say it, for I'll wait that David and ask him to
re-start my zope.


David -


You're running your server in debug mode.  Turn debug mode off and you
 won't see them anymore.  If you're using ZServer you need to edit start
 and take out the -D option.

Ok good, so here --

#! /bin/sh
reldir=`dirname $0`
PYTHONHOME=`cd $reldir; pwd`
export PYTHONHOME
exec /usr/local/bin/python \
 $PYTHONHOME/z2.py \
 -D "$@"

by this ? ---

#! /bin/sh
reldir=`dirname $0`
PYTHONHOME=`cd $reldir; pwd`
export PYTHONHOME
exec /usr/local/bin/python \
 $PYTHONHOME/z2.py \
  "$@"

I did it, and you still can see the sentences --

http://www.atomasoft.com/asdf.asfd



 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] Bi-directional update of Data.fs

2000-07-19 Thread Chris Withers

Chris McDonough wrote:
 There is no generic diff or merge facility for two arbitrarily modified
 Data.fs files.

Perhaps Zope or ZEO could do Lotus Notes - style replication at some
point in the future?

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] Broken products in 2.2 - bug?

2000-07-19 Thread Peter Arvidsson

Is products treated in a different way in 2.2 final than in 2.1.6?

When I restart Zope all instances of my (and some imported) products
become broken because it cant find the product it is an instance of.

963996281 (This object from the unknown product is broken!)

I have compared with Zope 2.1.6 and the data of the news object are the
same in both distributions:

?xml version="1.0" ?
  ZopeData
record id="8178" aka="H/I="
pickle
  tuple
tuple id="8178.3"
  string id="8178.1"
encoding="repr"*ZENGX/ck1V8gtZ9GtNHQ7w==/string
  string id="8178.2" encoding="repr"News/string
/tuple
none /
  /tuple
/pickle
 ...
  /ZopeData

Also the data about my News object are the same where 'News' have 'class
id'='ZENGX/ck1V8gtZ9GtNHQ7w=='
Now the only difference is that there is no '*' in the 'class id' but
there is the same difference in 2.2 final as in 2.1.6 som that shouldnt
mean any differences.

When I add instances in 2.1.6 and restart the server everything works
fine but when I do the same thing in 2.2 final my news objects become
broken. The same thing happens to for example the PDFProduct that I
downloaded.

Is there a different way to handle products in 2.2 final or is this a
bug?


___
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] Date time format

2000-07-19 Thread wai

Hi all,

Anyone know if there is any good tutorial for date time format ? Like
abstract the day or month or year in a ZopeTime string.


Please help.

Cheers

Wai


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




Re: [Zope] Need an SQL based auth system that works with Zope 2.2

2000-07-19 Thread Tony McDonald

At 12:43 pm +1200 19/7/00, Graham Chiu wrote:
In article v0422081ab59a36ddacad@[128.240.198.13], Tony McDonald
[EMAIL PROTECTED] writes
Can anyone who's using an SQL based authentication system with Zope 2.2
successfully please let me know which one you used and how you did it?

What are the requirements for such a beast?



Very simple really. I'd like to use the functionality of UserDB in 
Zope 2.2. UserDB-1.2 (and 1.3) give me errors when I select the 
Properties tab (used for the docLogin docLogout screens and SQL 
methods). This means that USerDBs imported from Old Zopes work fine, 
but creating new ones is a no-no.

I've looked at LoginManager, but can't get my head around it.
GUFolder was promising, but I couldn't get it to work.
I'm now looking at Shane Hathaways' DatabaseAPI which looks very 
interesting, but I'll need to spend some time with it..

cheers
tone

--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

___
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 problem i 2.2 final - Bug?

2000-07-19 Thread Pierre Rougier

Hi  :)
I may say something idiot, but...

Did u try to change the proxy roles of the method which call the fonction
manage_editProperties?
(in case of: to do it, edit your method and choose proxy at the top of the
window), u can edit the role of your method.

Piotr.

Peter Arvidsson wrote:

 I have a very anoying problem...

 I have created a news-product and have several news-objects. Now I want
 to change the properties of a news-object. This is my code for that:

 dtml-with "newsEntries"
 dtml-call "_[objId].propertysheets[1].manage_editProperties(
  header=REQUEST['header'],
  date=REQUEST['date'],
  author=REQUEST['author'],
  email=REQUEST['mail'],
  text=REQUEST['text'],
  )"

   /dtml-with

 'newsEntries' is the folder where I store my news-objects.
 'objId' is the id of the product as a string.

 Everytime I try to change properties a login prompt is displayed. The
 problem is that I get access denied whoever I login as. My user has the
 same permissions as the superuser and even when I login as the superuser
 I get access denied. I have changed so that I am the owner of both the
 product 'news' and the news objects, the methods that I use and the
 folders that my objects and methods are in. I really dont know what this
 problem could be. I thought these problems was supposed to be resolved
 for 2.2 final but maybe there are some bugs left? I dont get this
 problem when I run the code in 2.1.6.

 I have also tried different possibilities in the code, I have both used
 changeProperties and editProperties. I have also tried to write the name
 of the propertysheet instead of '[1]' but everything renders the same
 problem.

 Really beacause I am the owner of everything and I have the same rights
 as the superuser I dont think I should be "unauthorized" to change my
 objects. I have no problem to add and to delete these objects so why
 cant I change them?

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


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




Re: [Zope] Date time format

2000-07-19 Thread Tony McDonald

At 5:46 pm +0800 19/7/00, [EMAIL PROTECTED] wrote:
Hi all,

Anyone know if there is any good tutorial for date time format ? Like
abstract the day or month or year in a ZopeTime string.

as if by magic

http://www.zope.org/Members/AlexR/CustomDateFormats

hth
tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

___
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] Date time format

2000-07-19 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 Anyone know if there is any good tutorial for date time format ? Like
 abstract the day or month or year in a ZopeTime string.

See the Zope Quick Reference or the DTML Reference

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 problem i 2.2 final - Bug?

2000-07-19 Thread Peter Arvidsson

Hi

Thanks for the tip. I gave the method the correct roles but unfortunatelty the
problem still exists.

Peter

Pierre Rougier skrev:

 Hi  :)
 I may say something idiot, but...

 Did u try to change the proxy roles of the method which call the fonction
 manage_editProperties?
 (in case of: to do it, edit your method and choose proxy at the top of the
 window), u can edit the role of your method.

 Piotr.

 Peter Arvidsson wrote:

  I have a very anoying problem...
 
  I have created a news-product and have several news-objects. Now I want
  to change the properties of a news-object. This is my code for that:
 
  dtml-with "newsEntries"
  dtml-call "_[objId].propertysheets[1].manage_editProperties(
   header=REQUEST['header'],
   date=REQUEST['date'],
   author=REQUEST['author'],
   email=REQUEST['mail'],
   text=REQUEST['text'],
   )"
 
/dtml-with
 
  'newsEntries' is the folder where I store my news-objects.
  'objId' is the id of the product as a string.
 
  Everytime I try to change properties a login prompt is displayed. The
  problem is that I get access denied whoever I login as. My user has the
  same permissions as the superuser and even when I login as the superuser
  I get access denied. I have changed so that I am the owner of both the
  product 'news' and the news objects, the methods that I use and the
  folders that my objects and methods are in. I really dont know what this
  problem could be. I thought these problems was supposed to be resolved
  for 2.2 final but maybe there are some bugs left? I dont get this
  problem when I run the code in 2.1.6.
 
  I have also tried different possibilities in the code, I have both used
  changeProperties and editProperties. I have also tried to write the name
  of the propertysheet instead of '[1]' but everything renders the same
  problem.
 
  Really beacause I am the owner of everything and I have the same rights
  as the superuser I dont think I should be "unauthorized" to change my
  objects. I have no problem to add and to delete these objects so why
  cant I change them?
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )


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




Re: [Zope] ZEO and a front end...

2000-07-19 Thread Toby Dickenson

On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED]
wrote:

 I might be reading more into his words than was intended, but I think
 this demonstrates the problem. Distributing multiple requests for one
 section across multiple servers is (what I consider to be)
 undesirable.

You can actually do it either way. Curtis (AIUI) complained that the
method described meant your site depended upon each of th esection's
servers being up, that there was no redundancy. So I described a way of
doing it with redundancy. 

What you described doesn't scale up to having 1000's of sections
(which I was assuming, and I think Curtis was too).  If this isn't a
problem, then your solution is great.

EddieWare does do 'intellgient' caching

eddieware is on my list of option to try out next month... Ill keep
you posted


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] Bi-directional update of Data.fs

2000-07-19 Thread Chris McDonough

Actually, there is a proposal on the table for something like this in a
Wiki I can't find going by the name of "QuorumBasedReplication"

 -Original Message-
 From: Chris McDonough 
 Sent: Wednesday, July 19, 2000 9:51 AM
 To: 'Chris Withers'; Chris McDonough
 Cc: 'Brenton Bills'; [EMAIL PROTECTED]
 Subject: RE: [Zope] Bi-directional update of Data.fs
 
 
 Perhaps.  Patches accepted :-)
 
  -Original Message-
  From: Chris Withers [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 19, 2000 5:27 AM
  To: Chris McDonough
  Cc: 'Brenton Bills'; [EMAIL PROTECTED]
  Subject: Re: [Zope] Bi-directional update of Data.fs
  
  
  Chris McDonough wrote:
   There is no generic diff or merge facility for two 
  arbitrarily modified
   Data.fs files.
  
  Perhaps Zope or ZEO could do Lotus Notes - style replication at some
  point in the future?
  
  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 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] HTMLgen

2000-07-19 Thread michael montagne

I'm trying to use the HTMLcalendar.py as an external function.  The
supported files are these:
import string, time
from HTMLcolors import *
from HTMLgen import SimpleDocument, TableLite, TD, TR, Font, Name, H,
Center, Href
from types import IntType
from calendar import day_name, month_name, mdays, weekday

I placed HTMLcolors.py, HTMLgen.py, and HTMLcalendar.py in a
Website/Extensions folder on my hard drive.  Not in the extensions folder I
made thru the Zope interface.  When I try and add an external method,
specifying HTMLcalendar, i get an error telling me that HTMLcolors can't be
found.  What is the proper way to reference multiple files like this?  Is
this the proper way to use HTMLgen?  
Also, how can I use python to add and change properties in my zope folders?

thanks,
mjm

 winmail.dat


[Zope] Newbie question about permissions in zclass

2000-07-19 Thread Nathalie Bernier

Hello everybody !

I'd like to have some explanations about the "define permisions" view and
the permission mappings in zclass. Maybe something exists in the zope
documentation, but I haven't found anything. Thank you for helping.


Nathalie Bernier
*
Développeur web 03.82.24.00.41

multiThématiques
Centre Jean Monnet
Longlaville
54400 LONGWY

http://multithematiques.com
Chaînes thématiques sur câble et satellite
*


___
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] Running Zope 2.2 on Solaris 2.7

2000-07-19 Thread Andreas Rippel

I installed Zope 2.2 for Solaris 2.6 on Solaris 2.7.
After starting an accessing as superuser I wanted to add an object e.g.
a folder.
I couldn't add any kind of object, while getting messages like


Zope Error

Zope has encountered an error while publishing this
resource. 

Error Type: SuperCannotOwn

Error Value: Objects cannot be owned by the superuser 




Troubleshooting Suggestions

 The URL may be incorrect. 
 The parameters passed to this resource may be
incorrect. 
 A resource that this resource relies on may be
encountering an error. 

For more detailed information about the error, please refer
to the HTML source for this page. 

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




Traceback (innermost last):
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_addFolder)
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: manage_addFolder)
  File /opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/Folder.py, line
116, in manage_addFolder
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/ObjectManager.py, line
249, in _setObject
(Object: ApplicationDefaultPermissions)
  File
/opt2/Zope-2.2.0-solaris-2.6-sparc/lib/python/AccessControl/Owned.py,
line 271, in manage_fixupOwnershipAfterAdd
(Object: ElementWithAttributes)
SuperCannotOwn: (see above)


-- 
Andreas Rippel   Universität Kaiserslautern
Fachbereich Informatik (AG ICSY) Tel:   ++49 (0)631 205 3676
Paul Ehrlich Straße(G32/348) Fax:   ++49 (0)631 205 3056
D-67653 Kaiserslautern (Germany) EMail: [EMAIL PROTECTED]

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




Re: [Zope] Security problem i 2.2 final - Bug?

2000-07-19 Thread Peter Arvidsson

Thats what I did .. same problem.

However when I installed a new 2.2 final and did exactly the same (same stuff, same
permissions) then it worked. There must be some problem with the upgrading...

Peter

Pierre Rougier skrev:

 Hi

 Just to see... try to give all the proxy roles to your method... (manager, owner
 and anonymous)... I had this problem, and it work like that

 Pierre

 Peter Arvidsson wrote:

  Hi
 
  Thanks for the tip. I gave the method the correct roles but unfortunatelty the
  problem still exists.
 
  Peter
 
  Pierre Rougier skrev:
 
   Hi  :)
   I may say something idiot, but...
  
   Did u try to change the proxy roles of the method which call the fonction
   manage_editProperties?
   (in case of: to do it, edit your method and choose proxy at the top of the
   window), u can edit the role of your method.
  
   Piotr.
  
   Peter Arvidsson wrote:
  
I have a very anoying problem...
   
I have created a news-product and have several news-objects. Now I want
to change the properties of a news-object. This is my code for that:
   
dtml-with "newsEntries"
dtml-call "_[objId].propertysheets[1].manage_editProperties(
 header=REQUEST['header'],
 date=REQUEST['date'],
 author=REQUEST['author'],
 email=REQUEST['mail'],
 text=REQUEST['text'],
 )"
   
  /dtml-with
   
'newsEntries' is the folder where I store my news-objects.
'objId' is the id of the product as a string.
   
Everytime I try to change properties a login prompt is displayed. The
problem is that I get access denied whoever I login as. My user has the
same permissions as the superuser and even when I login as the superuser
I get access denied. I have changed so that I am the owner of both the
product 'news' and the news objects, the methods that I use and the
folders that my objects and methods are in. I really dont know what this
problem could be. I thought these problems was supposed to be resolved
for 2.2 final but maybe there are some bugs left? I dont get this
problem when I run the code in 2.1.6.
   
I have also tried different possibilities in the code, I have both used
changeProperties and editProperties. I have also tried to write the name
of the propertysheet instead of '[1]' but everything renders the same
problem.
   
Really beacause I am the owner of everything and I have the same rights
as the superuser I dont think I should be "unauthorized" to change my
objects. I have no problem to add and to delete these objects so why
cant I change them?
   
___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )


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




[Zope] looping through objectValues, how to get methods?

2000-07-19 Thread ed colmar

I have a method that looks through "objectValues".  Using "hasattr" and
"getattr" I can see the variables contained in the object.  

How do I get the values generated from an object's method in a similar
fashion?  

For example:

def dj_experince_statistics(self):
"""  

"""
rlist = self.People.objectValues('SRPersonPost')
newbcount=0
for i in rlist:
if hasattr(i, 'validated'):  #get validated variable
if hasattr(i, 'djname'): #get djname variable
if hasattr(i, 'mixing_for()'):  #try to get
mixing_for() method
days_mixing=getattr(i,'mixing_for()')
if days_mixing  730.0:
newbcount=newbcount+1 
return newbcount


BTW this does not work.

Thanks for any suggestions!

-ed-


___
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] Simple DTML-IN question

2000-07-19 Thread Terry Babbey

Everytime I think I am beginning to understand I try to do something
new and wham! It won't work for me.
I have a dtml-document that I have a list of courses for a college
program. I would like to list the courses one item at a time checking
the 8th character to see if it is a '-' so I know if the line is a
comment or a course name. Here is the coding I have done so far and as
usual it does not work so any help is appreciated.

dtml-in "_.getitem(ProgCode + 'CL')"
dtml-var sequence-item
/dtml-in

Terry

--
__
Terry Babbey
Technical Support Specialist
Lambton College, Sarnia, Ontario, Canada
__



___
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] looping through objectValues, how to get methods?

2000-07-19 Thread Chris McDonough

days_mixing = getattr(i, 'mixing_for')
a = days_mixing()

 -Original Message-
 From: ed colmar [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 19, 2000 11:09 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] looping through objectValues, how to get methods?
 
 
 I have a method that looks through "objectValues".  Using 
 "hasattr" and
 "getattr" I can see the variables contained in the object.  
 
 How do I get the values generated from an object's method in a similar
 fashion?  
 
 For example:
 
 def dj_experince_statistics(self):
 """  
 
 """
 rlist = self.People.objectValues('SRPersonPost')
 newbcount=0
 for i in rlist:
 if hasattr(i, 'validated'):  #get validated variable
 if hasattr(i, 'djname'): #get djname variable
 if hasattr(i, 'mixing_for()'):  #try to get
 mixing_for() method
 days_mixing=getattr(i,'mixing_for()')
 if days_mixing  730.0:
 newbcount=newbcount+1 
 return newbcount
 
 
 BTW this does not work.
 
 Thanks for any suggestions!
 
 -ed-
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




Re: [Zope] Running Zope 2.2 on Solaris 2.7

2000-07-19 Thread Christopher J. Kucera

Andreas Rippel wrote:
 I couldn't add any kind of object, while getting messages like
...
 Error Type: SuperCannotOwn
 Error Value: Objects cannot be owned by the superuser

That's because in Zope 2.2.0, you can't create objects as the superuser.
You'll have to create a user for yourself with the "Manager" role to
add objects. 

-CJ

___
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] Running Zope 2.2 on Solaris 2.7

2000-07-19 Thread Diny van Gool

At 16:41 19-7-00 +0200, Andreas Rippel wrote:
I installed Zope 2.2 for Solaris 2.6 on Solaris 2.7.
After starting an accessing as superuser I wanted to add an object e.g.
a folder.
I couldn't add any kind of object, while getting messages like

Hi,

First you have to create another user and give it the manager role.
Then close all instance of your browser, login again as the new user you've
just created.
This user can add objects.

Diny



DIVA
Faculty of Veterinary Medicine
Utrecht University
The Netherlands
http://www.vet.uu.nl

___
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] looping through objectValues, how to get methods?

2000-07-19 Thread Jerome Alet

On Wed, 19 Jul 2000, ed colmar wrote:

 I have a method that looks through "objectValues".  Using "hasattr" and
 "getattr" I can see the variables contained in the object.  
 
 How do I get the values generated from an object's method in a similar
 fashion?  
 
 For example:
 if hasattr(i, 'djname'): #get djname variable
 if hasattr(i, 'mixing_for()'):  #try to get
 mixing_for() method

did you try removing the parenthesis, like:

if hasattr(i, 'mixing_for')

good luck

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE



___
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] looping through objectValues, how to get methods?

2000-07-19 Thread Chris Withers

Hi Ed :-)

StarRave marches on I see...

I'm assuming mixing_for is a method?

 if hasattr(i, 'mixing_for()'):  #try to get
 mixing_for() method
 days_mixing=getattr(i,'mixing_for()')

in which case the above should be:
 if hasattr(i, 'mixing_for'):
 days_mixing=i.mixing_for()

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] calendar installation

2000-07-19 Thread Vincent Maton

I want to use calendar, I see it on screen but I can't use it because, I
think that I have a problem to install all of calendar like the external
method (I can't istall it, of course i'm not a Python programmer)

Can you tel me How Can I use the "Calendar" ???

Thank you a lot.


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

2000-07-19 Thread Maik.Röder

Hi Vincent !

Vincent Maton schrieb:
 
 Hello !!!
 can you tell me how can I use the "cookies"

Just go to the following page:

http://zdp.zope.org/portals/developers/sessionmanagement/cookies

If you find another resource that we have overlooked, please
add it yourself on this page. People can then see your 
contribution on the following page, which lists all things
that change or have been added to the ZDP site:

http://zdp.zope.org/SearchLastChanged/

Best regards,

Maik Röder

___
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] Changing my session identity

2000-07-19 Thread Andreas Rippel

Hi,

does anybody know a possibility to change the identity during a browser
process,
without killing all clients and logging in again?

Thanks
Andreas

___
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] Bi-directional update of Data.fs

2000-07-19 Thread Albert Langer

[AL] If you do find it, please pass on a strong recommendation to checkout
the Coda file system included in FreeBSD. Coda has a LOT of research on how
to do this stuff that would be relevant to "Quorum Based Replication".

Sorry, I just noticed this message in passing and cannot follow up myself.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
McDonough
Sent: Wednesday, July 19, 2000 11:55 PM
To: Chris McDonough; 'Chris Withers'
Cc: 'Brenton Bills'; '[EMAIL PROTECTED]'
Subject: RE: [Zope] Bi-directional update of Data.fs


Actually, there is a proposal on the table for something like this in a
Wiki I can't find going by the name of "QuorumBasedReplication"

 -Original Message-
 From: Chris McDonough
 Sent: Wednesday, July 19, 2000 9:51 AM
 To: 'Chris Withers'; Chris McDonough
 Cc: 'Brenton Bills'; [EMAIL PROTECTED]
 Subject: RE: [Zope] Bi-directional update of Data.fs


 Perhaps.  Patches accepted :-)

  -Original Message-
  From: Chris Withers [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 19, 2000 5:27 AM
  To: Chris McDonough
  Cc: 'Brenton Bills'; [EMAIL PROTECTED]
  Subject: Re: [Zope] Bi-directional update of Data.fs
 
 
  Chris McDonough wrote:
   There is no generic diff or merge facility for two
  arbitrarily modified
   Data.fs files.
 
  Perhaps Zope or ZEO could do Lotus Notes - style replication at some
  point in the future?
 
  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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



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




RE: [Zope] Changing my session identity

2000-07-19 Thread Chris McDonough

In dtml:

raise Unauthorized
You are unauthorized.
/raise

If you enter a new valid username/password combo in, you'll be validated
and your identity will be changed.

If you cancel or enter an invalid username/password combo, you'll still
be logged in as whomever you started with.

 -Original Message-
 From: Andreas Rippel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 19, 2000 11:30 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Changing my session identity
 
 
 Hi,
 
 does anybody know a possibility to change the identity during 
 a browser
 process,
 without killing all clients and logging in again?
 
 Thanks
   Andreas
 
 ___
 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] Problem with ZClasses and Permissions

2000-07-19 Thread Frederic QUIN

Hi all,


I created a ZClass. Automaticly, Zope has created a new Permission called
"Add MyZClass". I activated this Permission for a role called "simple user".
But, when a user connected has a "simple user" try to add an object from
"MyZClass", he can't. Zope return an error... Is there
any other Permissions that I should activate ? Do I need to change the
configuration of "MyZClass" ?


Thanks
Frederic


___
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-19 Thread Bill Anderson

Toby Dickenson wrote:
 
 On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED]
 wrote:
 
  I might be reading more into his words than was intended, but I think
  this demonstrates the problem. Distributing multiple requests for one
  section across multiple servers is (what I consider to be)
  undesirable.
 
 You can actually do it either way. Curtis (AIUI) complained that the
 method described meant your site depended upon each of th esection's
 servers being up, that there was no redundancy. So I described a way of
 doing it with redundancy.
 
 What you described doesn't scale up to having 1000's of sections
 (which I was assuming, and I think Curtis was too).  If this isn't a
 problem, then your solution is great.

I don't understand why you think it doesn't. DNS has clearly
demonstrated the ability to handle 'thousands', and the entire
scalability of a cluster is the addition of machines. You appear to be
desirous of having a machine handle a section. Thus, for thousands of
sections, you have thousands of machines. Again, with a ZEO clusters the
bottleneck/SPOF would be the ZSS, but that _could_ be worked aorund, and
has nothing to do with 'sections' of a website. 

Beyond that, your bottleneck would be networking. Whether yoour
individual BE servers responded directly to the web browser, or whether
they were channeled through a single/multiple FrontEnd servers. The
decision to implement a BE-Client vs. a BE-FE-Client topology has not
been discussed, as it is irrelevent to the discussion.

In fact, come to think of it, I have noticed many sites redirect a
/foo/bar usr to a foo.domain.com or bar.domain.com.

 
 EddieWare does do 'intellgient' caching
 
 eddieware is on my list of option to try out next month... Ill keep
 you posted

Cool.


--
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] Date time format

2000-07-19 Thread Spicklemire, Jerry

The DTML User Guide has an "Appendix A" that shows lot's of options, but no
examples. Anyhow, see:

http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.18.html

You can use these like so:

dtml-var ZopeTime fmt=="%Y/%m/%d"

dtml-var ZopeTime fmt=="AMPM"

dtml-call "REQUEST.set('d_Date',ZopeTime().strftime('%Y/%m/%d'))"
dtml-var d_Date

dtml-call "REQUEST.set('d_Date',ZopeTime().strftime('AMPM'))"
dtml-var d_Date

You can also use Python slicing syntax to do something
totally ridiculous like this:

dtml-call "REQUEST.set('z_t',ZopeTime())"
dtml-call "REQUEST.set('z_sec',_.int(z_t))"
dtml-call "REQUEST.set('day_t',_.string.split(_.str(z_t))[1])"
dtml-call "REQUEST.set('hour_sec',_.int(_.string.split(day_t,':')[0]) *
3600)"
dtml-call "REQUEST.set('min_sec',_.int(_.string.split(day_t,':')[1]) *60)"
dtml-call "REQUEST.set('sec_t',_.string.split(day_t,':')[2])"
dtml-call "REQUEST.set('sec_sec',_.int(_.string.split(sec_t,'.')[0]))"
dtml-call "REQUEST.set('sum_sec', hour_sec + min_sec + sec_sec - 1)"
dtml-call "REQUEST.set('start_sec', _.int(z_t) - sum_sec)"
dtml-call "REQUEST.set('end_sec', start_sec + 86398)"

dtml-var "_.DateTime(start_sec)" fmt="AMPM"br
dtml-var "_.DateTime(end_sec)" fmt="AMPM"br

to find the first and last seconds of a date.

Have a good time!
Jerry S.








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




Re: [Zope] Simple DTML-IN question

2000-07-19 Thread Andy McKay

Part of the problem here is that you cannot loop through a string (which is
what a DTML Document returns). You can split the string and loop through
that or more efficiently create a lines property on an object and loop
through that. Something like:

property: Course, type: lines

dtml-in Course
  dtml-let item=sequence-item
dtml-if "item[7] = '-'"
  
/dtml-if
 /dtml-let
/dtml-in

- Original Message -
From: "Terry Babbey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 19, 2000 7:59 AM
Subject: [Zope] Simple DTML-IN question


 Everytime I think I am beginning to understand I try to do something
 new and wham! It won't work for me.
 I have a dtml-document that I have a list of courses for a college
 program. I would like to list the courses one item at a time checking
 the 8th character to see if it is a '-' so I know if the line is a
 comment or a course name. Here is the coding I have done so far and as
 usual it does not work so any help is appreciated.

 dtml-in "_.getitem(ProgCode + 'CL')"
 dtml-var sequence-item
 /dtml-in

 Terry

 --
 __
 Terry Babbey
 Technical Support Specialist
 Lambton College, Sarnia, Ontario, Canada
 __



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



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




Re: [Zope] Bi-directional update of Data.fs

2000-07-19 Thread Otto Hammersmith

If you manage to find it, would you post a link to it?

Thanks.

-Otto.


Chris McDonough wrote:
 
 Actually, there is a proposal on the table for something like this 
 in a Wiki I can't find going by the name of "QuorumBasedReplication"

___
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] Bi-directional update of Data.fs

2000-07-19 Thread Chris McDonough

Aha... http://www.zope.org/Wikis/ZEO/QuorumBasedReplication

Jim's heading this up.  We had a professor from George Mason University
in here and everything.  The whiteboard was filled with scrawlings.  :-)
It's definitely something we're interested in.

 -Original Message-
 From: Otto Hammersmith [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 19, 2000 1:50 PM
 To: Chris McDonough; [EMAIL PROTECTED]
 Subject: Re: [Zope] Bi-directional update of Data.fs
 
 
 If you manage to find it, would you post a link to it?
 
 Thanks.
 
   -Otto.
 
 
 Chris McDonough wrote:
  
  Actually, there is a proposal on the table for something like this 
  in a Wiki I can't find going by the name of "QuorumBasedReplication"
 
 ___
 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] RE: Date time format

2000-07-19 Thread Spicklemire, Jerry

Oops! Change those "==" to just single "=".
Too much Python on the brain . . .

-Original Message-
From: Spicklemire, Jerry 
Sent: Wednesday, July 19, 2000 12:15 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Date time format


The DTML User Guide has an "Appendix A" that shows lot's of options, but no
examples. Anyhow, see:

http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.18.html

You can use these like so:

dtml-var ZopeTime fmt=="%Y/%m/%d"

dtml-var ZopeTime fmt=="AMPM"

dtml-call "REQUEST.set('d_Date',ZopeTime().strftime('%Y/%m/%d'))"
dtml-var d_Date

dtml-call "REQUEST.set('d_Date',ZopeTime().strftime('AMPM'))"
dtml-var d_Date

You can also use Python slicing syntax to do something
totally ridiculous like this:

dtml-call "REQUEST.set('z_t',ZopeTime())"
dtml-call "REQUEST.set('z_sec',_.int(z_t))"
dtml-call "REQUEST.set('day_t',_.string.split(_.str(z_t))[1])"
dtml-call "REQUEST.set('hour_sec',_.int(_.string.split(day_t,':')[0]) *
3600)"
dtml-call "REQUEST.set('min_sec',_.int(_.string.split(day_t,':')[1]) *60)"
dtml-call "REQUEST.set('sec_t',_.string.split(day_t,':')[2])"
dtml-call "REQUEST.set('sec_sec',_.int(_.string.split(sec_t,'.')[0]))"
dtml-call "REQUEST.set('sum_sec', hour_sec + min_sec + sec_sec - 1)"
dtml-call "REQUEST.set('start_sec', _.int(z_t) - sum_sec)"
dtml-call "REQUEST.set('end_sec', start_sec + 86398)"

dtml-var "_.DateTime(start_sec)" fmt="AMPM"br
dtml-var "_.DateTime(end_sec)" fmt="AMPM"br

to find the first and last seconds of a date.

Have a good time!
Jerry S.








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




[Zope] Telecommuter

2000-07-19 Thread Luis Cortes

Hi,

I was wondering if anybody has some odd jobs for me to do with Zope or
Python.  I am availiable for telecommute positions.  I have 5 years experience
as a programmer/software engineer and I have recently picked up Zope and
Python, but already I feel like an old pro.  Drop me an email or give me a call
(505) 824-9424.

Thanks,
Luis.

___
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] Bi-directional update of Data.fs

2000-07-19 Thread Brad Clements

On 19 Jul 2000, at 13:57, Chris McDonough wrote:

 Aha... http://www.zope.org/Wikis/ZEO/QuorumBasedReplication
 
 Jim's heading this up.  We had a professor from George Mason University in
 here and everything.  The whiteboard was filled with scrawlings.  :-) It's
 definitely something we're interested in.


I've been teasing myself with the idea of using CODA as a storage for 
Zope. It has built-in "per-object" replication, hoarding (download all these 
objects so I can go to the beach) and sychronization.




Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] Bi-directional update of Data.fs

2000-07-19 Thread Chris Withers

Brad Clements wrote:
  Aha... http://www.zope.org/Wikis/ZEO/QuorumBasedReplication
 
  Jim's heading this up.  We had a professor from George Mason University in
  here and everything.  The whiteboard was filled with scrawlings.  :-) It's
  definitely something we're interested in.
 
 I've been teasing myself with the idea of using CODA as a storage for
 Zope. It has built-in "per-object" replication, hoarding (download all these
 objects so I can go to the beach) and sychronization.

That would be very cool :-)

If you've got the knowledge to do this, please put it to good use :-)

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] Bi-directional update of Data.fs

2000-07-19 Thread Chris Withers

Otto Hammersmith wrote:
 
 Chris Withers wrote:
 
  Chris McDonough wrote:
   There is no generic diff or merge facility for two arbitrarily
   modified Data.fs files.
 
  Perhaps Zope or ZEO could do Lotus Notes - style replication at some
  point in the future?
 
 *droool*
 
 There's that Python IDE that someone was working on using Mozilla.  

Do you mean ZopeStudio? It's the javascript thing that is going to be
Zope's IDE...

 I
 think Jim suggested running Zope embedded in that.. it would be sweet to
 have that be able to "replicate".  Install the IDE, replicate, go
 develop by the beach and replicate when you get back

Definitely, can someone say whether QuorumBasedReplication would handle
this on whether it's designed more for real-time replication between
storage servers in the ZEO world?

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] Bi-directional update of Data.fs

2000-07-19 Thread Martijn Pieters

On Wed, Jul 19, 2000 at 08:47:43PM +0100, Chris Withers wrote:
  There's that Python IDE that someone was working on using Mozilla.  
 
 Do you mean ZopeStudio? It's the javascript thing that is going to be
 Zope's IDE...

No, he's talking about ActiveState's Komodo.

-- 
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 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] Newbie: How to create a Oracle connection (DCOracle)

2000-07-19 Thread Dieter Maurer

gustavo writes:
  Finally, I installed DCOracle and works fine. But, how to create a Oracle
  connection inside Zope? I tried to add a SQL Method and received this warning:
   
  Warning: There are no SQL database connections. You need to add a Zope SQL database
  connection before you can use a Zope SQL Method. 
  
  I not found nothing about that in documentation. Could you help me?
You did install ZOracleDA?

Then, your available objects should list a Z Oracle Database Connection.
Add one.

If not, go to ControlPannel/Products.
There you should see a (maybe broken) ZOracleDA product.
If it is broken, click on it. You will see a traceback
that usually tells you what went wrong.


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

2000-07-19 Thread Dieter Maurer

Firestar writes:
  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)

I have to admit that in this case the end of the traceback
tells not much about the problem.

I found in the sources (ZPublisher.HTTPResponse)
that the resource not found is indicated as
an HTML *comment* in the error page.
I do not know, why the implementers hide this information.


Anyway, the traceback seems to suggest that the problem
is immediately at the top level of your URL.
Is it possible that your "Data.fs" is empty or otherwise in a
strange state?
What happens, if you access your site with
"host:port/manage"?


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

2000-07-19 Thread Dieter Maurer

Manuel Schulte writes:
  
  The problem seems to be that the catalog will not update
  after I Input a value that the catalog has not yet seen for a particular
  field.
  
Maybe, you are hit by one of the catalog/lexicon bugs.

Look in the archives or the collector (http://classic.zope.org:8080/Collector).
Search for "lexicon bug".


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] Broken products in 2.2 - bug?

2000-07-19 Thread Dieter Maurer

Peter Arvidsson writes:
  Is products treated in a different way in 2.2 final than in 2.1.6?
  
  When I restart Zope all instances of my (and some imported) products
  become broken because it cant find the product it is an instance of.
Did you read the Zope 2.2 upgrade information?

To narrow down the problem, you to the Control_Panel/Products
page. The products should there be broken, too.
The traceback tabs of a broken product should give you a hint
regarding the problem.



Dieter

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




Re: [Zope] http://www.atomasoft.com/yahoo-yes!.something

2000-07-19 Thread Dieter Maurer

Jonathan Desp writes:
  I did it, and you still can see the sentences --
The debug mode adds the traceback.

The other "sentences" (?) are (usually) generated by
"standard_error_message".

Unfortunately, there are a few exception (like "Resource not Found")
that are build into Python code (sigh).


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

2000-07-19 Thread Dieter Maurer

michael montagne writes:
  I'm trying to use the HTMLcalendar.py as an external function.  The
  supported files are these:
  import string, time
  from HTMLcolors import *
  from HTMLgen import SimpleDocument, TableLite, TD, TR, Font, Name, H,
  Center, Href
  from types import IntType
  from calendar import day_name, month_name, mdays, weekday
  
  I placed HTMLcolors.py, HTMLgen.py, and HTMLcalendar.py in a
  Website/Extensions folder on my hard drive.  Not in the extensions folder I
  made thru the Zope interface.  When I try and add an external method,
  specifying HTMLcalendar, i get an error telling me that HTMLcolors can't be
  found.  What is the proper way to reference multiple files like this?  Is
  this the proper way to use HTMLgen?  
You must make sure that your modules are found via the Python
path mechanism.

You may extend "PYTHONPATH" to include the directory, where
you have placed your modules.

However, I would follow a DC recommendation:

  Create a subfolder "company_name" in the directory
  ".../lib/python/Shared" and place your company specific
  infrastructure there (maybe in subfolders).

  From Python, you would access it by:

form Share.company_name import 

  i.e. as a Python package.

  Do not forget, to provide a "__init__.py" file
  in each package directory. It may be
  empty.


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] Implementing full text search

2000-07-19 Thread Dieter Maurer

Erich Seifert writes:
  I tried to create a full text search for my existing site. All went fine:
  I can search my whole site's document contents (via PrincipaSourceSearch)
  and titles (using 'or' as in advanced zcatalog searching how-to).
  
  The problem I have at the moment is that Zope only searches in unrendered
  content and all html and dtml code is found also when searching.
  How can I search my documents with all dtml-vars inserted and without all html
  code or at least dtml code?
It is difficult to have the dtml-vars inserted, at least in the general
case.
Many DTML methods and documents need a context (client, namespace, REQUEST)
to be rendered. Without this context, currently no provided
by ZCatalog, rendering would throw exceptions and the
document would not be cataloged.

Probably, you can filter away all DTML and HTML tags.
You would give "DTMLMethod" a new method, say "filteredSource".
"filteredSource" could use sgmllib (or, more efficiently, sgmlop)
to just keep the pure text and resolve simple character entities.
Yes, it needs a Zope extension and it requires programming in
Python.


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] Problems with Coding differences to do same stuff...boundary=------------EAFFAD5A57052936695E91D7

2000-07-19 Thread Dieter Maurer

  Trying to do a simple thing as creating a document and then adding a
  property with an DTML method, found that the following code does not
  work, it comes up with a password request (all security settings are at
  defaults):
  
   dtml-call
  "company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"
   dtml-with "company.noticias._[titulo]"
  dtml-call
  "propertysheets.manage_addProperty('link',resumen,'text')" 
   /dtml-with

Try
dtml-with "_.getattr(company.noticias,_[titulo])"


In DTML, you are not allowed to access any attribute
starting with "_".
And in fact, "_" is not even an attribute of "company.noticias".


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] Bi-directional update of Data.fs

2000-07-19 Thread Brad Clements

On 19 Jul 2000, at 20:32, Chris Withers wrote:

  I've been teasing myself with the idea of using CODA as a storage for
  Zope. It has built-in "per-object" replication, hoarding (download all
  these objects so I can go to the beach) and sychronization.
 
 That would be very cool :-)
 
 If you've got the knowledge to do this, please put it to good use :-)

I can't afford to spend the time on it. I have a family to feed.



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] http://www.atomasoft.com/yahoo-yes!.something

2000-07-19 Thread Chris Withers

Dieter Maurer wrote:
 Unfortunately, there are a few exception (like "Resource not Found")
 that are build into Python code (sigh).

Resource not found should get handled fine in 2.2

Anauthorized, sadly, doesn't. This was supposed to get fixed but seems
to haev dropped by the wayside :(

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

2000-07-19 Thread Jonothan Farr

 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.

It is. It's hard. I'm going to need some help with this one, I'm afraid.

--jfarr



___
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] Broken products in 2.2 - bug?

2000-07-19 Thread Bill Anderson

Dieter Maurer wrote:
 
 Peter Arvidsson writes:
   Is products treated in a different way in 2.2 final than in 2.1.6?
  
   When I restart Zope all instances of my (and some imported) products
   become broken because it cant find the product it is an instance of.
 Did you read the Zope 2.2 upgrade information?
 
 To narrow down the problem, you to the Control_Panel/Products
 page. The products should there be broken, too.
 The traceback tabs of a broken product should give you a hint
 regarding the problem.


Actually, I have lots of broken product instances, yet the control panel
lists the product(s) as fine.

:(

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




Re: [Zope] GUF Authentication Problems

2000-07-19 Thread Mario Premke

Yes - thanks to Brad.
Give the proxy role (Authorizer) the permission
"Access contents informations" in the folder you 
want to protect (i.e. the folder above GUF).
Cheers
Mario

 
 Did anyone find a solution to this problem?
 
 I have the exact same problem when try to access that object:
 
 2000-07-19T22:09:27 ERROR(200) GUF
 http://127.0.0.1:8080/acl_users/userAuthenticate raised an exception
 (('Unauthorized', 0, traceback object at 18bf888))
 
 Thanks
 
 - Original Message -
 From: "Mario Premke" [EMAIL PROTECTED]
 To: "Dieter Maurer" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, July 17, 2000 9:25 AM
 Subject: Re: [Zope] GUF Authentication Problems
 
 
  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 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] Reversing acquisition?

2000-07-19 Thread Luciano Ramalho

[EMAIL PROTECTED] wrote:
 The effect I would like to achieve is:
 when user access http://myserver/,
 content of /text_object_1 and /text_object_2 will be shown
 while user access http://myserver/subfolder/,
 content of /subfolder/text_object_1 and /subfolder/text_object_2
 
 The point is that there's no index_html in /subfolder
 so /index_html will be acquested and by default it displays
 content of /text_object_1 and /text_object_2
 
 The question is: we got text_object_1 and text_object_2 in /subfolder
 how could I let the acquested index_html in subfolder to use the
 objects inside the subfolder?

What you want is what Zope already does! 

That is how acquisition works: if /subfolder has no index_html, it will
acquire that object from the root. But the DTML inside index_html will
be rendered in the context (namespace) of the subfolder, so the desired
effect will be achieved.

Regards,

Luciano Ramalho

___
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] LocalFS and Image Files

2000-07-19 Thread Rogerio Atem de Carvalho

Hi,

I am using LocalFS to refer to image files (.jpg).
I tried localfsObj['imagefile.jpg'] but it doesn't  
render the image. The same occurs inside Zope management 
interface, i.e., if I try "view", it shows me a broken 
link.
I am testing it on 2.1.6 Win32, but it will go online in 
2.1.7 Linux.

Any hint?

regards,

Rogerio Atem


---
E-mail enviado pelo servidor do CEFETCampos

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




Re: [Zope] Powered by Oasis?

2000-07-19 Thread Tim Cook

Ng Pheng Siong wrote:
 
 http://www.cyclic.com/CVS/Dev/codewindow/linkhere
 
 Gives a Zope error.
 
 Icon at bottom says "Powered by Oasis".
 

Interesting.  I took some time to browse around OpenAvenue to
find their attribution to Digital Creations  / or Zope. 
Couldn't find one anywhere.  Looks like they're trying to take
full credit for the infrastructure. Without actually saying it.

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

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




Re: [Zope] ZEO and a front end...

2000-07-19 Thread Curtis Maloney

On Thu, 20 Jul 2000, Bill Anderson wrote:
 Toby Dickenson wrote:
  On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED]
 
  wrote:
   I might be reading more into his words than was intended, but I think
   this demonstrates the problem. Distributing multiple requests for one
   section across multiple servers is (what I consider to be)
   undesirable.
  
  You can actually do it either way. Curtis (AIUI) complained that the
  method described meant your site depended upon each of th esection's
  servers being up, that there was no redundancy. So I described a way of
  doing it with redundancy.
 
  What you described doesn't scale up to having 1000's of sections
  (which I was assuming, and I think Curtis was too).  If this isn't a
  problem, then your solution is great.

 I don't understand why you think it doesn't. DNS has clearly
 demonstrated the ability to handle 'thousands', and the entire
 scalability of a cluster is the addition of machines. You appear to be
 desirous of having a machine handle a section. Thus, for thousands of
 sections, you have thousands of machines. Again, with a ZEO clusters the
 bottleneck/SPOF would be the ZSS, but that _could_ be worked aorund, and
 has nothing to do with 'sections' of a website.

Bill,

Whilst the structures you've described are very effective, your example of 
libc.org required one thing in particular that I'm not sure is available: 
prior knowledge of which sections will be hit hardest.

Essentially, your setup allows any 'server' to become a 'server cluster' for 
scaling purposes.  Great!  So, if for now on we assume 'server' can mean 
'single or cluster of servers'

The desire isn't for fixed server-section relationship.  Instead, a 
'preference' for that section to go to a particular server, so that the 
request 'hopefully' goes the server with the greatest chance of having the 
relevant objects in cache.

In fact, with the further information provided, what you really want is for 
requests from a particular client to go to the same server.  This would be 
better served with a redirection to a server specific domain name 
(serverN.mysite.com).  However, for the initial request, your best choice is 
to go to the server that last served those pages.

Since dynamically tracking this info would be onerous, by encouraging 
requests for one section toward a particular server, you improve the chances 
of it holding the relevant objects in cache, with merely a fraction of the 
processing/data overheads.

 Beyond that, your bottleneck would be networking. Whether yoour
 individual BE servers responded directly to the web browser, or whether
 they were channeled through a single/multiple FrontEnd servers. The
 decision to implement a BE-Client vs. a BE-FE-Client topology has not
 been discussed, as it is irrelevent to the discussion.

Ah, topology.  (I'm leaving it there.  I really don't have time to get into 
this fully :)


 In fact, come to think of it, I have noticed many sites redirect a
 /foo/bar usr to a foo.domain.com or bar.domain.com.

  EddieWare does do 'intellgient' caching
 
  eddieware is on my list of option to try out next month... Ill keep
  you posted

 Cool.

Have a better one,
Curtis

dtml-var standard_work_disclaimer

___
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] manage_pasteObjects() permissions?

2000-07-19 Thread Jason Byron

Can anyone tell me what permissions are required to
get these copy and paste functions to work?

manage_copyObjects()

manage_pasteObjects()


Everytime I use them I get a Copy Error with the
manage_pasteObjects() function. And I am not sure
the copy function is working at all.


thanks, 
Jason

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.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] Znolk SQL Wizard + Postgres

2000-07-19 Thread Nitesh Dhanjani


Hello,

According to
http://www.zope.org/Members/zwork/Znolk_SQL_Wizard/index_html , Znolk SQL
Wizard should work with PostgreSQL. However, after making a PoPy Database
Connection, when I initiate the Znolk_SQL wizard, I get : 

"Warning: There are no database connections. You need to add a Zope
database connection in this folder (or in a folder above) before
you can use this wizard. 

By now, the wizard just recognizes MySQL connections."

So, does this product work with postgres or not? Any suggestions will be
appreciated.



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