[Zope] why this happens? a bug?

2000-07-11 Thread Júlio Dinis Silva

Is there a guru to explain why this happens?

Create a document with the following code:

dtml-if "PATH_INFO == '/'

dtml-comment
Some code
/dtml-comment

dtml-call "RESPONSE.set('list',[])"

dtml-in list
dtml-var sequence-item
/dtml-in

/dtml-if

Note: it is expected for this code to give a dtml parse error
because there isnt a terminating " in the first if sentence.
Yeah, but try to execute this page and view the page source on your 
browser... you'll get the dtml source.

Best Regards,

Júlio Dinis Silva

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


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




Re: [Zope] ZDiscussions and Zope 2.2

2000-07-20 Thread Júlio Dinis Silva

I'm using ZDiscussions 1.0 on 2.2 with no problems.
Regards,
Júlio Dinis Silva

From: "J. Atwood" [EMAIL PROTECTED]
To: Gidon Friedman [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [Zope] ZDiscussions and Zope 2.2
Date: Thu, 20 Jul 2000 10:28:36 -0400

Good.. that means that it was an inherited problem. :)

J

  From: Gidon Friedman [EMAIL PROTECTED]
  Date: Thu, 20 Jul 2000 15:08:25 +0200
  To: "J. Atwood" [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: [Zope] ZDiscussions and Zope 2.2
 
  I used the old ZDiscussions 0.2, but i installed the
  new ZDiscussions 0.3.2 now, and the results are
  _exactly_ the same.
 
  cheers
 
  gidon
 
  Are you using the old ZDiscussions or ZUBB?
 
  I have not had the time to fix ZUBB to work with 2.2 but will try this
  weekend.
 
  J
 
 


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



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


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




[Zope] Acquisition, Not! How?

2000-08-24 Thread Júlio Dinis Silva

I know this sound strange but is there a way to,
during execution of a dtml method, when a with tag is used one
force acquisition not to be used?

example:

/root/a/b/c
/root/c

say dtml-with "root.a.c" was a mistake so I dont want the root.c namespace 
to be imported due to acquisition and instead I want to raise an exception.

How can I "turn off" acquisition?

I love acquisition, I know its great but I dont want it in a specific case. 
Is there a way to turn off?

Thanx,
Júlio Dinis Silva

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


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




Re: [Zope] Acquisition, Not! How?

2000-08-24 Thread Júlio Dinis Silva

  I know this sound strange but is there a way to,
  during execution of a dtml method, when a with tag is used one
  force acquisition not to be used?
 
  example:
 
  /root/a/b/c
  /root/c
 
  say dtml-with "root.a.c" was a mistake so I dont want the root.c 
namespace
  to be imported due to acquisition and instead I want to raise an 
exception.
 
  How can I "turn off" acquisition?
 
  I love acquisition, I know its great but I dont want it in a specific 
case.
  Is there a way to turn off?

Try:

   dtml-with aq_explicit
 dtml-var "root.a.c"
   /dtml-with


This result in a system error (infinite loop) :-(
I'll follow this aq_explicit tip.

Thanx anyway,
Júlio Dinis Silva




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


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




[Zope] MountedFileStorage

2000-09-08 Thread Júlio Dinis Silva

Hi,

Using and reading the MountedFileStorage
Product I got the impression that I can mount an existing Data.fs in another 
Data.fs. Is this possible or is only possible to mount a "create new" 
Data.fs?

Thanx,
Júlio Dinis

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

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


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




[Zope] FTP Server bug or feature

2000-09-14 Thread Júlio Dinis Silva

Hi all,

just to check:

with zope 220 when I do any changes to a normal user in a normal
acl_users folder this user can no more access the zope module via ftp, i.e, 
login ok but a simple dir command return a unauthorized error .
Isn't suppose to the FTP server view this changes cause its accessing the 
acl_users in memory? I only solve this restarting the ftp server.
Is suppose to be like this, restart the ftp server to reflect user 
permissions changes?

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

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


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




[Zope] Zope 2.2.2 breaks zdiscussions

2000-09-19 Thread Júlio Dinis Silva

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

somewhere on startup:

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

Anyone?

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


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

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


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




Re: [Zope] Zope 2.2.2 breaks zdiscussions

2000-09-19 Thread Júlio Dinis Silva

Hi,

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

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

-


And now the traceback from ZDConfera:

--
ZDConfera Import Traceback

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




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

--

Error: NameError

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



-- Julio Dinis Silva


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

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


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




Re: [Zope] Zope 2.2.2 breaks zdiscussions

2000-09-19 Thread Júlio Dinis Silva

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

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

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

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

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


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




[Zope] webdav security

2000-09-27 Thread Júlio Dinis Silva

Hello all!

Lets say that anyone can do "cadaver www.myhost.com" and after that a "ls" 
listing my content. I know the user will see the objects processed, but just 
the fact that he can see my structure is bad for security.

How do I disable the webdav access, if possible?

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

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


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




[Zope] zope needs webdav global access *ON/OFF* feature

2000-09-29 Thread Júlio Dinis Silva

Hi all,

I think zope MUST have a way to disable webdav access.
Running a webdav client on some zope sites I found in almost all
of them things like test_html index_html_old and some other
forgiven methods that programmers leave on their applications.
Depending on what test programmers were doing in this methods
one could find a way to do some DOS on does sites, just to begin.

I mean, even if the user dont have permissions to edit/save methods,
just the fact that he is browsing my structure and viewing my methods is bad 
for security.

I looked at source and the webdav implementation is class specific
implemented, i.e, only objects of classes that import webdav stuff and
implement it are Published by zope to a webdav client.

I tryed to find a *central* switch to disable it on ZServer or ZPublisher, 
but no luck. I also tryed to find something like
domain restriction which could be another way to disable webdav.
The solution of disable Access Contents Information to anonymous isnt
pratical on a complex site already in production.

I'll try to find a way to disable/restrict the webdav access.

Any suggestion?

Best Regards,
Júlio Dinis Silva


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

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


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




[Zope] Zope sites DOS

2000-09-29 Thread Júlio Dinis Silva

Hi all,

all you that have sites running zope, its better  to optimize your
applications deleting methods you do not use anymore and
check for you External/Python Methods anonymous permissions.

I've just tested some DOS on sites running zope and ppl take care
with your methods permissions because finding them by webdav or
www.yoursite.com/objectIds its just a step to do bad things to your sites.

Take care ;-)

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

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


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




[Zope] script execution timeout?

2000-10-03 Thread Júlio Dinis Silva

Hi all,

Is there a place to define a script execution timeout?
I've been using urllib and there is no way to kill a urllib.open
if its taking too long. Does zope has that implemented?

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

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


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




[Zope] Database Pack

2000-10-12 Thread Júlio Dinis Silva

Hi all,

is there a way to do a pack to zodb without using the managment screens pack 
button?

Maybe a python script we could execute from the file system.

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

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


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




Re: [Zope] siteaccess + resolve_url problem

2000-10-26 Thread Júlio Dinis Silva

Opps! It was my problem.

The problem was:

You have www.mysite.com "siteaccesing" www.mysite.com/site1.
You have the following directory: /site1/myfolder

If you type in a browser www.mysite.com/myfolder there is no problem
because siteaccess handles the location of myfolder.

But you cannot use:
REQUEST.resolve_url('http://www.mysite.com/myfolder').
You must use:
REQUEST.resolve_url('http://www.mysite.com/site1/myfolder').
Otherwise you will get a resource not found.

Regards,
Júlio Dinis Silva




From: "Júlio Dinis Silva" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope] siteaccess + resolve_url problem
Date: Thu, 26 Oct 2000 22:55:46 WEST

