[Zope] undo error

2008-02-06 Thread Webmaster

Hi,

I am getting an error when trying to undo the deletion of a form created 
with PloneFormGen. One of the users on the site created a second copy of 
the form which received some submissions in error prior to its deletion 
and I was hoping to undo the delete to get the saved data. Is it 
possible to determine which subsequent changes need to be undone prior 
to being able to undo the delete.

Here is the error:

This site encountered an error trying to fulfill your request. The 
errors were:


Error Type
  MultipleUndoErrors
Error Value
  Undo error 0x047eae: Undo error 0x047eae: Some data were modified by
  a later transaction Undo error 0x047efa: Undo error 0x047efa: Some
  data were modified by a later transaction Undo error 0x047ed9: Undo
  error 0x047ed9: Some data were modified by a later transaction Undo
  error 0x046702: Undo error 0x046702: Some data were modified by a
  later transaction Undo error 0x047f01: Undo error 0x047f01: Some
  data were modified by a later transaction Undo error 0x046c19: Undo
  error 0x046c19: Some data were modified by a later transaction Undo
  error 0x026c2f: Undo error 0x026c2f: Some data were modified by a
  later transaction


Thanks in advance for any assistance.

Serge
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Key Error in Catalog Reindex

2007-01-25 Thread KJZZ Webmaster
Dieter, thank you for the suggestion on how to change 
\lib\python\OFS\DTMLMethod.py
to avoid the key error.

Before I went ahead and altered zope's the underlying code, I thought I would
try Andres' suggestion first, by rewriting the dtml method as a python script:

REQUEST = container.REQUEST
RESPONSE =  REQUEST.RESPONSE
REFERER = REQUEST.get_header('HTTP_REFERER')
catalog = context.Catalog

catalog.manage_catalogReindex(REQUEST, RESPONSE, REFERER)

RESPONSE.redirect(REFERER)

This seems to have fixed the issue.  I'll let you know if I notice anything
further.

Thanks kindly,

John T.


>-- Original Message --
>Date: Mon, 22 Jan 2007 18:01:30 +0100
>From: Andreas Jung <[EMAIL PROTECTED]>
>
>Rewrite the code using a PythonScript and check again for errors.
>


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


Re: [Zope] Key Error in Catalog Reindex

2007-01-23 Thread KJZZ Webmaster
Dieter,

I restarted zope in debug mode last night and recorded the following error:

2007-01-23T06:56:18 ERROR Zope.SiteErrorLog 
http://someurl/someobject/somedtmlmethod
Traceback (most recent call last):
  File "X:\SomePath\Zope-2.8.1-final\lib\python\ZPublisher\Publish.py", line
113, in publish
request, bind=1)
  File "X:\SomePath\Zope-2.8.1-final\lib\python\ZPublisher\mapply.py", line
88, in mapply
if debug is not None: return debug(object,args,context)
  File "X:\SomePath\Zope-2.8.1-final\lib\python\ZPublisher\Publish.py", line
40, in call_object
result=apply(object,args) # Type s to step into published object.
  File "X:\SomePath\Zope-2.8.1-final\lib\python\OFS\DTMLMethod.py", line
153, in __call__
del self.__dict__['validate']
KeyError: 'validate'

Does this get us any closer to understanding the problem, or should we take
another approach?

I know Andreas suggested re-writing the dtml method:






as a python script, then checking for errors.  I will look into rewriting
this code today.  Do you have any additional suggestions?


>If fear, this problem is big enough that debugging is necessary.
>
>--
>Dieter


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


[Zope] Key Error in Catalog Reindex

2007-01-22 Thread KJZZ Webmaster
I am using zope 2.8.1. and am using the following dtml method to reindex
the catalog:






However, midway through the reindex, I am receiving the following error message:

Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module OFS.DTMLMethod, line 153, in __call__
   - 
   - Physical Path: //somepath/somedtmlmethod
KeyError: 'validate'

I checked the zope source file here:

Zope-2.8.1-final\lib\python\OFS\DTMLMethod.py

and found the reference to the "validate" method in line 128:

if self.__dict__.has_key('validate'):
first_time_through = 0
else:
self.__dict__['validate'] = security.DTMLValidate
first_time_through = 1
try:

My questions are these:

a) what changes could I to the catalog to avoid this error in the future?

(I have already cleared and rebuilt our catalog using the manage_catalogFind
tab within the catalog).  Are there certain object types that I should keep
out of the catalog?

Is the catalog getting too large, and maybe the reindex is taking too long
to complete?

b) are there any changes to the script \lib\python\OFS\DTMLMethod.py that
I could make which would eliminate, or at least render this error message
harmless?

When this key error occurs, the catalog does not index fully, and so objects
are left out of the catalog.

Thanks for your advice.

John T.



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


[Zope] Path Level in Catalog

2007-01-13 Thread KJZZ Webmaster
I recently had to rebuild our catalog using the manage_catalogFind form in
the ZMI.  In this case, I simply selected the object types that I wanted
recataloged, then clicked the "find and catalog" button.

However, I now notice that almost every object that was found is entered
into the catalog twice, once with the relative path from the top of the site,
and second with a path that begins above the folder in which the site is
contained, such as:

1) /myobject/

2) /mysite/myojbect

Tell me, does anyone have any suggestions for an expression to find and catalog
only objects with the first path and omit all objects starting with the second
path.

Any advice is appreciated.

John T.


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


Re: [Zope] Mark Pilgrim's Feed Parser in Zope

2006-07-26 Thread KJZZ Webmaster
Dieter,

Appreciate your help.

I found a way to test if the "ExternalMethod" really returned a dict here:

http://infrae.com/mailman_/pipermail/silva-dev/2004q2/001091.html

And you were right! This is not seen as as a valid dictionary (nor is it
seen as a string):

stuff = container.externalmethod(feedurl=feedurl)
test = same_type(stuff, {})
print test
return printed

returns "0"

However, interestingly enough, if I copy and paste the all the text that
is returned by the external method into the script, I am able to confirm
that it is a dictionary:

stuff= {'lastbuilddate': u'Mon, 24 Jul 2006 12:06:18 EDT', u'subtitle': 'U.S.',
u'generator': 'NPR/RSS Generator 2.0 etc...'}

test = same_type(stuff, {})
print test
return printed

returns "1"

Also, I tried to render the copied text from the external method using the
page template, and received a different error message:

"TypeError: string indices must be integers" (see the attached traceback).

I don't know if this last test will be useful, but I thought I'd give it
a try.

Do you know if there is a way of changing the data type of an object?

Do you know if there is a listing of data types that I could test for?

Thanks kindly,

John T.


Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.ZopePageTemplate, line 256, in _exec
  Module Products.PageTemplates.PageTemplate, line 102, in pt_render
   - 
  Module TAL.TALInterpreter, line 206, in __call__
  Module TAL.TALInterpreter, line 250, in interpret
  Module TAL.TALInterpreter, line 649, in do_loop_tal
  Module Products.PageTemplates.TALES, line 206, in setRepeat
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: /mypath/pagetemplate
   - Line 2, Column 2
   - Expression: 
   - Names:
  {'container': ,
   'context': ,
   'default': ,
   'here': ,
   'loop': ,
   'modules': ,
   'nothing': None,
   'options': {'args': ()},
   'repeat': ,
   'request': http://localhost:/mypath/pagetemplate>,
   'root': ,
   'template': ,
   'traverse_subpath': [],
   'user': admin}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: news['entries'][0:25]
  Module Python expression "news['entries'][0:25]", line 1, in 
  Module AccessControl.ZopeGuards, line 67, in guarded_getitem
TypeError: string indices must be integers
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting Properties of Objects in Folders Within

2005-05-03 Thread KJZZ Webmaster
Max,

In response to your post here:

http://mail.zope.org/pipermail/zope/2005-February/156369.html

I am having some difficulty getting this to work.

###
# everything works fine from here
object = []
results = []
subbrain = []
query = 'somekeyword'
for brain in context.Catalog(meta_type='Folder',
bobobase_modification_time={'query':DateTime()-14, 'range':'min'},
PrincipiaSearchSource=query) :
# results.append(object)
path = brain.getPath()
print path
print ''
print '' + brain.title + ''
print ' + str(path) + ''
print '' + brain.description + ''

# ... through here
# however, what I'd like to do is get the path to every ExtFile contained
in these Folders

