[Zope-dev] PageTemplate Internet Explorer error

2002-03-20 Thread Terry Kerr

Hi,

I have the latest PageTemplates, ZTUtils, and TAL installed on Zope 2.4.3 
with python 2.1.1 on Linux.

Whenever I try to create or edit a PageTemplate using IE5.5 or IE6 on 
windows I get the following error. It works fine however when I use 
Netscape or Mozilla on windows or linux.

I have seen some other emails about this error, but none seemed to suggest 
that the problem was ever solved.  Is somebody working on this, or has 
somebody found a solution?


terry kerr


Site Error
An error was encountered while publishing this resource. 

Error Type: Undefined
Error Value: manage_page_header not found in here/manage_page_header






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 /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 223, in 
publish_module
  File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /home/zope/Zope/lib/python/Zope/__init__.py, line 226, in 
zpublisher_exception_hook
  File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /home/zope/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: ptAdd)
  File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: ptAdd)
  File /home/zope/Zope/lib/python/Shared/DC/Scripts/Bindings.py, line 324, 
in __call__
(Object: ptAdd)
  File /home/zope/Zope/lib/python/Shared/DC/Scripts/Bindings.py, line 354, 
in _bindAndExec
(Object: ptAdd)
  
File /home/zope/Zope/lib/python/Products/PageTemplates/PageTemplateFile.py, 
line 163, in _exec
(Object: ptAdd)
  File /home/zope/Zope/lib/python/Products/PageTemplates/PageTemplate.py, 
line 156, in pt_render
(Object: ptAdd)
(Info: {'container': __FactoryDispatcher__ instance at 90c56d8,
 'here': __FactoryDispatcher__ instance at 90c56d8,
 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0x95dabdc,
 'nothing': None,
 'options': {'args': ()},
 'request': 
h3form/h3table/tableh3cookies/h3table/tableh3other/h3ta
bletr valign=top 
align=leftthAUTHENTICATION_PATH/thtd''/td/trtr valign=top 
align=leftthURL3/thtd'http://orgazmo.adroit:8080'/td/trtr 
valign=top 
align=leftthURL0/thtd'http://orgazmo.adroit:8080/manage_addProduct/
PageTemplates/ptAdd'/td/trtr valign=top 
align=leftthURL1/thtd'http://orgazmo.adroit:8080/manage_addProduct/
PageTemplates'/td/trtr valign=top 
align=leftthBASE3/thtd'http://orgazmo.adroit:8080/manage_addProduct
/PageTemplates'/td/trtr valign=top 
align=leftthURL2/thtd'http://orgazmo.adroit:8080/manage_addProduct'
/td/trtr valign=top 
align=leftthBASE1/thtd'http://orgazmo.adroit:8080'/td/trtr 
valign=top align=leftthtraverse_subpath/thtd[]/td/trtr 
valign=top 
align=leftthSERVER_URL/thtd'http://orgazmo.adroit:8080'/td/trt
r valign=top align=leftthPUBLISHED/thtdlt;PageTemplateFile 
instance at 91b4888gt;/td/trtr valign=top 
align=leftthURL/thtd'http://orgazmo.adroit:8080/manage_addProduct/P
ageTemplates/ptAdd'/td/trtr valign=top 
align=leftthAUTHENTICATED_USER/thtdAnonymous User/td/trtr 
valign=top 
align=leftthBASE2/thtd'http://orgazmo.adroit:8080/manage_addProduct
'/td/trtr valign=top 
align=leftthTraversalRequestNameStack/thtd[]/td/trtr 
valign=top 
align=leftthBASE0/thtd'http://orgazmo.adroit:8080'/td/trtr 
valign=top 
align=leftthBASE4/thtd'http://orgazmo.adroit:8080/manage_addProduct
/PageTemplates/ptAdd'/td/trtr valign=top 
align=leftthURL0/thtdhttp://orgazmo.adroit:8080/manage_addProduct/P
ageTemplates/ptAdd/td/trtr valign=top 
align=leftthURL1/thtdhttp://orgazmo.adroit:8080/manage_addProduct/P
ageTemplates/td/trtr valign=top 
align=leftthURL2/thtdhttp://orgazmo.adroit:8080/manage_addProduct/
td/trtr valign=top 
align=leftthURL3/thtdhttp://orgazmo.adroit:8080/td/trtr 
valign=top 
align=leftthBASE0/thtdhttp://orgazmo.adroit:8080/td/trtr 
valign=top 
align=leftthBASE1/thtdhttp://orgazmo.adroit:8080/td/trtr 
valign=top 
align=leftthBASE2/thtdhttp://orgazmo.adroit:8080/manage_addProduct
/td/trtr valign=top 
align=leftthBASE3/thtdhttp://orgazmo.adroit:8080/manage_addProduct/
PageTemplates/td/trtr valign=top 
align=leftthBASE4/thtdhttp://orgazmo.adroit:8080/manage_addProduct/
PageTemplates/ptAdd/td/tr/tableh3environ/h3tabletr 
valign=top align=leftthHTTP_ACCEPT_ENCODING/thtd'gzip, 
deflate'/td/trtr valign=top 
align=leftthchannel.creation_time/thtd1016684537/td/trtr 
valign=top 
align=leftthSERVER_PROTOCOL/thtd'HTTP/1.1'/td/trtr 
valign=top align=leftthSERVER_PORT/thtd'8080'/td/trtr 
valign=top 
align=leftthPATH_INFO/thtd'/manage_addProduct/PageTemplates/ptAdd'
/td/trtr valign=top 
align

[Zope-dev] recursion depth exceeded

2002-03-05 Thread Terry Kerr

Hi,

I am running a fairly high traffic Zope server where people occassionly ftp 
files in and out of the server.

Approximately once per week, the zope process will go to using 99%CPU and stay 
like that untill it is restarted.   The error shown in the stupid log file is:

2002-03-06T01:22:41 ERROR(200) ZServer uncaptured python exception, closing 
channel zope_ftp_channel connected 202.129.84.50:64011 at 8ac4ecc 
(exceptions.RuntimeError:maximum recursion depth exceeded 
[/usr/local/lib/python2.1/asyncore.py|poll|104] 
[/usr/local/lib/python2.1/asyncore.py|handle_write_event|393] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|handle_write|147] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|initiate_send|209] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|refill_buffer|190] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/ftp_server.py|close|179] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/ftp_server.py|close|903] 
[/usr/local/lib/python2.1/asyncore.py|close|355] 
[/usr/local/lib/python2.1/asyncore.py|del_channel|241] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361] 
[/usr/local/lib/python2.1/asyncore.py|__getattr__|361]   and so on...


Line 361 in asyncore.py is:

358# cheap inheritance, used to pass all other attribute
359# references to the underlying socket object.
360def __getattr__ (self, attr):
361return getattr (self.socket, attr)


It hints to me that it is some sort of ftp server error that is causing the 
problem.  I have looked into it, but most of it is over my head and I was hoping 
somebody could help.  I have tried to reproduce the error, but without success.

The server is:
FreeBSD4.3
Zope 2.4.3 (from src)
python 2.1.2

terry


-- 
Terry Kerr ([EMAIL PROTECTED])
Chief Technical Officer
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
+61 3 9530 9182


___
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] logging crash

2002-01-29 Thread Terry Kerr

Hi,

I have modified ZServer/medusa/http_server.py::http_request.log() so that the 
host is tacked onto the end of the log file.  This is so that I can track my 
virtual hosts.  The modification is very simple...only two lines added as shown 
by the *:

*   host=self.get_header('host')
 self.channel.server.logger.log (
 self.channel.addr[0],
 ' - %s [%s] %s %d %d %s %s %s\n' % (
 name,
 self.log_date_string (time.time()),
 self.request, # blah...change this
 self.reply_code,
 bytes,
 referer,
 user_agent,
*   host
 )
 )


However, my server is continually crashing and restarting about 4 or 5 times per 
day, and my log file shows up one particulary error quite regularly followed by 
the server crash:

2002-01-30T02:02:02 ERROR(200) ZServer uncaptured python exception, closing 
channel zhttp_channel connected 24.237.103.242:4496 at 8a2b88c channel#: 5927 
requests: (exceptions.AttributeError:'None' object has no attribute 'split' 
[/usr/local/lib/python2.1/asyncore.py|poll|104] 
[/usr/local/lib/python2.1/asyncore.py|handle_write_event|393] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|handle_write|147] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|initiate_send|209] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|refill_buffer|196] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/Producers.py|more|108] 
[/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/http_server.py|log|287])
--
2002-01-30T02:02:03 ERROR(200) zdaemon zdaemon: Wed Jan 30 13:02:03 2002: 
Aiieee! 21875 exited with error code: 256