Hi all,
I search for a solution in mailing lists but I didnt found a solution,
just people talking about the same problem.

this dtml code dont work with siteaccess:

dtml-with "REQUEST.resolve_url(SERVER_URL+'/some/path/to/a/object'"
some code
/dtml-with

I receive a Resource Not found error.
I saw a solution(patch) for ZCatalog, but here I'm not using ZCatalog, its 
a Zope resolve_url call.

Is there a solution?

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

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


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


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

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


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




[Zope] Gadfly auto-increment datatype option?

2000-10-27 Thread Júlio Dinis Silva

Hi,
Does ZGadfly supports the auto-increment option of a column?
Thanx,
Júlio Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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


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




[Zope] ZServer log buffer?

2000-11-02 Thread Júlio Dinis Silva

Hi all.

Supose you are saving z2.log on a mounted disk, either nfs linux or a WinNT 
cluster network name. If for some seconds that mounted disk became 
unavailable, isnt supose ZServer log system to buffer a little until the 
mounted resource became available again?
I'm dealing with the problem that z2.log "write system" on NT are giving me 
a IOError when the resource becames unavailable for some seconds.

If there isnt anything already to fix this, wouldnt be good if ZServer 
buffer a "little" until the resource became available and in the case the 
resource just completelly cease to be then ZServer just stop to write logs, 
instead of killing the process raising the exception?