# this should get you every catalogued object in the folder
for subbrain in context.Catalog(path=path):
print subbrain.Title
print subbrain.Description
return printed

print '' + str(brain.date) + ''
print ''

return printed

Any additional help you could offer is appreciated.

John T.

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


[Zope] We get problems Zope is backed up!

2001-01-29 Thread 3dfestival - WebMaster

Does anybody have a solution for our big problem? How do we backup in
another way...?

When our Zope-site is being backed up we have different probs...
We have (kind of) have figured out that the problem is only (!) occuring
when we change something on our site OR somebody adds something to our site,
while it is being backed up...

We are using Zope v2.2.4 running in Apache on a Linux-machine

( = Stoons = )
 - Webmaster @ 3D festival (http://www.3dfestival.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] Is it possible to make a thumbnail from an added image..?

2001-01-24 Thread 3dfestival - WebMaster

Just a quick Idea:

Can somebody make a routine RESIZING an image...?

It would be great if someone could make something like that...

Just imagine it: You add an Image_with_thumb... Browse for the image, then
it adds your image to the site  AND it is being resized to, for instance,
16x16pixels, and you can use that thumb as an icon for the image...!
Wouldn't that be great...?

Sorry about this silly question... It will not  happen again (I hope)  = )

( = Stoons = )
 - Webmaster @ 3D festival (http://www.3dfestival.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] Here is a Challenge: Import + Export folder...

2001-01-24 Thread 3dfestival - WebMaster



Couldn't some Python / Zope EXPERT make some kind 
of feature with zope, which makes it possible to sit somewhere else and then via 
http (or ftp) IMPORT some object into a zopeserver from somewhere 
else...? The thing is that you have to be with the comp where the server is 
running from, if you want to install some new feature
 
( = Stoons = ) - Webmaster @ 3D festival 
(http://www.3dfestival.com)
 
PS: I know that u can use telnet, 
but I do not know how to use telnet


[Zope] RE: BSD 4 installation

2000-11-25 Thread Webmaster

I haven't solved my BSD problem but I did discover that there are BSD ports
of Zope and Zope products maintained at
http://www.freebsd.org/cgi/ports.cgi?query=zope&stype=all

I haven't been able to get the port to work yet but I suspect that it's
because I don't have root access to the server.

That will have to wait till Monday when the *senior* tech support guys are
on duty. I called my webhost tech support last night and I happened to ask
which version of BSD they used. The 'technician' replied, and I quote:
"BSD? What does that do? I've never heard of it."

I pointed out that BSD was the version of Unix on all his host servers.

At least he made me feel like less of Unix newbie.

:)

Lee Hunter
Hum Communications Ltd.

> -Original Message-
> From: Lee Hunter [mailto:[EMAIL PROTECTED]]
> Sent: November 24, 2000 3:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: BSD 4 installation
>
>
> I'm trying to build Zope on a BSD server.
>
> According to the install.txt I have to run two commands -
> "python w_pcgi.py" and "./start".
>
> I managed to get the first command to run (python w_pcgi.py)
> after editing my Makefile.pre.in and do.py as per the FAQ.txt.
>
> But when I when I run the second command (./start) I get the
> following error message:
>
> media2: {38} % ./start
> Traceback (innermost last):
>   File "/magma/users/u21/wake/zope/z2.py", line 554, in ?
> exec "import "+MODULE in {}
>   File "", line 1, in ?
>   File
> "/magma/users/u21/wake/zope/lib/python/Zope/__init__.py",
> line 94, in ?
> import ZODB, ZODB.ZApplication, imp
>   File
> "/magma/users/u21/wake/zope/lib/python/ZODB/__init__.py",
> line 85, in ?
> import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
> ImportError: No module named ExtensionClass
>
> Any ideas as to what I'm doing wrong?
>
> TIA
>
> Lee Hunter
> Hum Communications Ltd.
>
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 a login form instead of BASIC authentication

2000-08-14 Thread Meeting Maker Webmaster

Hello,

I am currently looking into implementing a login form to replace the 
standard BASIC authentication.

I've looked into AccessControl/User.py and there seems to be a validate 
function that would enable me to do it. The only problem is that I am 
unable to figure out how to use it.

The basic idea is to have a forms that requires the username and the 
password. This will then enable users to log into the system.

Thank you for your help.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.com


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




Re: [Zope] ZClass inheriting from image question

2000-08-11 Thread Meeting Maker Webmaster

Hello,

At 18:36 10.08.2000 +, Kapil Thangavelu wrote:
>make a dtml doc id:return_image
>with body
>
>
>and use that as your source
>so in index_html
>
>">

Works great. Thank you very much for your help.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.com


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




Re: [Zope] ZClass inheriting from image question

2000-08-10 Thread Meeting Maker Webmaster

Hello,

At 16:31 10.08.2000 +, Kapil Thangavelu wrote:
> > I am still working on my "users preferences" I mentioned earlier. For now
>I
> > will stay with the standard acl_users as they seem to offer everything I
> > currently need to authenticate the user. On the other side, I am creating
>a
> > new ZClass that will be used to store the user information in properties.
> > As I finally also want to store the picture of the user, I decided to
> > create ZClass that will subclass _ZClass_for_Image.
> >
> > I want to change the default way the ZClass renders it's information. I
> > want more than simply a picture so I crated a new method "index_html" in
>my
> > ZClass.
> >
> > My question is: How do I display the picture from this index_html method?
>
>from the Image.py file
>
> should do it


This doesn't work. The problem is that  returns the  
tag using the object name. Well if it does that, it will use the content of 
index_html, resulting in an error.

Thank you.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] ZClass inheriting from image question