This hints that the server is crashing when trying to log, although I cannot 
figure out why.  I cannot see where the 'split' comes into it.

The server is getting about 50,000 hits per day.  I am running 2.4.3, with 
python 2.1.2 on freebsd.

I originally found the logging hack on the zope site somewhere and cannot find 
it again.

Can any one explain why it would crash so often.


terry

-- 
Terry Kerr ([EMAIL PROTECTED])
Chief Technical Officer
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
+61 3 9530 9182


___
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] Catalog Text Indexing

2001-11-13 Thread Terry Kerr

Hi,

Is there any particular reason that a Text Index will index an object by
acquiring the value to index?  Shouldn't it not index at all if the
value doesn't exist on the object?

The only way I can get my objects to not be indexed if they don't have
the indexing attribute is to set the attribute to None, reindex, then
remove the attribute.  By make this simple change to
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py


353c353,354
 source = getattr(obj, self.id)
---
 from Acquisition import aq_base
 source = getattr(aq_base(obj), self.id)

The object is only indexed if the value exists on that object.  This
fixes my problem.

I believe KeyWord Indexes have the same problem

Terry




-- 
Terry Kerr ([EMAIL PROTECTED])
Chief Technical Officer
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381

___
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] rotating_file_logger error

2001-10-09 Thread Terry Kerr

Hi,

After seeing http://www.zope.org/Members/tim/logmanagement I attempted
to setup log file rotation but Zope wouldn't start due to an error in
ZServer/medusa/logger.py (Zope 2.4.1).

The error is obvious at lines 106,108,110, time.mktime() is called with
9 arguements rather than a tuple of 9 elements.  Simple changing this
appears to fix the rotating logger.

Surely others have come across this?  Or am I the only one who rotates
Zope logs like this?

I would put it inthe collector except that it is down.

terry


-- 
Terry Kerr ([EMAIL PROTECTED])
Chief Technical Officer
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381

___
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] Dreamweaver, Webdav and PUT.

2001-09-19 Thread Terry Kerr

Hi,

I am having trouble PUT'ing new files into Zope using webdav from
dreamweaver.

  I have dreamweaver 4 with the 4.01 update, and are running zope2.4.1
with python 2.1.  I have create a html file 'untitiled.html' and are
trying to PUT that into the root folder of my Zope instance.  I have
setup webdav on port 8081, and authentication is setup correctly as I
can GET, LOCK, UNLOCK and PUT files that already exist in the Zope tree,
just not create a new file using PUT.

From looking at the zope logs, Dreamweaver seems to issue the following
commands when creating the new file.

PROPFIND /untitled.html HTTP/1.1 404 2305 
PROPFIND /untitled.html HTTP/1.1 404 2305 
LOCK /untitled.html HTTP/1.1 200 765 
PROPFIND /untitled.html HTTP/1.1 404 2304 

The LockNullResource object is created in the Zope root, however then
dreamweaver spits out an error The desired action could not be
completed because the resource was not found.

From looking into the the
lib/python/webdav/NullResource.py::LockNullResource code, it seems that
calling PROPFIND on the LockNullResouce will always return not found!  

def HEAD(self, REQUEST, RESPONSE):
Retrieve resource information without a response message
body.
self.dav__init(REQUEST, RESPONSE)
raise 'Not Found', 'The requested resource does not exist.'

# Most methods return 404 (Not Found) for null resources.
DELETE=OPTIONS=TRACE=PROPFIND=PROPPATCH=COPY=MOVE=HEAD

It seems to me that you can never create a new file using webdav!

Has anyone else come across this?  Is there a work around?

terry


-- 
Terry Kerr ([EMAIL PROTECTED])
Chief Technical Officer
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381

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



[Zope-dev] RE: Dreamweaver, Webdav and PUT.

2001-09-19 Thread Terry Kerr

Hi,

I discovered that if I define the PROPFIND method on the
LockNullResource class as follows:

def PROPFIND(self, REQUEST, RESPONSE):
Retrieve properties defined on the resource.
self.dav__init(REQUEST, RESPONSE)
cmd=davcmds.PropFind(REQUEST)
result=cmd.apply(self)
RESPONSE.setStatus(207)
RESPONSE.setHeader('Content-Type', 'text/xml; charset=utf-8')
RESPONSE.setBody(result)
return RESPONSE

then the dreamweaver PUT works perfectly.  I don't know enough about
Webdav to know if this is a satisfactory fix or not, but it seems to
work for me.  The collector is down currently but I will put it in when
it is back up unless others advise me not to.

terry


-- 
Terry Kerr ([EMAIL PROTECTED])
Chief Technical Officer
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381

___
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] thread locking and ZODB

2001-09-12 Thread Terry Kerr

Chris,

I notice in the ZODB2 article that it states that the conflict
resolution method should return the state of the object after resolving
the differences..  However, in the example the method only returns the
portion of the state that was deamed to be in conflict.  Shouldn't it be
returning the entire new state dictionary?

terry


Chris Withers wrote:

 
 Indeed. The is called conflict resolution and your problem is solved as an
 example in:
 http://www.zope.org/Documentation/Articles/ZODB2
 ...in the section Resolving Conflicts


-- 
Terry Kerr ([EMAIL PROTECTED])
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381

___
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] thread locking and ZODB

2001-09-11 Thread Terry Kerr

Hi,

I have a method which increments an attribute on the current object.  I
have created a thread lock so that multiple threads accessing the method
simultaneously cannot stuff up the attribute value:

lock = thread.allocate_lock()

def nextOrderNumber(self):
lock.acquire()
self._order_number = self._order_number + 1
lock.release()
return str(self._order_number)

My concern is that even though a second thread is halted at
lock.acqure() while the first thread updates the order_number, that
the second thread has an 'out of date' version of 'self' with the
original order_number value in it, hence, is still returning the
incorrect order_number.

Do I need to explicity get the order_number attribute from the ZODB
somehow, rather than grabbing it from 'self'?

terry

-- 
Terry Kerr ([EMAIL PROTECTED])
Bizar Software Pty Ltd (www.bizarsoftware.com.au)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381

___
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] Coding Standards

2001-05-31 Thread Terry Kerr

http://www.python.org/doc/essays/styleguide.html


Rick St Jean wrote:

 Hey all,

 I am completely new to ZOPE and to PYTHON, although I have a programming
 background in other
 languages.  I was wondering if some people would mind sharing a copy of a
 coding standard that they
 use including naming conventions and general never-evers, or always always.
 I figure if someone has
 a standard it usually helps new people to avoid pitfalls.

 Thanks in Advance,
 Rick

 ##
 #  Rick St Jean,
 #  [EMAIL PROTECTED]
 #  President of Design Shark,
 #  http://www.designshark.com/, http://www.phpmailer.com/
 #  Quick Contact:  http://www.designshark.com/messaging.ihtml
 #  Tel: 905-684-2952
 ##

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

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381




___
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] OS X support

2001-05-10 Thread Terry Kerr

Hi,

Is there any plans for zope to support OS X?

terry

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381




___
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] WorldPilot Err on Logout.

2000-12-21 Thread Terry Kerr

Yep, I get that too..never bothered to figure out why, I just don't logout.

- Original Message - 
From: "Jason C. Leach" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 22, 2000 4:08 AM
Subject: [Zope] WorldPilot Err on Logout.


 hi,
 
 Has anyone ever seen an error like this while logging out of world pilot?
 Or how I might be able to correct it by hand?
 
 Thanks,
 j.
 
 
 AttributeError
 Sorry, a Zope error occurred.
 Traceback (innermost last):
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: RoleManager)
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: logoff)
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: logoff)
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
 line 2199, in logoff
 (Object: RoleManager)
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
 line 2153, in displayIfLoggedOn
 (Object: RoleManager)
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
 line 369, in callResource
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/Resource.py,
 line 137, in callResource
   File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py, line
 528, in __call__
 (Object: string)
   File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
 337, in eval
 (Object: logoffLogin(REQUEST))
 (Info: REQUEST)
   File string, line 0, in ?
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
 line 2081, in logoffLogin
 (Object: RoleManager)
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
 line 2118, in getLogon
 (Object: RoleManager)
   File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
 line 2045, in logon
 (Object: RoleManager)
 AttributeError: 'string' object has no attribute 'has_key'
 
 ..
 . Jason C. Leach
 ... University College of the Cariboo.
 .. 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] Another Zope E-Commerce Site Online

2000-12-06 Thread Terry Kerr

Bill,

No I didn't look at the checkout.  It just seemed that the catalog was a
perfect fit.

terry