I know what you are thinking: just dont permit the resource to became 
unavailable dude! But supose you have active-passive resources in case of 
fail down and you need some seconds to automatically or by hand(not the 
case) fix the resource, wouldnt be nice for ZSERVER to, for instance, stop 
logging.

Maybe this should not be addressed to Zope Log writes. Maybe
this is more a system administration issue but...

Thanx anyway for some comments.

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

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


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




[Zope] my brains?

2000-11-08 Thread Júlio Dinis Silva

Hello,

I'm doing some search in two catalogs I have. They each have
more than 1000 items. When a search is made besides taking to long
the debug information screen print a lot of my brains instance.
Can anyone explain what is this "my brains" thing or some page to go and 
read more about this?

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

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


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




[Zope] ZCatalog scalability?

2000-11-08 Thread Júlio Dinis Silva

Does anyone has a Catalog with more than 1500 items catalogued?
If yes does anyone can do searches to this Catalog in a
resonable time without freezing ZServer until it ends?

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

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


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




[Zope] Dr.Watson on NT

2000-11-10 Thread Júlio Dinis Silva

Hi all,
Is there a NT guru in the house :-)

Zope 222

Sometimes Zserver goes Zombie, I login on the machine and I see a
DrWatson Window. I close DrWatson window and the process automagically
restarts, and everything ok.

Whenever this happens two logs are written in EventLogger:
-one is a Warning: Restarting Zope...
-one is a Info: starting Zope...
With a couple of seconds of distance in time between them.

I can see something is puting ZServer zombie and I'm looking
at debug to find the sucker method :-) but this DrWatson
behaviour never seen by me before: could be Zope doing a Zombie Timeout and 
restarting himself? If yes why does he hangs and only by closing the 
DrWatson Window the python.exe process really restarts?

Any comments, tips, Dr.Watson Guru?
Best Regards,
Júlio Dinis Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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


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




[Zope] Version Lock/save/discard Problem

2000-11-20 Thread Júlio Dinis Silva

Hi,

I created a version in my zope root in which I've been working
for some days. I created some objects on my root folder when
working on my version which caused root to became locked.

Now I want to save/commit my version. I go to the save/discard form
and the save form post looks to work okay, i.e, I have a undo log
of this commit and If I try to save again Zope tells me there
is nothing else to save in the current version.

But... when I try to delete my version I get a VersionLockError,
and my root folder is still being locked.

Same goes to Discard, i.e, apparentely zope do the save/discard but
the locked files/folders continues there.

I've tryed with superuser, and even on the Control Panel Version manage,
with no luck.

I'm using zope222.
I'm using latest release of ZEO.
I do a pack to my Data.fs on a daily basis.

Anyone had this problem, any help?

Thanx,
Júlio Dinis Silva
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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




[Zope] Re: Version Lock/save/discard Problem

2000-11-21 Thread Júlio Dinis Silva