2000-08-10 Thread Meeting Maker Webmaster

Hello,

I am still working on my "users preferences" I mentioned earlier. For now I 
will stay with the standard acl_users as they seem to offer everything I 
currently need to authenticate the user. On the other side, I am creating a 
new ZClass that will be used to store the user information in properties. 
As I finally also want to store the picture of the user, I decided to 
create ZClass that will subclass _ZClass_for_Image.

I want to change the default way the ZClass renders it's information. I 
want more than simply a picture so I crated a new method "index_html" in my 
ZClass.

My question is: How do I display the picture from this index_html method?

Thank you for your help.

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] FTP editing in version?

2000-08-09 Thread Meeting Maker Webmaster

Hello,

At 15:02 09.08.2000 +, Marcin Kasperski wrote:
>Is it in any way possible to edit via FTP within a version?
>
>FTP editing is very nice (I love XEmacs and EFS, I hate netscape editing
>control). But I do not see any way to edit file via FTP within version.
>Do I miss something?

Give a look at http://www.zope.org/Members/htrd/howto/VersionFTPServer

I don't know if that works with 2.2.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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 Server as an NT service

2000-08-08 Thread Meeting Maker Webmaster

Hello,

At 08:25 08.08.2000 +, Vincent wrote:
>Does somebody know how to start Zope as an NT service ?

The easiest is during the installation of Zope. You can then tell to have 
Zope automatically started as a service.

To stop and restart the service later on, go into the "Administrative 
tools". You will there have an application called "Services". In that app, 
scroll down and click once on the one called "Zope (name of your site)". 
Simply go there to start and stop your service.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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 is slow on a windows 2000 server

2000-08-07 Thread Meeting Maker Webmaster

Hello again,

At 15:20 07.08.2000 +, Meeting Maker Webmaster wrote:
>I am trying to get the user authenticated based on his IP address to allow
>everybody on the subnet we are here to access the Zope server, but not
>other IPs. This works fine except it is really slow (about 5 seconds to go
>to an object to start downloading). I've tried it on a clean Win2k box to
>check if I had a problem with my configuration, but it didn't change
>anything.

OK, so let's answer my own email in case somebody comes into the same 
problem one day.

I changed my configuration to use IIS instead of Medusa of the front end. 
Since then, everything is fine. Now instead of using my.server.com:8080/ , 
I simply use my.server.com/zope.cgi/. I simply followed the excellent 
How-to available under http://www.zope.org/Members/brianh/iis_howto. I only 
had a few problems for the authentication. To be able to use Zope for the 
authentication, make sure you allow Anonymous login and that you set all 
the "Custom Errors" of IIS to default. Else you won't be able to log into 
Zope management screen for example ;-)

>As I am with the Win2000 questions, is there a way to configure IIS to
>behave like Apache an the rewrite rules?