Bill Welch wrote:

 Maybe you just looked at the catalog and didn't notice what's in the
 checkout. Having spent the past month setting up a site with Etailer, I
 would have to completely disagree with you. If Brad started with Etailer
 (I suspect he did, the checkout sequence has an Etailer look), it would
 have taken a lot of hard core programming, not graphical work, to get to
 where he is in 5 days.

 1) Etailer doesn't support separate billing and shipping addresses

 2) ETailer doesn't support a shipping fee, much less shipping alternatives

 3) Etailer doesn't do taxes.

 Adding even one of the above features means touching a lot of python,
 management dtml, and user dtml.

 4) Etailer sorts options alphabetically.

 5) Etailer uses the variable name as the label on forms, i.e. Firstname in
 CheckOut. Makes for ugly shipping address vs billing address forms unless
 you extend the required_properties code to support labels. More python,
 management dtml, and user dtml.

 Nothing wrong with Etailer, but there's a lot to Brad's site that Etailer
 doesn't handle.

 Bill.

 On Thu, 7 Dec 2000, Terry Kerr wrote:

  Hi,
 
  Looks good.  5 days eh?.  I think one graphics artist could have done it
  in less than two days using Etailer (e-tailer.adroit.net)...except for the
  Wampum bit...I am hoping someone will add this in soon.
 
  terry
 
  Brad Clements wrote:
 
   Just announcing this new e-commerce zope based site.
  
   http://www.adirondackcraft.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 )

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381




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




[Zope] python methods

2000-11-29 Thread Terry Kerr

Hi,

Is there any way to get access to inbuild python functions like 'filter'
and 'lambda' within pythonMethods?

terry


--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381




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




Re: [Zope-dev] Streaming?

2000-10-29 Thread Terry Kerr

Isn't that dependant on the protocol u are using to transfer the data?
HTTP can't do streaming.  You can sort of do streaming using the
experimental multipart content type, but IE browers don't recognise it,
so it is pretty useless.

With the context you gave, you could probably do that with the
experimental multiplart content, but it would only work with netscape.

terry


Lalo Martins wrote:

 Is it possible to "stream" (send data to the client via HTTP
 incrementally) from Python code, or does ZPublisher only send
 the data as a single wad when the method returns?

 Assuming it is possible, obviously it requires using some other
 API rather than just 'return'ing a string... where can I find
 documentation and/or examples on that? If there is no existing
 documentation or examples, source code would do.

 (Context: when the tests are running on ZUnit, I'd like to give
 some visual feedback, if possible by sending the dots returning
 by PyUnit in real-time)

 []s,
|alo
+
 --
   Hack and Roll  ( http://www.hackandroll.org )
 News for, uh, whatever it is that we are.

 http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
  pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

 Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

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


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




Re: [Zope-dev] Streaming?

2000-10-29 Thread Terry Kerr

That is not streaming.  That is just as you said..lack of bandwidth delaying
the entire page arriving at once at you browser.  That is not contolled.  The
server doesn't send it 'bit by bit' in a controlled manner.

terry


Lalo Martins wrote:

 On Mon, Oct 30, 2000 at 12:23:36PM +1100, Terry Kerr wrote:
  Isn't that dependant on the protocol u are using to transfer the data?
  HTTP can't do streaming.  You can sort of do streaming using the
  experimental multipart content type, but IE browers don't recognise it,
  so it is pretty useless.

 What are you talking about? Try to load any standard html page
 with a very slow connection. If you just send the data slowly,
 the browser will show it as it is received. That's streaming.

 You can point an mp3 or realaudio player at an URL and it will
 download the file and play it as it arrives.

 That's the kind of streaming I want to do.

 []s,
|alo
+
 --
   Hack and Roll  ( http://www.hackandroll.org )
 News for, uh, whatever it is that we are.

 http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
  pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

 Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

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


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




[Zope] OT: documentation systems.

2000-10-18 Thread Terry Kerr

Hi,

What documentation systems to people use for developing offline hardcopy
and online user documentation for applications that they develop?  I am
writing an extensive application using zope, and it needs a lot of user
documentation.  The system I use won't necessarily have to be web
based...I just wants something that is effect.

terry


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




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




Re: [Zope] Medusa Monitor

2000-10-12 Thread Terry Kerr

Useless for debugging?  I find it very useful and sometimes necessarybut
I right all my products in python so maybe it is different for ZClass people.

terry


Hung Jung Lu wrote:

 Thanks for the follow-ups on Medusa Monitor.

 But as I can see (after using Zope for 1.5 years, now), few people actually
 use it. Unless one is really into the guts of Zope itself, the monitor is
 pretty useless for debugging. It of course could be made more useful, but
 one must implement some Python programs first. Even for dynamic reloading of
 modules, I usually just write External methods to do the job, instead of
 firing up the monitor.

 A more useful debuging tool would be some monitor where you can receive
 print message logs in real time. That would be great, especially if you have
 multiple thread problems.

 regards,

 Hung Jung

 _
 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.

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




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




Re: [Zope] Medusa Monitor

2000-10-12 Thread Terry Kerr

I don't think the monitor gives you any advantage?  I have never used a ptyhon prompt 
before...I will have to give it a go.

terry

Karl Anderson wrote:

 Jens Vagelpohl [EMAIL PROTECTED] writes:

  terry,
 
  you forgot the step of actually connecting to the monitor :) there is a very
  short howto on using the correct client program to log into the monitor at:
 
  http://www.zope.org/Members/teyc/howtoMonitorClient
 
  and similar info at:
 
  http://www.zope.org/Documentation/Misc/DEBUGGING.txt

 I don't use the monitor anymore, I just mount the database from a
 Python prompt:

 lefty /usr/local/zope/2.2.0/lib/python= python
 Python 1.5.2 (#1, Sep 17 1999, 20:15:36)  [GCC egcs-2.91.66 19990314/Linux (egcs- on 
linux-i386
 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
  import ZServer, Zope
  app = Zope.app()
  dir(app)
 ['Control_Panel', 'QuickStart', '__allow_groups__', '_objects', 
'_product_ac_permissions', '_product_meta_types', '_product_permissions', 
'_product_zclasses', 'acl_users', 'apps', 'bookmarks', 'breadcrumbs', 'index_html', 
'standard_error_message', 'standard_html_footer', 'standard_html_header', 'tmp']
 

 I'm not sure what the usefulness of the monitor is these days.  I
 always run ZEO, so I don't have to stop publishing to connect to the
 database from the prompt.

 Does the monitor give you something that interactive python doesn't?
 I do know that python in a shell is more robust than the monitor was -
 the monitor used to crash when dumping lots of info, like printing a
 large dictionary.

 --
 Karl Anderson  [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 )

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




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




Re: [Zope] Medusa Monitor

2000-10-10 Thread Terry Kerr

Use it for debugging sometimes.

Is very easy to use.  Basically

import Zope
z = Zope.app()

then z is the root of your zope tree so you can do anything.  You will need
to import any other python modules you need too.

terry

Hung Jung Lu wrote:

 Hi,

 Zope comes with the Medusa monitor (port 8099 by default) which is kind of
 cute and allows one to get into the guts of Zope. But do people really use
 it? How do people use it? Is there any document describing the usages of
 this monitor? Are there some features of this monitor that makes debugging
 easier?

 regards,

 Hung Jung

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

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




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




Re: [Zope] Xen login

2000-10-08 Thread Terry Kerr

I don't think xen is safe to use yet.

Stephan Goeldi wrote:

 What is the password I have to use for my first login in Xen?
 I never was asked for a password while installing.
 _
 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 )

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




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




[Zope-dev] Re: [Zope] Re: [Zope-dev] cookies ie5.5 win

2000-10-05 Thread Terry Kerr

I had a problem like this once, and worked out that it was because the system
time was incorrect in IE somehow.  The time that windows was displaying was
correct, but that had been manually changed to take in to account day light
savings which started early in Australia this year due to the olympics.  But for
some reason internallyIE was using the wrong time, so my cookies were expiring
as soon as they were set!

Netscape on windows didn't have the same problem...and obviously netscape on
linux didn't have the problem.

terry


Chris Withers wrote:

 Sebastian Luehnsdorf wrote:
  i'm having a strange problem with cookie based user authentication with
  ms internet explorer 5.5 on windows. it seems that the browser (but only
  this version and only under windows!) seems to "forget" its cookies, which
  results in an immediate logout. does anybody have similar experiences or a
  even solution?

 I've had this problem occasionally with other versions of IE.
 I wonder whether you're setting the path on cookies correctly?

 That's all I can think of...

 Anyone else noticed this?

 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 )

--
-----
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions
http://www.adroit.net/
03 9563 4461
0414 708 124