We have had the same problem with "saving" Versions on zope 2.2.2 +
ZEO. Our ZSS servers are on linux and our Zope Clients are on NT
(don't ask).

I have all ZSS and ZCS on NT but I isolated the possible zeo's
related problem running my Data.fs on a standalone zope and the problems 
persisted.


The only solution that worked for us so far is to repeatedly modify
the locked object and re-save the version. If it doesn't work at
first try again after a few hours. Eventually (after a dozen or so
tries) it seems to sort itself out.
We haven't seen documents become folders yet, but most of the work
was done in ZClasses.

I solved the problem with some packs to the Database. In no understandable 
way after one of the packs the discard and save worked
okay. In one of the packs I got this output:

ERROR(200) ZODB FS FS21 ERROR: Bad reference to 
('\000\000\000\000\000\010kQ','myversion')
ERROR(200) ZODB FS FS21 ERROR: Bad reference to 
('\000\000\000\000\000\010]\250','myversion')

Its obviously there was something wrong with myversion object,
but only after some more packs the save/discard worked okay.

But I quit versions because the locking of a folder when you
add objects is not a good feature of versions, specially if the one
locked is root, means you just loose the possibility of changing your
online "version" of your site like adding new objects, and changing locked 
ones.

I know this versionlock happened with CatalogAware objects from experience 
with zope 2.1.6 but for instance the locking of a document even for a change 
out of the version is something never happened in 2.1.6. I'm just seeing 
this in 222, maybe this is a result of those objects being in a locked 
folder.

Best Regards,
Júlio Silva
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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




[Zope] ZODBCDA problem?

2000-11-23 Thread Júlio Dinis Silva

Hi,

Some times my site stop responding. I have a winnt32odbc system
dsn to a sqlserver70. In my zope I have a ZOdbc_Connection using
this dsn. When my site hangs if I do a restart the python.exe process
grows to some size and then stop. I think he finished import Data.fs
and start ZServer but it just dont publish nothing.

The only solution I found was to delete the DSN restart the process
and after zope starts it now respond to gets with no problem,
then I create my DSN and voila my site is running ok.

Why do just deleting the DSN my zope starts correctly (not hanging)?
Could be the ZODBC connection object turned to some bad state on Data.fs, or 
the DSN on NT stop to connect to the sqlserver and became
"locked"?

Thanx for comments,
Júlio Dinis Silva

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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




[Zope] images last-modified bug?

2000-11-24 Thread Júlio Dinis Silva

Hi,

I read sometime ago of a bug in zope not sending images header
last-modified, which cause browsers to always get images from
zope not using the browser's cache. I'm seeing some different behaviour in 
my site statistics since I upgrade from 216 to 222, and
I think it could be related with this image problem. I search in HISTORY.txt 
but I cant find nothing saying If the bug really existed and if it was 
fixed.

Any help?

Best Regards,
Júlio Dinis Silva
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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




[Zope] Fwd: [Zope-dev] kill_zombies

2000-12-20 Thread Júlio Dinis Silva

I read in HISTORY.txt that something was fixed for Zope 2.0 but
I'm not having sucess with this channel killing. Is there another way, 
external_method or something, to kill a specific channel which is zombie?
Thanx,
Júlio Dinis Silva


From: "Júlio Dinis Silva" [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [Zope-dev] kill_zombies
Date: Wed, 20 Dec 2000 17:58:52 -

Hi,

since I started to use zeo, my medusa debug, close_zombies
stop to work. Is there another way to call this method close_zombies
or kill_zombies?

thanx,
Júlio Dinis Silva

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


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




[Zope] Fwd: [Zope-dev] How to delete ZServer's zombie channel?

2001-01-12 Thread Júlio Dinis Silva

Hi,

some times I see in my /Control_Panel/DebugInfo/manage,
channels opened longer than 48378.26s. How can I kill/delete a
specific zombie channel/request?

Thanx,
Júlio Dinis Silva

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


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




[Zope-dev] Zope max script execution time?

2001-01-12 Thread Júlio Dinis Silva

Is there a way to define a timeout for zope methods, documents?
Thanx,
Júlio Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




[Zope-dev] How to delete ZServer's zombie channel?

2001-01-12 Thread Júlio Dinis Silva

Hi,

some time I see in my /Control_Panel/DebugInfo/manage,
channels opened longer than 48378.26s. How can I kill/delete a
specific channel?

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


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




[Zope-dev] kill Zserver zombie channels

2001-02-20 Thread Júlio Dinis Silva

Hi,

blatantly taken from ZServer/HTTPServer.py and adultered is this code to 
kill zhttp channels used in zope by way of an external method:

def killzombies():
import ZServer
from ZServer import HTTPServer
from ZServer import medusa
from ZServer.medusa import asyncore
from ZServer.medusa import http_server

for channel in asyncore.socket_map.values():
if channel.__class__ == HTTPServer.zhttp_channel:
channel.close()

return 1

I ignore here the zombie_timeout, Im just killing all channels.
The problem is that I also kill the main python process.
I would apreciate if any zserver/medusa guru can iluminate my mind
on what I'm doing wrong here. In this code I only close
zhttp_channels and not zhttp_server ones, so I dont understand why the
server is also closed.

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


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



[Zope-dev] New Zcatalog bug on b2?

2001-03-16 Thread Júlio Dinis Silva

When passing in the REQUEST the var sort_on into the
searchREsults method I get this error:

Zope Errorr

Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: len() of unsized object

With this traceback:

Traceback (innermost last):
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 223, in publish_module
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 187, in publish
  File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Zope/__init__.py, 
line 221, in zpublisher_exception_hook
(Object: Traversable)
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 171, in publish
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/mapply.py, line 
160, in mapply
(Object: executeSearch)
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 112, in call_object
(Object: executeSearch)
  File /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/OFS/DTMLMethod.py, 
line 189, in __call__
(Object: executeSearch)
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_String.py, 
line 538, in __call__
(Object: executeSearch)
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, 
line 146, in render
(Object: Results="Catalog(REQUEST=REQUEST)")
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, 
line 334, in eval
(Object: Catalog(REQUEST=REQUEST))
(Info: REQUEST)
  File string, line 0, in ?
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py, 
line 530, in searchResults
(Object: Traversable)
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py, 
line 654, in searchResults
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py, 
line 591, in _indexedSearch
TypeError: (see above)









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


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



[Zope-dev] zserver medusa timeout? anyone?

2001-03-22 Thread Júlio Dinis Silva

Hi,

I would like to know if ANYONE has ever put timeout parameter
of ZServer/Medusa to work, i.e, if changing this timeout value to a low 
value and actually seen it to work, i.e, closing zombie channels.
Anyone done this? I've tryed almost everything on my limited knowledge
of zope/python, creating zombie requests running in a zserver with a  
timeout=realylowvalue but the request was never closed.
Maybe I'm realy missing something here.

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


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



[Zope-dev] Fwd: [Zope] ZCatalog + Directory product question

2001-05-17 Thread Júlio Dinis Silva

Any hints?
Best Regards,
Julio Dinis Silva


From: Júlio Dinis Silva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope] ZCatalog + Directory product question
Date: Tue, 15 May 2001 18:29:37 +0100

Hi,

supose you have a product with two classes:

MyCategory
   |
   -- MyLink

Both classes are CatalogAware.
The ideia of this classes is to implement
a Directory like yahoo (think about the Yiahw product).

Now I start creating my Directory.
My classes have a property active that I use
to activate and deactivate some parts of my Directory.

Now I want to search in my Catalog in which I have MyCategory and
MyLink instances catalogued.

When I do a search I want to retrieve only results with the
active property on. This is ease no big deal. But I want to guarante
that all PARENTS of a given Mylink are all with active property on. Yes 
no
big deal, for each result from my search I
run trough the getPath(data_record_id) or even PARENTS and check for each
Parent if they are all with active==on.

Well the problem arises when you have 30 results in your search and
all are Mylinks in a directory depth path of 10 category... The search
becomes to heavy,i.e, scalability is compromised.

I'm thinking I could use the zope security engine to do the active/deactive
trick, i.e, when I deactivate one MyCategory I uncheck some security entry,
then listing my directory I do a dtml-in with skip-unauthorized, and when I
do a search I try to getObject MyLink's
results as a anonymous role and then skip_unauthorized.

I think this skip_unauthorized could be the solution for this
ZCatalog+Directory product scalability, because instead of running
trough the PARENTS and check a property, I will be using zope's
internal security mecanism.

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


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

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