This is still an open question.

By the way, a very interesting site about IIS configuration is 
http://www.iisfaq.com ;-)

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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 is slow on a windows 2000 server

2000-08-07 Thread Meeting Maker Webmaster

Hello,

I've been using Zope on a Linux box without any problem this last month. I 
now have to move the Zope server to it's final location, which is a Windows 
2000 server (it's not my choice ;-(

I am trying to get the user authenticated based on his IP address to allow 
everybody on the subnet we are here to access the Zope server, but not 
other IPs. This works fine except it is really slow (about 5 seconds to go 
to an object to start downloading). I've tried it on a clean Win2k box to 
check if I had a problem with my configuration, but it didn't change anything.

Here are the basic operations I did. First create a local role "test" in / 
that has the same authorization as anonymous. Then disable any 
authorization for this Anonymous user. Create a user in acl_user which 
don't have a password but has a domain entry 192.168.0.* and the role 
"test". Now when I connect from the 192.168.0. subnet, I have access to the 
Zope server, but it is very slow to answer. When I add a user that has to 
log in (password instead of IP check), it goes much faster.

I am using Zope 2.2.0 with the built-in Medusa web server.

As I am with the Win2000 questions, is there a way to configure IIS to 
behave like Apache an the rewrite rules?

Thank you for your help.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] dtml-in question

2000-08-01 Thread Webmaster

I have a bunch of zClass instances and I want to display only the ones that
match all three criterion (approved=1, goLiveDate<=ZopeTime(), expired=0).
I'm not exactly sure how to do this. I have tried  statements
inside the  statements but the "in", even though it does
not show the files that don't match, still counts all of them which messes
up the next and previous. How do I write my code to correctly show and count
only the matching instances?

I have searched both the zope.org site and the eGroups list for the answer
and if it is there I can't find it :-( 

Thanks!!

Jamey

Here is the code.


 
 
 Next &dtml-next-sequence-size; older Releases
 



 
  /release.html">
&dtml-pr_title;
- 
&dtml-summary;
   
 




 
 Next &dtml-previous-sequence-size; more recent Releases
 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Webmaster

+1

> -Original Message-
> From: Brian Lloyd [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 25, 2000 11:35 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  [Zope] Your feedback: what should DateTime strftime()
> behavior be?
> 
> Hi all -
> 
> There has recently been some confusion over the expected 
> behavior of various approaches to DateTime formatting in 
> Zope regarding timezone representation. I would like to 
> resolve this for the next release by making a proposal 
> and asking you to reply to the list with a "vote":
> 
>   +1 == agree
> 
>   +/-0 == no strong opinion
> 
>   -1 == disagree
> 
>  
> So then, here is the situation. In Zope 2.2 (and earlier), 
> formatting a date using either:
> 
>   
> 
>   
> 
> ...would give you the date *formatted based on GMT rather than 
> the timezone (usually local) representation of the object*. 
> Simply doing:
> 
>   
> 
> ...however, would print the date in the current timezone of 
> the datetime object.
> 
> Many feel that this difference is unintuitive and a pain. The 
> proposal is that both:
> 
>   
> 
>   
> 
> ...would be changed to apply the format to the current TZ 
> representation of the object rather than convert to GMT. Of 
> course, this could be a problem if there are people currently 
> counting on the output being GMT, which is why we're putting it 
> to a vote. If this change is made for 2.2.1, those who still 
> wanted the output in GMT could just call the 'toZone()' method 
> of the datetime object to get a GMT version before formatting:
> 
>   
> 
> 
> What do you think?
> 
> 
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909  
> Digital Creations  http://www.digicool.com 
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] user permissions

2000-07-25 Thread Webmaster

My installation is on RH Linux, however it sounds to me like you are having
the same problem.

I am no longer having the problem and the voodoo I doodood to get it working
seems like a bad dream now.

I created a simple user name "bob" and a one character password (I'm pretty
sure it was "1"). I then closed and reopened Netscape and logged in as "bob"
and it worked. I then created a second "manager" username and gave it a
regular password and it work like it should have the first time. 

Of course all this happened after trying every conceivable incarnation of
usernames and passwords (two and three character passwords did NOT work),
stomping around my office, slamming doors and cursing everyone on the list
that did not answer my postS ;-) 