___
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] 'Offline' mailhost

2000-10-04 Thread Terry Kerr



Chris Withers wrote:

 Hannu Krosing wrote:
  Perhaps it would be better to solve this by configuring your sendmail
  (or other SMTP MTA) to be non-blocking, i.e. store-and-forward.

 Can you tell me how to set that up with exim?

  Also you could send just one message to all the recipients instead of
  sending individual messages.

 Urm, they could be pretty unfriendly mail messages if they're being sent
 to a coupla thousand people. The bandwidth dcoming out of your server
 alone would be far higher than it needed to be :-(


How would the bandwidth change??



   I wonder how mailman does this stuff and if the code could be borrowed
   for Zope?
 
  Maybe you could just use mailman as MTA, greating temporary
  mailing-lists.

 Any how-to's for this or how hard it would be to set up?

 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 )

--
-
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions
http://www.adroit.net/
03 9563 4461
0414 708 124



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

2000-09-28 Thread Terry Kerr

Hi,

Has anyone had any experience with storing a large list (several
thousand) of email addresses in an object then sending an email to every
one in the list through a MailHost?  Will I need to send on email to all
these addresses (multiple recipients), or one email for each person on
the list.

I am probably going to end up doing this totally within Zope since it is
an easy solution to a problem, but am wondering whether I would be
better off trying to get all the mail address into mailman or something.

Terry.

--
-
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions
http://www.adroit.net/
03 9563 4461
0414 708 124



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

2000-09-25 Thread Terry Kerr

We host zope using mutliple installations of zope.  It is better this way
because then the clients can control which products they have installed, they
can tweak their products without bothering anyone else, they can stop and
restart zope whenever they please...the basically have full control.   You
can't do that with more than one client using the same instance.

Yes it does use a fair bit of memory, but you would expect your client to pay
for it accordingly.

terry

"Dicken, Peer" wrote:

 Hi,

 How can I provide ZOPE Hosting? I have successfully tried SiteAccess and
 Apache Proxying, but that´s not what I like - it´s a little bit ZOPE
 "light", no control panel for clients...

 I think it´s best to provide a zope installation for any of our clients,
 but, wouldn´t that be eating up my servers memory? Today i´ve set up three
 installations by simply having 3 zope installations running on different
 ports in different folders (/www/domain/zope).

 Is there any more advanced way to do (virtual) hosting with zope AND provide
 control panels to the clients or is it okay to have one installation per
 costumer running?


 MfG / best regards,

 Peer Dicken

 IMD GmbH
 Softwareentwicklung  Unternehmensberatung
 Edisonstr. 1
 59199 Bönen

 Tel.: +49 23 83 - 9191-0
 Fax.: +49 23 83 - 919191

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

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




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




Re: [Zope] Zope Hosting in .au

2000-09-23 Thread Terry Kerr


Yes.
Adroit Internet Solutions.
www.adroit.net
Daniel Harris wrote:
Hi,
Are there any organisations in .au that offer Zope hosting?
Thanks,
Daniel.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

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



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



Re: [Zope] Zope and the GPL poison pill

2000-09-13 Thread Terry Kerr

Well put!

terry

Jerome Alet wrote:

 On 13 Sep 2000, Erik Enge wrote:

  And if it really is Products (as in lib/python/Products), does this
  mean that if I make a GNU GPL licensed application for a client, I
  can't actually distribute Zope with it?  I have to install them
  separately?

 Maybe this is stupid, but I'm sure it would clarify the situation for all
 of us if DC and the FSF could get in touch, talk about all this, and give
 us a final explanation, agreed by both, explaining exactly what we can and
 can't do regarding this licensing problem.

 bye,

 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 )

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




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




Re: [Zope] Zope and the GPL poison pill

2000-09-12 Thread Terry Kerr

Hi,

I think the direction of this discussion has been lost.  The main
concern is with the distribution of GPL'd zope products as a part of
other products, commercial, proprietary, freeware, or not.  In this
case, does the GPL enforce that the product as a whole must be
distributed under the GPL?  The GPL states that it only applies to
"work based on the Program" defined as

"means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it, either
verbatim or with modifications..."

So from my understanding of this, and what others in this discussion
have said, this means that if you create a product that uses a GPL'd
product either by sub classing it or through other means, and you
distribute this GPL'd product with your own, with the GPL'd product
being modified or not, then your own product must also be GPL'd.  If
however you only provide a pointer in your distribution to the GPL'd
product, and it is up to the software installer to go and fetch the
GPL'd product, then you can distribute under any license that you wish.

On another note...I am not clear on the meaning of the terms in the
ZPL.  Is it possible to distribute your own product with its own license
(possibly the GPL) as a part of a standard un-modified zope distribution
with its terms and conditions intact (i.e., your product is in
lib/python/Products/ ), or in this case would your product automatically
fall under the ZPL?  Would you need to package your own product
completely separately for to to have its own license?

What do Digital Creations people have to say about this?  You have been
quiet so far ;-)

terry

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




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




Re: [Zope] Import from file via management-interface

2000-09-08 Thread Terry Kerr

you can write anything destructive, whether it is an external method, a DTML
Method, or basically anything.  At least if the only way you can import .zexp's
is from the import directory, then only people with access to the zope file
structure can import stuff...that will usually be restricted to system
administrators or superuser people.

terry

Hung Jung Lu wrote:

 I found it very disturbing having to get my .zexp exports
 into the subdirectory 'import' of the server and then using
 the management-interface to do the actual import.

 I found it inconvenient, too. (Not disturbing, though.) And I had to
 implement my own uploading scheme via web. But as anything that is put into
 the file system, I thought that there must be some security reason. At least
 I know that's why the Extensions folder is there.

 Is this (existence of import folder) really a shortcoming of Zope, or is
 there some security reason why .zexp cannot be uploaded directly from
 browser? Can someone somehow write a destructive external method, and then
 upload it via .zexp?

 regards,

 Hung Jung

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

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




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




Re: [Zope] illegal id chars?

2000-09-02 Thread Terry Kerr

Spaces are not converted to their hex values...they are a valid
character for an id!  I think you may be confused when clicking on a
link which are url_quote'd, hence, the space is replaced by its hex
value since it is an illegal url character.

terry



Jason Byron wrote:

 Why is it that objects can't be created because the id
 chosen contains characters that aren't proper in urls?
  Spaces are allowed and converted to their hex values
 when you create an object.  Why not do this with every
 illegal url character?

 I must me missing something here because this seems
 like this should have been one of the first things
 designed into Zope. Right?

 __
 Do You Yahoo!?
 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 )

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




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




Re: [Zope] ZCatalog in 2.2.x

2000-09-02 Thread Terry Kerr

any word...however, i fixed the problem thanks. to Dieter Maurer

Chris McDonough wrote:

 What is the actual word you're looking for?  'blah'?

 Terry Kerr wrote:
 
  Hi,
 
  I can rebuild indexes and recatalog etc, it doesn't change anything.  I
  don't see how it could change anything...it is a brand new zcatalog
  instance.  Simply, the ZCatalog is created, the indexes are created, and
  the zcatalog is initially empty.  Then I create one CatalogAware object,
  and it catalogs itself.  I can see this object in the catalog, and I can
  see the textindexed words in the vocabulary.  But when I search for a word
  in the vocabulary using a textindex (which obviously belongs to the only
  object in the catalog), I get an empty result.  The only way I can get a
  non empty result it to search for the id of the object or one other
  property I have which are indexed as field indexes.
 
  The product I am working on is Etailer.  If anyone is kind enough to take a
  look, you can download it at http://e-tailer.adriot.net/download.html.  The
  function that does the search is searchFor(), at line 419 of Etailer.py.
  Creating an instance of etailer in 2.1.6 works fine, but creating an
  instance of etailer in 2.2.x and the catalog doesn't work.
 
  i am very confused ;-).
 
  Chris McDonough wrote:
 
   This is not right, obviously.  Can you rebuild your indexes (by deleting
   and reentering them), recatalog, and see if the problem goes away?  We
   haven't had any colluding reports of something like this, and I'm using
   the 2.2.1 catalog with textindexes successfully on a customer project.
  
-Original Message-
From: Terry Kerr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 3:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] ZCatalog in 2.2.x
   
   
I am not searching from a form in that sense...I am talking
about at the python
level.
   
I have self.searchResults({'description':'blah'})  where
description is meta
data in the catalog and a textindex and 'blah' is in the
Vocabulary.  This
previously worked in zope2.1.6.  Now in 2.2.0 and 2.2.1 it
doesn't work.  The
only thing way I can get searchResults() to return a non
empty list is to search
using a Field index and a valid string to match with.
   
   
[EMAIL PROTECTED] wrote:
   
 Terry Kerr [EMAIL PROTECTED] said:

  Hi,
 
  I have a python product which uses a ZCatalog and CatalogAware
  products.  The catalog has a number of Field and
TextIndex indexes.
  Search the ZCatalog has worked fine when my product is
instantiated in
  2.1.6.  But now when I instantiate my product in 2.2.0 or 2.2.1,
  searching only works when I search using a field index.
Searching using
  a textindex always results in an empty result, even tho I
can see the
  words I am searching for in the Vocabulary!  Any
suggestions?  I have
  tried reindexing, completey recreating the Zcatalog,
recreating the
  Vobulary and reindexing, and nothing has changed the
behaviour.  Are
  textindexes simply broken?
 
 
  ZCatalog seems very volatile to me!  Every time I have
upgraded way back
  from zope2.1.3, something in zcatalog has changed and
boken my product.
  So far I have managed to find fixes, but this one has got
me baffled!!
 

 My experience has been that if field indexes are
unspecified, the catalog
 will only match where those fields are empty.  In other
words, by not
 specifing anything for the field indexes, you are actually
specifying that
 for a match, they need to be empty.
 To get around this, I put another method between the form
for entering what
 you wish to search for, and the method that actually
searches the form.  This
 method looks at the field indexes, and if nothing has been
specified, it
 doesn't pass them on to the method that does the actual search.
 An alternative to this, is to use names for the field
indexes that aren't in
 the catalog index, and then at the start of the search
method, check those
 names, and if they have a value associated with them, add
to REQUEST what the
 names in the index are with the appropriate values.

 There may be a better way, I'm still pretty new to Zope and
DTML sort of
 stuff.

 Peter Armstrong
   
--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381
   
   
   
   
___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http

Re: [Zope] indexing pdf files

2000-09-01 Thread Terry Kerr

I just answered my own question.

The program is pdftotext, part of the xpdf package available for unix
machines.

It is very cool and very fast.

terry


Kapil Thangavelu wrote:

 Terry Kerr wrote:
 
  Hi,
 
  I need to be able to index the text within pdf files.  I assume I will
  somehow use PrincipiaSearchSource, but I need to know how to get the
  text out of the pdf when it is uploaded to the ZODB.  Has anyone done
  this before?  Are there any packages around that I can use that run in
  python or at least on a linux box that I can pipe to and from?
 
  terry
 

 from xml2pdf there are a multitude of ways in python

 XSLT - check out the ibm.com/developer xmlzone they have an article in
 the education lib for transforming xml to pdf.

 platypus packages from
 http://www.reportlab.com/

 they might give you some help in going the other way..

 as for implementation...

 looking at a pdf in a text viewer it appears to be formating text and
 encoded display strings.

 you could write a subclass of file, which read its content upon upload
 stripping the formatting string and decoding the display strings and
 storing that as a property to be indexed.

 Kapil

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




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




Re: [Zope] ZCatalog in 2.2.x

2000-09-01 Thread Terry Kerr

Hi,

I can rebuild indexes and recatalog etc, it doesn't change anything.  I
don't see how it could change anything...it is a brand new zcatalog
instance.  Simply, the ZCatalog is created, the indexes are created, and
the zcatalog is initially empty.  Then I create one CatalogAware object,
and it catalogs itself.  I can see this object in the catalog, and I can
see the textindexed words in the vocabulary.  But when I search for a word
in the vocabulary using a textindex (which obviously belongs to the only
object in the catalog), I get an empty result.  The only way I can get a
non empty result it to search for the id of the object or one other
property I have which are indexed as field indexes.

The product I am working on is Etailer.  If anyone is kind enough to take a
look, you can download it at http://e-tailer.adriot.net/download.html.  The
function that does the search is searchFor(), at line 419 of Etailer.py.
Creating an instance of etailer in 2.1.6 works fine, but creating an
instance of etailer in 2.2.x and the catalog doesn't work.


i am very confused ;-).