Hope this helps!!

Jamey


> -Original Message-
> From: josh on [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 24, 2000 9:10 PM
> To:   [EMAIL PROTECTED]
> Subject:  [Zope] user permissions
> 
> I just installed 2.2 on win98.
> 
> I log on as a superuser, and try and make a new folder an I get:
> 
> >Zope Error
> >
> >   Zope has encountered an error while publishing this resource.
> >
> >   Error Type: SuperCannotOwn
> >   Error Value: Objects cannot be owned by the superuser
> 
> So I used to do that I thought.  I tried to make a new acl user, but
> couldn't log in with that name password combo.  I saw that webmaster asked
> this a couple of days ago, but I saw no answer.
> 
> Am I being dumb and missing the obvious?  Do I need to go and read some
> how
> to about users and permissions?
> 
> any help would be great.
> 
> josh on
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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-20 Thread Meeting Maker Webmaster

Hello,

At 15:30 19.07.2000 +, you wrote:
 > does anybody know a possibility to change the identity during a browser
 > process, without killing all clients and logging in again?

In the "Tracker" product, you will find two DTML Methods that will enable 
you to change the identity. They are called "login" and "relogin". Simply 
call  to get a login prompt. I believe if you simply do not 
fill this form, you will get "Unauthorized" and then back to Anonymous.

---[login]


   

   

---

---[relogin]

   Call this from other methods to force user reauthentication before
   redirecting back to the calling script.

   (This script leaves traces before raising "Unauthorized" so that it
   recognizes the return after the authentication, and avoids repeating.
   At that point the cookie used to recognize the return is removed,
   enabling the process for the next invocation.)





   

   
   
   (Interim - the raise value only shows when the user login fails.)
   
   Refresh this page to get the login prompt.
   

---

Best regards,

Gérard Jr.


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




Re: [Zope] 2.2 installation problem on Linux

2000-07-16 Thread Meeting Maker Webmaster

Hello,

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

It seems they forgot to compile the PCGI wrapper... here is what you should 
do to make it work:
--
cd pcgi
sh ./configure
make
-

Worked fine for me.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] How to uninstall a product such as PTK or KnowledgeKit

2000-07-12 Thread Meeting Maker Webmaster

Hello,

At 19:49 12.07.2000 +, R. David Murray wrote:
>I'm not saying this will fix it, but did you try restarting Zope?

Yes I did. Sorry I forgot to mention it ;-)

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] How to uninstall a product such as PTK or KnowledgeKit

2000-07-12 Thread Meeting Maker Webmaster

Hello,

I'm getting somewhat crazy with this one. I've upgraded my test server to 
2.2.0b4 (from 2.2.0b3), i.e. transferred all the products I installed 
previously and the /var directory. Everything works fine with 2.2.0b4 until 
there.

At that point, I realize that I have installed many products to "test" 
Zope, so I decide I want to uninstall all the products I won't use instead 
of exporting everything I did and re importing it on a clean server. So I 
delete all the products I don't need in the /lib/python/Products directory 
and go in the Control Panel/Products to delete all the products I just 
deleted physically from the hard drive. I restart Zope... everything still 
OK. The products are not listed anymore.

So now I want to create a brand new product (ID: test). in test, I want to 
add a ZClass. In the available project, I also only see the products 
currently installed. But in the Add ZClass form, Zope offers me to use 
"DemoPortal: ..." or "KnowledgeKit: ..." as base classes. The only thing I 
really don't understand is that I just deleted these objects and they don't 
appear in the Products list anymore!

OK, so they are still in the cache... let's use this "Flush cache" function 
in the database management... no effect. OK, so let's pack the database... 
to be certain, let's pack it to 0 days, as the problem with it has been 
corrected in 2.2.0b4 ;-)... no effect!

So here is my question: How to really delete a product?

I want to be certain I don't have any references to it left of previously 
installed products. I know I installed these products through the "import" 
feature and not by copying it into the /lib/python/Products/ directory, but 
that shouldn't make any difference?

Thank you very much for your help.

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] cr/lf causing spaces

2000-07-09 Thread Meeting Maker Webmaster

Hello,