Chris McDonough wrote:

 This is not right, obviously.  Can you rebuild your indexes (by deleting
 and reentering them), recatalog, and see if the problem goes away?  We
 haven't had any colluding reports of something like this, and I'm using
 the 2.2.1 catalog with textindexes successfully on a customer project.

  -Original Message-
  From: Terry Kerr [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 30, 2000 3:27 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: [Zope] ZCatalog in 2.2.x
 
 
  I am not searching from a form in that sense...I am talking
  about at the python
  level.
 
  I have self.searchResults({'description':'blah'})  where
  description is meta
  data in the catalog and a textindex and 'blah' is in the
  Vocabulary.  This
  previously worked in zope2.1.6.  Now in 2.2.0 and 2.2.1 it
  doesn't work.  The
  only thing way I can get searchResults() to return a non
  empty list is to search
  using a Field index and a valid string to match with.
 
 
  [EMAIL PROTECTED] wrote:
 
   Terry Kerr [EMAIL PROTECTED] said:
  
Hi,
   
I have a python product which uses a ZCatalog and CatalogAware
products.  The catalog has a number of Field and
  TextIndex indexes.
Search the ZCatalog has worked fine when my product is
  instantiated in
2.1.6.  But now when I instantiate my product in 2.2.0 or 2.2.1,
searching only works when I search using a field index.
  Searching using
a textindex always results in an empty result, even tho I
  can see the
words I am searching for in the Vocabulary!  Any
  suggestions?  I have
tried reindexing, completey recreating the Zcatalog,
  recreating the
Vobulary and reindexing, and nothing has changed the
  behaviour.  Are
textindexes simply broken?
   
   
ZCatalog seems very volatile to me!  Every time I have
  upgraded way back
from zope2.1.3, something in zcatalog has changed and
  boken my product.
So far I have managed to find fixes, but this one has got
  me baffled!!
   
  
   My experience has been that if field indexes are
  unspecified, the catalog
   will only match where those fields are empty.  In other
  words, by not
   specifing anything for the field indexes, you are actually
  specifying that
   for a match, they need to be empty.
   To get around this, I put another method between the form
  for entering what
   you wish to search for, and the method that actually
  searches the form.  This
   method looks at the field indexes, and if nothing has been
  specified, it
   doesn't pass them on to the method that does the actual search.
   An alternative to this, is to use names for the field
  indexes that aren't in
   the catalog index, and then at the start of the search
  method, check those
   names, and if they have a value associated with them, add
  to REQUEST what the
   names in the index are with the appropriate values.
  
   There may be a better way, I'm still pretty new to Zope and
  DTML sort of
   stuff.
  
   Peter Armstrong
 
  --
  Terry Kerr ([EMAIL PROTECTED])
  Adroit Internet Solutions Pty Ltd (www.adroit.net)
  Phone:   +613 9563 4461
  Fax: +613 9563 3856
  Mobile:  +61 414 938 124
  ICQ: 79303381
 
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 

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

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd

Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Terry Kerr

I am not searching from a form in that sense...I am talking about at the python
level.

I have self.searchResults({'description':'blah'})  where description is meta
data in the catalog and a textindex and 'blah' is in the Vocabulary.  This
previously worked in zope2.1.6.  Now in 2.2.0 and 2.2.1 it doesn't work.  The
only thing way I can get searchResults() to return a non empty list is to search
using a Field index and a valid string to match with.


[EMAIL PROTECTED] wrote:

 Terry Kerr [EMAIL PROTECTED] said:

  Hi,
 
  I have a python product which uses a ZCatalog and CatalogAware
  products.  The catalog has a number of Field and TextIndex indexes.
  Search the ZCatalog has worked fine when my product is instantiated in
  2.1.6.  But now when I instantiate my product in 2.2.0 or 2.2.1,
  searching only works when I search using a field index.  Searching using
  a textindex always results in an empty result, even tho I can see the
  words I am searching for in the Vocabulary!  Any suggestions?  I have
  tried reindexing, completey recreating the Zcatalog, recreating the
  Vobulary and reindexing, and nothing has changed the behaviour.  Are
  textindexes simply broken?
 
 
  ZCatalog seems very volatile to me!  Every time I have upgraded way back
  from zope2.1.3, something in zcatalog has changed and boken my product.
  So far I have managed to find fixes, but this one has got me baffled!!
 

 My experience has been that if field indexes are unspecified, the catalog
 will only match where those fields are empty.  In other words, by not
 specifing anything for the field indexes, you are actually specifying that
 for a match, they need to be empty.
 To get around this, I put another method between the form for entering what
 you wish to search for, and the method that actually searches the form.  This
 method looks at the field indexes, and if nothing has been specified, it
 doesn't pass them on to the method that does the actual search.
 An alternative to this, is to use names for the field indexes that aren't in
 the catalog index, and then at the start of the search method, check those
 names, and if they have a value associated with them, add to REQUEST what the
 names in the index are with the appropriate values.

 There may be a better way, I'm still pretty new to Zope and DTML sort of
 stuff.

 Peter Armstrong

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




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




Re: [Zope] Bug Tracking Product Recommendation?

2000-08-30 Thread Terry Kerr

I am interested in this as well!

[EMAIL PROTECTED] wrote:

 Hi,
 I want to setup a Zope-based bug tracking system.  Can anyone
 recommend a Zope product that would do this relatively well?

 Thanks

 --Sean

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

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




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




Re: [Zope] SSL and PGP

2000-08-30 Thread Terry Kerr

coolI am eagerly waiting...

[EMAIL PROTECTED] wrote:

 On Wed, 30 Aug 2000, Terry Kerr wrote:

  We have done this in our Etailer product...grab the source and take a look...
  http://e-tailer.adroit.net/.  Basically we just pipe the string to be
  encrypted to the gnu pgp program on a linux box.  Take a look at
  http://www.pgpi.org/products/gnu/gpg/.

 I'm working with two other developers to build an entire Python-GPG API,
 so that we can access all GnuPG functionality from Python.  It's GPL and
 if anybody here's interested in participating, send me a mail.

 Regards, Morten

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




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




Re: [Zope] SSL and PGP

2000-08-29 Thread Terry Kerr

We have done this in our Etailer product...grab the source and take a look...
http://e-tailer.adroit.net/.  Basically we just pipe the string to be encrypted
to the gnu pgp program on a linux box.  Take a look at
http://www.pgpi.org/products/gnu/gpg/.

terry


Diego Rodrigo Neufert wrote:

 Hi...

 Anyone know how to send a pgp cryped email in zope? (using dtml-sendmail or
 anything else)

 and

 How to run a SSL server with ZServer?

 Thanks...

 --
 ---
 Diego Rodrigo Neufert
 -webmaster
 ---
 (Magic Web Design)
 (email) ([EMAIL PROTECTED])
 (curitiba) (pr)

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

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




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




[Zope] ZCatalog in 2.2.x

2000-08-29 Thread Terry Kerr

Hi,

I have a python product which uses a ZCatalog and CatalogAware
products.  The catalog has a number of Field and TextIndex indexes.
Search the ZCatalog has worked fine when my product is instantiated in
2.1.6.  But now when I instantiate my product in 2.2.0 or 2.2.1,
searching only works when I search using a field index.  Searching using
a textindex always results in an empty result, even tho I can see the
words I am searching for in the Vocabulary!  Any suggestions?  I have
tried reindexing, completey recreating the Zcatalog, recreating the
Vobulary and reindexing, and nothing has changed the behaviour.  Are
textindexes simply broken?


ZCatalog seems very volatile to me!  Every time I have upgraded way back
from zope2.1.3, something in zcatalog has changed and boken my product.
So far I have managed to find fixes, but this one has got me baffled!!

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




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




Re: [Zope] copy / paste support

2000-08-15 Thread Terry Kerr

cut and paste of catalog aware products is broken pre 2.2.  i think it is all
fixed in 2.2+ ?

Andy McKay wrote:

 When trying to copy an item I get the following item on paste:

 One or more items referred to in the clipboard data was not found. The item
 may have been moved or deleted after you copied it.

 This is a custom python class which is catalogued. Ive no idea why this is
 happening. Any ideas?

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

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

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




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




Re: [Zope] copy / paste support

2000-08-15 Thread Terry Kerr

i had horrible cut and paste problems with my python product in 2.1.6.  Then
when I imported instantiations of my product into a fresh install of 2.2, I
still am having problems.  However, if I create a new instance of the product
in 2.2, it all seems to work fine.

Andy McKay wrote:

 Sorry forgot to say Im in 2.2 before latest hotfix. I had a different
 problem prior to my 2.2 upgrade.

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

 - Original Message -
 From: "Terry Kerr" [EMAIL PROTECTED]
 To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, August 15, 2000 4:46 PM
 Subject: Re: [Zope] copy / paste support

  cut and paste of catalog aware products is broken pre 2.2.  i think it is
 all
  fixed in 2.2+ ?
 
  Andy McKay wrote:
 
   When trying to copy an item I get the following item on paste:
  
   One or more items referred to in the clipboard data was not found. The
 item
   may have been moved or deleted after you copied it.
  
   This is a custom python class which is catalogued. Ive no idea why this
 is
   happening. Any ideas?
  
   --
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
  
   ___
   Zope maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope
   **   No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
 
  --
  Terry Kerr ([EMAIL PROTECTED])
  Adroit Internet Solutions Pty Ltd (www.adroit.net)
  Phone:   +613 9563 4461
  Fax: +613 9563 3856
  Mobile:  +61 414 938 124
  ICQ: 79303381
 
 
 

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

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




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




Re: [Zope] A very newbie question

2000-08-13 Thread Terry Kerr


dtml-if "_['sequence-index']%3 ==0"


Indra Gunawan wrote:

 I need to know the value of (sequence-index mod 3)=0
 in something like
 dtml-if "sequence-index mod 3)=0"
 how do I use the mod function correctly? since the divmod function is
 actualy returning 2 pair of value.
 Thanks guys.

 -IGUN-
 ICQ:1474584

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

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




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




Re: [Zope] Reloading file objects?

2000-08-10 Thread Terry Kerr

are u using netscape?  this seems to be a netscape cache problem.  The same
happens with images.  You have to download the image to harddisk for
netscape to update its cache.

Peter Arvidsson wrote:

 I have file-objects containing pdf-files. When I change the object to
 contain another pdf-file (with "manage_upload") I get a problem. When I
 want to view the file it still shows the old file. However when I choose
 save to disk I get the new object and if I take a look at its properties
 (size etc...) they are for the new object.

 Does anyone know a way to get the file to show the new pdf-file when I
 want to view it?

 I have tried to put META HTTP-EQUIV="Pragma" CONTENT="no-cache" in the
 page where I have the link to the file but that doesnt affect the file
 when I open it. The link I use are the path for the file as it is on the
 view-tab of the object. Is there some way to get it to show the new file
 when I view it and not only when I save it to disk or open it in a new
 window?

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

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




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




Re: [Zope] Zope 2.2 under Debian (Woody) broken?

2000-08-05 Thread Terry Kerr

Did u upgrade an existing zope instance with the new distribution, or was
it a clean install?  Did you install the SiteAccess product?  This sounds
like the error you get with an old SiteAccess object in the new zope2.2.
You need to upgrade to the new SiteAccess.

"Pedro I. Sanchez" wrote:

 Hello,

 I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
 problems are reported during the installation but when I try to access
 http://localhost:9673/ I get the following error:

 Zope Error

 Zope has encountered an error while publishing this
 resource.

 Error Type: TypeError
 Error Value: unexpected keyword argument: validated_hook

 The same happens when I try to access the management menus.

 Is the Woody package broken? Any ideas?

 Thank you,

 --
 Pedro

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

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




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




Re: [Zope] Zope 2.2 under Debian (Woody) broken?

2000-08-05 Thread Terry Kerr

You only need the siteaccess product if you wish to server multiple domains
from one zope instance.

"Pedro I. Sanchez" wrote:

 Thank you for the hint.

 I had purged my old zope (dpkg --purge) but it seems something was still
 there hanging around. I did an "rm -rf /var/lib/zope /usr/lib/zope" and
 reinstalled zope and it worked!

 I then tried to install the package "zope-siteaccess" from Woody but it
 depends on zope (= 2.0.0-2) which is not available :|

 I'm sort of new to zope so may I ask, Do I need this "zope-siteaccess"
 package from Woody?

 Thank you,

 Terry Kerr wrote:
 
  Did u upgrade an existing zope instance with the new distribution, or was
  it a clean install?  Did you install the SiteAccess product?  This sounds
  like the error you get with an old SiteAccess object in the new zope2.2.
  You need to upgrade to the new SiteAccess.
 
  "Pedro I. Sanchez" wrote:
 
   Hello,
  
   I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
   problems are reported during the installation but when I try to access
   http://localhost:9673/ I get the following error:
  
   Zope Error
  
   Zope has encountered an error while publishing this
   resource.
  
   Error Type: TypeError
   Error Value: unexpected keyword argument: validated_hook
  
   The same happens when I try to access the management menus.
  
   Is the Woody package broken? Any ideas?
  
   Thank you,
  
   --
   Pedro
  
   ___
   Zope maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope
   **   No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
 
  --
  Terry Kerr ([EMAIL PROTECTED])
  Adroit Internet Solutions Pty Ltd (www.adroit.net)
  Phone:   +613 9563 4461
  Fax: +613 9563 3856
  Mobile:  +61 414 938 124
  ICQ: 79303381

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




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




[Zope] SiteAccess and zope2.2

2000-08-04 Thread Terry Kerr

Hi,

I am trying to upgrade from zope2.1.6 to zope2.2 and my SiteAccess no
longer seems to work.  I have the new version of SiteAccess, and product
is not broken, it just doesn't redirect any hostnames of any of my
sites.  All domains point to the root of zope instead of their
respective folders.

Do I have to change anything else?

terry


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




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




Re: [Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Terry Kerr

then as far as i know there is no way around the problem?  anyone else
have comment?

i think that is the whole point of making objects catalogAware.

Chris Withers wrote:

 Terry Kerr wrote:
 
  how are you moving them?
 
  catalogAware objects unindex themselves when deleted then reindex
  themselves if pasted somewhere.

 The objects aren't catalogAware..

 Chris

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




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




Re: [Zope-dev] cut/paste catalogue aware zclass instances still broken in 2.20?

2000-07-23 Thread Terry Kerr

I had this problem with 2.1.6, but it seems to fix itself with 2.2.0.  I
think you must be having a different problem.  The problem with 2.1.6 was
to do with the copying of objects to the clipboard.  You were not able to
call absolute_url() on an object in the clipboard, and that cause problems
when cutting and pasting catalog aware classes since the index in the
catalog is done by the absolute url and so when unindexing, absolute_url()
is called.  However, the clipboard stuff has changed in 2.2.0 and the
problem seems to have been fixed as far as I can tell.

terry


"Dr. Ross Lazarus" wrote:

 Has anyone else noticed a problem with pasting cut or copied
 catalogue-aware zclass instances?

 The collector item #1371 I submitted on June 27 seems still to be
 present in 2.20 final - sorry, I don't have a patch...

 It's a function I need and duplicating it without using
 manage_pasteObject after a manage_cutObject is going to be painful.

 The manage_cutObject and manage_copyObject functions seem happy enough,
 but when I do a manage_pasteObject, I get "the object foobar does not
 support this operation" - no traceback.

 Zope-2.2.0 source on Redhat linux 6.1

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

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




___
Zope-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] Re: [Zope-dev] Multi-homed objects?

2000-07-17 Thread Terry Kerr

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

Chris Withers wrote:

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

 Cool :-)

 Let me know when it's available :-)

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

 Chris

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

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

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




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




Re: [Zope] HTMLFile from within a method?

2000-07-13 Thread Terry Kerr

Rob Miller wrote:

 Greetings.  I'm a fairly experienced Python programmer, but am new to Zope.
 I'm working on a Python product, and through this process I'm learning my way
 around the Zope innards.  I'm running Zope 2.2.0b3 on an RH6.1 box.

 By declaring a class member that is an instance of the HTMLFile class, I
 can publish dtml files.  This is right out of the "Boring Product" How-To; it
 looks like this:

 --
 class Product(Implicit, Persistent, RoleManager, Folder):

 index_html = HTMLFile('index', globals())
 --

 Then when I browse to an installed instance of my Product, I'll see the
 appropriate output generated by my 'index.dtml' file, which is in the same
 directory as my Product's python modules.

 What I'm having trouble doing is something similar but from within one of my
 Product class's methods.  I've tried this:

 --
 class Product(Implicit, Persistent, RoleManager, Folder):

 def form_handler(self, REQUEST=None):
 return HTMLFile('form_results', globals())
 --

 This causes the output to be munged, like so:

 lt;dtml-var standard_html_headergt;
 lt;dtml-in quot;REQUEST.keys()quot;gt;
 ... and so on ...

 I've also tried:

 --
 class Product(Implicit, Persistent, RoleManager, Folder):

 form_results = HTMLFile('form_results', globals())

 def form_handler(self, REQUEST=None):
 return self.form_results()
 --

This should work u change the last line to

return self.form_results(self,REQUEST).

You need to explicity pass the namespace to it, ie 'self'.  You may or may not
need to pass REQUEST as well.




 This causes zope to attempt to publish the object, but the object (my DTML
 method, stored in "form_results.dtml") doesn't seem to have access to the
 Product's namespace.  That is, I get an error like:

 Error Type: KeyError
 Error Value: standard_html_header

 ...even though there's definitely a standard_html_header defined.

 Finally, I've tried this:

 --
 class Product(Implicit, Persistent, RoleManager, Folder):

 def form_handler(self, REQUEST=None):
 dtml = open('lib/python/Products/Product/form_results.dtml', 'r')
 s = dtml.read()
 dtml.close()
 return s
 ---

 This causes the right data to be passed out, but it's not treated
 as dtml.  A garbled version of my output appears in the browser window, and if
 I view source I see:

 htmlhead/head
 dtml-var standard_html_header
 dtml-in "REQUEST.keys()"
 ... and so on ...

 I know there are other ways to accomplish what I'm trying to accomplish, but I
 really want to understand what's going on here.  Can anyone enlighten me as to
 why I'm seeing the results I'm seeing?  Does anyone have suggestions for an
 appropriately Zen approach to publishing dtml files from within a Product's
 methods?

 Thanks for your time,

 rob

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

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




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




[Zope] cut and paste or an object

2000-07-11 Thread Terry Kerr

Hi,

I have written a product in python which has two classes.  One is a
contrainer class, and the other as an item.  Both classes are
catalogAware.  Both have management interfaces which allow
cut/copy/paste.  Copy and paste works fine.  But if I paste an object
that has been cut, i get the error:

Traceback (innermost last):
File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 179, in publish
File /home/tejay/Zope-2.1.6-src/lib/python/Zope/__init__.py, line
202, in zpublisher_exception_hook
  (Object: RoleManager)
File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 165, in publish
File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py,
line 160, in mapply
  (Object: manage_pasteObjects)
File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 102, in call_object
  (Object: manage_pasteObjects)
File /home/tejay/Zope/lib/python/OFS/CopySupport.py, line 225, in
manage_pasteObjects
  (Object: RoleManager)
File /home/tejay/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py,
line 273, in _delObject
  (Object: RoleManager)
File
/home/tejay/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py,
line 129, in manage_beforeDelete
  (Object: CatalogAware)
File
/home/tejay/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py,
line 186, in unindex_object
  (Object: CatalogAware)
File
/home/tejay/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py,
line 156, in url
  (Object: CatalogAware)
File /home/tejay/Zope-2.1.6-src/lib/python/OFS/SimpleItem.py, line
319, in absolute_url
  (Object: CatalogAware)
File /home/tejay/Zope-2.1.6-src/lib/python/OFS/SimpleItem.py, line
319, in absolute_url
  (Object: RoleManager)
File /home/tejay/Zope-2.1.6-src/lib/python/OFS/SimpleItem.py, line
319, in absolute_url
  (Object: ElementWithAttributes)
File /home/tejay/Zope/lib/python/OFS/Application.py, line 282, in
absolute_url
  (Object: ApplicationDefaultPermissions)
  AttributeError: aq_acquire

The only difference between cutnpast and copynpaste is that cutnpaste
will remove the object before setting the new object.  The problem seems
to lie in obtaining the absolute_url of the object to be removed which
is need by CatalogAware to unindex the object.  I dont understand this,
as a direct call to _delObject() from the contrainer class works fine,
so I don't understand why a call to _delObject from within the
manage_pastObjects method results in the above error.

I have been trying to figure this out for days.  Can anyone shead any
light on the subject?

terry



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




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




Re: [Zope] Cookie Question

2000-07-11 Thread Terry Kerr

maybe the cookie name doesn't exist.

try dtml-if "REQUEST.cookies.has_key('cookie_name')"

Rob Pratt wrote:

 Hello.

 Here's what I'm trying to do:

 dtml-if "REQUEST.cookies['cookie_name']"

 ... do something using data from the cookie ...

 /dtml-if

 This syntax, though, continually throws errors--a key error on
 'cookie_name'. I've tried nesting the dtml-if statements within dtml-with
 REQUEST/dtml-with statements.

 What am I doing wrong? What concept am I missing?

 Rob Pratt
 [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 )

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




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




Re: [Zope] cut and paste or an object

2000-07-11 Thread Terry Kerr

I have tracked the problem down to order of inheritance, but stull can't solve
it.  My item class inherits from CatalogAware, then ObjectManager.

class Product(CatalogAware,Item,ObjectManager,RoleManager,ProductProperties):