At 20:43 08.07.2000 +, you wrote:
>Would it be possible for Zope (which has to parse the dtml files etc
>anyway) to convert cr+lf to plain cr?

You might want to give a look to a product called "StructuredText Document" 
under http://www.zope.org/Members/tseaver/STX_Document. It will keep the 
the layout as typed without having to give any HTML. But the good thing 
with it is that you can add some HTML tags if needed and they will be 
rendered correctly in your browser. There is also a How-To about structued 
text ( http://www.zope.org/Members/millejoh/structuredText )

The other way to use structured-text is by telling it to Zope when you 
render and object with 
  (taken from the how-to mentioned above). the structured-text format is 
one of these many cool Zope features.

>The problem I have currently is that if I format my dtml source nice and
>orderly, I end up having spaces in my Output where I don't want any...

Other way arround would be to manually add a  before every carriage 
return you make... but I don't think that's what you want ;-)

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] Newbie questions: Job_board Howto, ZCatalog, Squishdot

2000-07-08 Thread Meeting Maker Webmaster

Hello,

I've started looking into Zope to build our future sites and from what I've 
seen, I love it. I have installed Zope 2.1.6 and 2.2.0b3 for my tests, 
running on a RedHat 6.2 server (Apache with pcgi).

I had a few problems / questions I wasn't able to find an answer for in the 
various documents I looked at. So here is a somewhat long list.

I came across a little problem that you will most certainly be able to 
solve. Basically, I've tried to follow step by step the Job Board howto 
(http://www.zope.org/Members/mukhsein/job_board_howto) to get familiar 
with  the ZCatalog and the ZClasses. Everything works fine with Zope 2.1.6, 
but I am unable to have it work under Zope 2.2.0b3. I am always getting a 
standard authorization dialog box. And none of the users I defined in my 
/acl_users object work. I've seen that Zope 2.2.0 brought many changes on 
the security and ownership part. I am certain my problem is somewhere in 
there, but I am unable to find where ;-) One more comment. On the 2.2.0b3 
server, Anonymous isn't allowed to see anything except /index_html page and 
once logged in (users get a particular local role), you have the same 
rights as you normally have with Anonymous. I didn't change anything on the 
2.1.6 server. I hope this isn't the source of my problem. I've seen in this 
mailing list that there is a bug related to manage_addProduct... will 
2.2.0b4 correct my problem?

This brings me to another question. I've added a ZCatalog object in the 
2.2.0b3 Zope test server. When I go under "Indexes" and wish to delete one 
of the indexes, I get the following error message (I've cut the long path 
to make it more readable):

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: ElementWithAttributes)
   File [...]/lib/python/ZPublisher/Publish.py, line 171, in publish
   File [...]/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: manage_delIndexes)
   File [...]/lib/python/ZPublisher/Publish.py, line 112, in call_object
 (Object: manage_delIndexes)
   File [...]/lib/python/Products/ZCatalog/ZCatalog.py, line 369, in 
manage_delIndexes
 (Object: ElementWithAttributes)
   File [...]/lib/python/Products/ZCatalog/Catalog.py, line 333, in delIndex
No Index: (see above)

This works with 2.1.6, so I believe it is a bug, or is it a "feature"?

About authorization, on the 2.2.0b3 server, I have redefined 
/standard_error_message (send an email, other layout, ...). It works fine 
except with I get the "Unauthorized" message. In that case, after canceling 
the dialog box for example, I get the error message available in  displayed instead of mailed to me. I've checked that every 
object used in this standard_error_message method is available to Anonymous 
(View + Use mailhost services + Access contents information), but it still 
does not work. Any hint?

One last question ;-) I've seen in this mailing list that Squishdot will 
not work with Zope 2.2.0 until version 0.4.4... when is this version 
planed? I've tried to install Squisdot on the Zope 2.2.0b3 server and I get 
the same problem as with my "Job_Board" test... will one solution solve the 
other?

Thank you very much for your help.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] acl_user problem

2000-07-07 Thread Webmaster

I just installed a fresh 2.2b3 on x86 Linux. I ran the install, fixed the
permissions on my var directory (nobody:users) and started Zope. I logged in
as the superuser and created a new acl_user (zopeAdmin) with a "Manager"
role. When I try and log in as "zopeAdmin" it just keeps prompting me for
the password and won't let me in as that user or any other user (except the
superuser).