CatalogAware has to be first so that manage_afterAdd, manage_afterClone and
manage_beforeDelete are over ridden so that the object can index and unindex
itself from the catalog.  However, with CatalogAware being first, I get the
traceback below when pasting and object that has been cut.

If I inherit from ObjectManager first, then I can past without problem, but the
class is effectively no longer CatalogAware, and isn't indexed or unindexed
from my catalog.

I still cannot understand why absolute_url() is causing this error.  I wrote a
small function on the object itself, which when called works perfectly.

def blah(self,REQUEST=None):
""" blah """
print self.absolute_url()
print self.url()

Why when absolute_url() is called from with the CatalogAware class does it
cause the error?

Has anybody else been able to paste CatalogAware objects?  Can anyone help with
this...maybe somebody at digital creations?

terry


Andy McKay wrote:

 Sorry, I cant shed any light but I still have the exact same problem. More
 bizarrely I could copy then delete then paste and that worked fine.

 - Original Message -
 From: "Terry Kerr" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, July 11, 2000 2:10 AM
 Subject: [Zope] cut and paste or an object

  Hi,
 
  I have written a product in python which has two classes.  One is a
  contrainer class, and the other as an item.  Both classes are
  catalogAware.  Both have management interfaces which allow
  cut/copy/paste.  Copy and paste works fine.  But if I paste an object
  that has been cut, i get the error:
 
  Traceback (innermost last):
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
  line 214, in publish_module
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
  line 179, in publish
  File /home/tejay/Zope-2.1.6-src/lib/python/Zope/__init__.py, line
  202, in zpublisher_exception_hook
(Object: RoleManager)
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
  line 165, in publish
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py,
  line 160, in mapply
(Object: manage_pasteObjects)
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
  line 102, in call_object
(Object: manage_pasteObjects)
  File /home/tejay/Zope/lib/python/OFS/CopySupport.py, line 225, in
  manage_pasteObjects
(Object: RoleManager)
  File /home/tejay/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py,
  line 273, in _delObject
(Object: RoleManager)
  File
 
 /home/tejay/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py,
  line 129, in manage_beforeDelete
(Object: CatalogAware)
  File
 
 /home/tejay/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py,
  line 186, in unindex_object
(Object: CatalogAware)
  File
 
 /home/tejay/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py,
  line 156, in url
(Object: CatalogAware)
  File /home/tejay/Zope-2.1.6-src/lib/python/OFS/SimpleItem.py, line
  319, in absolute_url
(Object: CatalogAware)
  File /home/tejay/Zope-2.1.6-src/lib/python/OFS/SimpleItem.py, line
  319, in absolute_url
(Object: RoleManager)
  File /home/tejay/Zope-2.1.6-src/lib/python/OFS/SimpleItem.py, line
  319, in absolute_url
(Object: ElementWithAttributes)
  File /home/tejay/Zope/lib/python/OFS/Application.py, line 282, in
  absolute_url
(Object: ApplicationDefaultPermissions)
AttributeError: aq_acquire
 
  The only difference between cutnpast and copynpaste is that cutnpaste
  will remove the object before setting the new object.  The problem seems
  to lie in obtaining the absolute_url of the object to be removed which
  is need by CatalogAware to unindex the object.  I dont understand this,
  as a direct call to _delObject() from the contrainer class works fine,
  so I don't understand why a call to _delObject from within the
  manage_pastObjects method results in the above error.
 
  I have been trying to figure this out for days.  Can anyone shead any
  light on the subject?
 
  terry
 
 
 
  --
  Terry Kerr ([EMAIL PROTECTED])
  Adroit Internet Solutions Pty Ltd (www.adroit.net)
  Phone:   +613 9563 4461
  Fax: +613 9563 3856
  Mobile:  +61 414 938 124
  ICQ: 79303381
 
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://

[Zope] Confera problem

2000-07-02 Thread Terry Kerr

Hi,

I just downloaded Confera-1.2.0-nonbin.tgz, installed it, and created a
Confera topic instance.   I posted a mesage to the topic, and then
posted a reply to this messge.  This is what i get:

Traceback (innermost last):
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /home/tejay/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202,
in zpublisher_exception_hook
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
165, in publish
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: addMessage)
  File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
102, in call_object
(Object: addMessage)
  File lib/python/Products/Confera/Confera.py, line 565, in addMessage
  File /var/tmp/python-root/usr/lib/python1.5/regsub.py, line 38, in
gsub
AttributeError: (see above)

Has any one had this problem?  I don't really have time to go hunting
for the problem at the moment.

I am running a Zope 2.1.6 from src on RH linux 6.2.

terry


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




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

2000-06-20 Thread Terry Kerr

Hi,

I am researching using zope as a framework for a product that I am going
develop and sell.  I will develop a python product for zope.  The
product will not be open source, so I will only be distributing the byte
code .pyc files, and not the source.  However I understand that it is
possible to decompyle .pyc files back to the sourcealthough I don't
know how difficult this is to do successfully.  Are there any tricks
that I should know about to make this any harder?

Basically I want to know if anyone else has used zope for a commercial
product b4, and how they did it.  Is there anything in particular that I
should know about.  Should I just rely on a good software license to
protect my code?  Also...are .pyc files as platform independent as .py
files?

Any info appreciated.

terry


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




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

2000-06-01 Thread Terry Kerr

Hi,

I would like to be able to have gifs/jpgs stored in an MS access
database and then pull the out using zope and display them in rendered
documents.  I am completely new to access.  I have successfully
installed the ODBCDA into zope, and are able to connect to an access
database and pull ordinary text data out of tables.

I have created a table in access with a column of type 'OLE object' and
put a gif image in as data.  This is the only way I know how to get an
image into the table.  The problem I think with this is that it is a
link to the gif on the HDD, and doesn't actually have the data in the
table?  Anyway, when I pull the data out of the table from zope, access
puts a header and footer around the gif binary data, and hence a simple
dtml-var blah wont work to display the image.  Has anyone else every
pulled images from an access database.  Will I have to write a method to
strip the header and footer from the returned data before displaying the
gif?

terry.

--
-
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions
http://www.adroit.net/
03 9563 4461
0414 938 124



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] E-Commerce solution using Python and Zope.

2000-05-29 Thread Terry Kerr

Graham Chiu wrote:

 
 these problems were fixed...it was only a problem initially caused by an
 upgrade.
 

 Hi,

 A couple of other things.  On your front page, the non-hilighted 'demo'
 image is broken.  If you go to www.adroit.com there are more broken images.
 You may not be seeing them if they're in your cache.

 Also, your shopping cart is still broken.

 Try this

 1. select an image and place into cart.
 2. go to check out
 3. don't enter any details and click on buy
 4. It then asks for credit card details - when it shouldn't really allow you
 this far
 5. Then just keep backing out and the cart empties out :-(

 I downloaded the latest checkout but haven't had to a chance to see where
 the bug is.


Ok...I found the bug that allows you to buy without entering any details  I can
fix it.

Yes, after you have entered the checkout, you cannot back out.  This was just
overlooked...it will be fixed.


 Otherwise it looks quite good, though I would prefer a solution that uses a
 relational database to save data. ( My own Zope Ecommerce site has about
 24,000 items which would be a bit painful to add items using a through the
 web interface. )


We didn't use a relational database because it is way too is too complex for
the intended use of the product.  The idea behind e-tailer was to have an
ecommerce product which is extremely simple and quick to setup.   Setting up a
shop is as simple as adding an e-tailer from the manage screen of a folder.  It
takes less that 5 minutes to have the shop fully setup and ready to go and
accepting secure credit information.  I don't know of any other ecommerce
products that are that easy to setup.   Besides, there are no easy ways to
manipulate an SQL backend like we do with the e-tailer catalog.  Things like
adding and remove product properties, and giving properties to categories that
all the products within that category will aquire, and having products and
categories aquiring template styles, etc.  This is all very difficult if not
impossible to acheive with a flat relational database.

We never intended for e-tailer to hold 24000 items!  Although i dont see any
problem with this.  We have done some tests with over 5 cataloged items in
a zodb and searching was fine.  I agree that adding 24000 items through a web
interface would be painful ;-)  We need to create a tool that can upload items
from other storages so that this kind of process can be speed up.

Having said all that, we are looking at possibly integrating a backend
relational database.

Any more feedback is greatly appreciated! ;-)

terry



 ---
 Graham Chiu
 http://www.compkarori.co.nz/index.php
 http://www.compkarori.com/dynamo -- The HomeBuilt Dynamo
 http://www.compkarori.com/dbase -- The dBase Bulletin

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

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   (03) 9563 4461
Fax: (03) 9563 3856
Mobile:  0414 938 124




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