I'm I missing something painfully obvious?

Jamey

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




RE: [Zope] ZClass question?

2000-06-27 Thread Webmaster

I am using DTML methods on all.

> -Original Message-
> From: Erik Enge [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 27, 2000 4:37 PM
> To:   Webmaster
> Cc:   [EMAIL PROTECTED]
> Subject:  Re: [Zope] ZClass question?
> 
> On Tue, 27 Jun 2000, Webmaster wrote:
> 
> > First when I try and create a new instance remotely I get a zope error
> > "unauthorized" no matter what username and password I type. If I try and
> 
> Are you using DTML Methods or Documents?  I've heard other talking
> about creating roles, but I switched from DTML Documents to DTML
> Methods and tde 'unauthorized' message went away.  Don't know why :-(.

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




[Zope] ZClass question?

2000-06-27 Thread Webmaster

I am running 2.2.0b2 on a RH linux and have created a simple ZClass. All of
my modified constructor objects work perfect however when I created a
separate dtml method to add instances I get some weird errors.

First when I try and create a new instance remotely I get a zope error
"unauthorized" no matter what username and password I type. If I try and
create a new instance locally on the same box (or within the internal
network) I get a KeyError and then at the bottom of the same page is a
second included page with a 404 file not found error. If I change the method
from "post" to "get" so I can see if the new_goLiveDate is being passed I
get the "unauthorized" error.

Any idea what is going on?
Here is my "add_instance_html" code.


 
 



  

  



Let me know if you need more info.

-Jamey

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




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

2000-06-26 Thread Webmaster

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

Thanks!!

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


[Zope] deleting objects

2000-06-06 Thread Webmaster

Sorry if this one is obvious.

I created a dtml method named "dev_header" in my site root. In another
folder further down my tree I created another "dev_header" with different
info. I then deleted the second "dev_header"  (/news/dev_header) expecting
my pages to then grab the "dev_header" from the root directory, but they
don't. Why?

Jamey

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] syndication??

2000-05-25 Thread Webmaster

Wow!!! ZScheduler sounds perfect! I'm assuming that it is the one that
doesn't work. What is involved to make it work? With my limited knowledge of
both Python and Zope, I don't know that I could be much help. However, I'd
be willing to help out any way I can.

-Jamey


> -Original Message-
> From: Chris Withers [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 25, 2000 11:23 AM
> To:   Webmaster
> Cc:   Zope Mailing List
> Subject:  Re: [Zope] syndication??
> 
> Webmaster wrote:
> > The concept is simple enough, but I just don't know how I could do the
> same
> > thing in Zope. I am setting up a system where daily articles can be
> entered
> > weeks in advance and will only appear on the web site when the date
> matches
> > their "go live date" (easy). But I would also like the article to be
> emailed
> > to my distribution email list on its "go live date".
> 
> Check out:
> http://www.zope.org/Members/chrisw/ZopeEmail/FrontPage
> http://www.zope.org/Members/lstaffor/ZScheduler
> 
> Both would do what you want, one isn't implemented and the other doesn't
> work.
> 
> If other people are interested, that could 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 )




[Zope] syndication??

2000-05-25 Thread Webmaster

A few weeks ago I went to an Allaire Spectra seminar (Spectra is Allaire's
$15,000 Zope). It was a very nice presentation and the fundamental
principles were quite similar. I have played around with Spectra and I found
it to be super clunky with way to many steps from point A to point B.
Not to mention the fact that it is only "object like". I could go on but
this is not meant to be a comparison study.

However, with that said, there was one particular "out-of-the-box" feature
that really impressed me. In spectra you can take and "object" (article,
image, etc) and set it up for syndication. One of the syndication options is
to send the "object" via email at a set time. So you could have a news page
summary set up to send itself out to a distribution email list on a certain
day. 

The concept is simple enough, but I just don't know how I could do the same
thing in Zope. I am setting up a system where daily articles can be entered
weeks in advance and will only appear on the web site when the date matches
their "go live date" (easy). But I would also like the article to be emailed
to my distribution email list on its "go live date". 

Is anyone doing this? If so could you enlighten me on how?

Thanks!!

-Jamey


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