Re: [Zope-dev] Specify a domain and leave the password for a user blank

2004-03-09 Thread Phil Harris
It's not a bug, in fact it's a cool way to allow different types of 
anonymous users.  That's not to say that it's a fool-proof way of doing 
it, but it generally works, as long as you don't rely on it for any sort 
of security ;) .

The thing is that in later zope versions the functionality has been 
turned off by default, and (at least for 2.6.2) you have to turn it on 
manually, like so:

http://your.server/acl_users/setDomainAuthenticationMode?domain_auth_mode=1

The docstring for this method (from a zope 2.7.0 install) is as follows:

Set the domain-based authentication mode. By default, this
   mode is off due to the high overhead of the operation that
   is incurred for all anonymous accesses. If you have the
   'Manage Users' permission, you can call this method via
   the web, passing a boolean value for domain_auth_mode to
   turn this behavior on or off.
btw, the method is in zope/lib/python/AccessControl/User.py

hth

Phil

Andreas Jung wrote:
I think you are describing a flaw that had been removed in older versions.
Does not sound like a feature but like a bug...
-aj

--On Dienstag, 9. März 2004 13:31 Uhr +0100 Juan Javier Carrera Obrero 
[EMAIL PROTECTED] wrote:

Hi,

In Zope 2.4 or older versions when a user is created, if you specify a
domain and leave the password for a user blank, then anyone from the
permitted domains automatically gets the user's roles without having to
log in.
However, it is not possible in Zope 2.7. I have created a user specifying
a domain and leave the password for this user blank, and although I am in
the domain, I have to log in.
Anybody help me about it ? How can I create a user, specifying a domain,
and if the user is in the domain does not have to log in?
Thanks.-




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


Re: [Zope-dev] Zope 2.7 broken on Windows

2004-01-06 Thread Phil Harris
Better would be to install Python 2.3.3 and use that to run zope.  This 
also gives the advantage of allowing easier installation of third party 
extensions to Python.

Michael Long wrote:

Has there been any progress on this? Or is there a sensible work-around I
can give to our users - other than to switch to Linux!


The workaround is to install python 2.3.2 onto a windows machine and copy the
datetime.pyd from the python installion to the appropriate location in your zope
installation. I don't have my windows box in front of me but IIRC it goes in the
Zope-2.7.0-b3/bin folder.
hth,
Mike
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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


Re: [Zope-dev] Zope + Jabber?

2003-03-31 Thread Phil Harris
Gary,

It's been on my mind from time to time.

What sort of things can you see in your minds eye?

Phil

On Mon, 31 Mar 2003 10:08:41 -0500, Gary Poster [EMAIL PROTECTED] wrote:

Is anyone working on Jabber integration with Zope?  I can think of some 
nice use cases for this.

Gary

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



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


[Zope-dev] slightly offtopic: Publish/Subscribe mechanisms and Zope.

2002-12-08 Thread Phil Harris
All,

Some time ago a Zope developer (a Zope Corp employee) contacted me with regards to my 
pyKnowNow microserver that allowed Python to be a fully fledged part of a KnowNow 
(http://developer.knownow.com) network.

Since I can't remember who that was, typical, I'm posting this in the hope that it 
jogs a few memories. It may also be of interest to others :).

The point of this mail is that a newish project on SourceForge, 
http://mod-pubsub.sf.net, is now available via cvs.  This is basically a repackaging 
as opensource of an earlier, but it seems quite complete, version of KnowNow.  The 
best part is that as well as the Apache Perl cgi based server there is also a complete 
alpha quality version of a server written in Python based on asyncore.

This seems like a good opportunity to start looking at Zope and pubsub again.

The mod_pubsub stuff also has a Javascript microserver.  This has huge possibilities 
for interactive web apps, presence, instant messaging, chat, et al.

I apologise if this is too far off topic but thought that people may be interested :).

Phil Harris
[EMAIL PROTECTED]

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



[Zope-dev] Re: Zope-Dev -- confirmation of subscription -- request 616673

2002-11-27 Thread Phil Harris
On Wed, 27 Nov 2002 05:54:27 -0500
[EMAIL PROTECTED] wrote:

 Zope-Dev -- confirmation of subscription -- request 616673
 
 We have received a request from 193.63.123.17 for subscription of your
 email address, [EMAIL PROTECTED], to the [EMAIL PROTECTED]
 mailing list.  To confirm the request, please send a message to
 [EMAIL PROTECTED], and either:
 
 - maintain the subject line as is (the reply's additional Re: is
 ok),
 
 - or include the following line - and only the following line - in the
 message body: 
 
 confirm 616673
 
 (Simply sending a 'reply' to this message should work from most email
 interfaces, since that usually leaves the subject line in the right
 form.)
 
 If you do not wish to subscribe to this list, please simply disregard
 this message.  Send questions to [EMAIL PROTECTED]
 

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



Re: [Zope-dev] Open Letter to zope-dev

2001-11-30 Thread Phil Harris

He's also on #zope, chatting and supporting :)


On Saturday 01 December 2001 02:02, Paul Everitt wrote:
 Chris was just drinking a beer with us at Orbit's twenty minutes ago,
 and now he's responding to email on a Friday night.  That's just sick.
 I don't think your boss fully appreciates you, number 27. :^)

 --Paul

 Chris McDonough wrote:
  The session management framework (formerly known as
  CoreSessionTracking, now
  it is in the core and just called Session) is another example, if my
  first
  look was right. The API seems to have changed a lot between the last
  CST and
  the final Session release that is part of 2.5 beta. O.k., there still
  seems
  to be some backwards-compatibility, but why can't those projects be more
  public? The tools are there (like CVS) ...
 
  Mea culpa.  One of the problems is that that nothing gets by the BDFL
  here (Jim), and he required some of the changes.  But I admit that I
  should have kept the fishbowl project more updated.  I did update it
  (lamely), but not well enough.
 
  -= C
 
 
  ___
  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-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] A modest proposal: Replace medusa with Twisted

2001-10-11 Thread Phil Harris

Been there, done that.

JPE (as it was originally known, Java Python Extensions), has a fatal flaw,
at most one JVM can be attached to a Python script at any one time, this
single instance attaches itself to a single thread, and is not available in
any other thread.

I've had this working with Zope, even serving pages with Java stuff creating
the content, but only intermittently. When Zope serves from the thread with
the JVM attached everything is great, as soon as the thread changes, all
hell breaks loose.

That said, I think JPE/PJE is the best way forward, but this problem needs
to be solved (if it hasn't already).

Phil

- Original Message -
From: Tim Hoffman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 11, 2001 4:32 PM
Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted


 There is another approach however for getting Java and Zope together

 A few weeks back I was mucking around with the Python Java Extension
 (see Python 9 proceedings) and was able to interact with Java
 classes/instances directly from Zope by calling ExternalMethods.  PJE
 basically allows the Java vm to be loaded into the python interpreter.

 Tim



  I can speak about this one... The difficult part of getting Zope to w
  ork on
  Java, IMHO, is not the server. Without too terribly much work, I think
  you
  could get a servlet in front of Zope (once you've taken care of all of
  the
  other things).
  
  We've made some progress toward getting Zope running on Java
  (http://www.phabric.org). The past few weeks, phabric has been on the
  back
  burner at Web Elite because of unrelated paying work.
  
  There are two main areas of work in getting Zope on top of Java: the C
  modules and differences between C Python and Jython. We've made quite a
   bit
  of progress in both of those areas, but there's still more to be done
  before
  Zope will fire up and answer a request.
  
  Kevin



 Tim Hoffman
 Zute Pty Ltd
 mobile: 0411 06
 fax:+61 8 6210 1883
 email:  [EMAIL PROTECTED]


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


___
Zope-Dev 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] A modest proposal: Replace medusa with Twisted

2001-10-11 Thread Phil Harris

Hmhm, that is cool, I'll take another look then :)

- Original Message -
From: Itamar Shtull-Trauring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 11, 2001 5:39 PM
Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted


 Phil Harris wrote:

  That said, I think JPE/PJE is the best way forward, but this problem
needs
  to be solved (if it hasn't already).

 Latest CVS README says:
 Multithreading
 ==

 Multithreading issues are taken care of.
 There is still a known issues concerning process termination
 (non-deamonic thread hang out) that can require that the process be
 interrupted or killed explicitely.
 Some more work need to be done  on process termination
 and cleanup conditions of the virtual machines.



 ___
 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] A modest proposal: Replace medusa with Twisted

2001-10-10 Thread Phil Harris

But kosh, we all know your hatred of all things Microsoft.

You're absolutely right, it could be fixed, and probably should be as well.

Thing is that from what I see win32 is the most popular platform for Zope
(I'm including experimenters here though, not just production sites).
Anyone from ZC want to comment on that.

- Original Message -
From: [EMAIL PROTECTED]
To: Phil Harris [EMAIL PROTECTED]
Cc: Chris Withers [EMAIL PROTECTED]; Itamar Shtull-Trauring
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, October 10, 2001 12:21 PM
Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted


 On Wed, 10 Oct 2001, Phil Harris wrote:

  I'd say the fact that it doesn't work on Win32 is a bit of a downer.
 
 Just a bit but overall I expect that could be changed if it where really
 important. From what I have seen under high load and python program will
 kill windows after a few days with some VM problems so this does not seem
 that important to me. I have seen on irc and the lists a good deal of
 problems to do with windows and zope with VM issues over time. I have not
 done much testing with that though since it seems like kind of a silly
 thing to spend a few thousand on an OS to run a free server on when you
 can run it on a free os also and just pay for the hardware.

 Designing the webpages of tomorrow http://webme-eng.com
 Designing the MMORPGS of tomorrow http://worldforge.org


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



Re: [Zope-dev] Zope Cygwin

2001-10-10 Thread Phil Harris

I had a brief conversation with the Cygwin Python maintainer a little while back, 
supposedly the next release of Cygwin will have a threaded Python (2.1.1 or maybe even 
higher).

Phil

On Wed, 10 Oct 2001 13:17:22 -0400
Chris McDonough [EMAIL PROTECTED] wrote:

  FYI
  I finally have a Cygwin compiled Zope running in a Cygwin enviroment.
  This is with the very latest Cygwin distribution augmented by a locally
  compiled Cygwin as represented by the current Cygwin CVS files.
 
 Cool!  This is excellent.  This means that I stand a shot at getting rid of
 200 miserable MB of VC++ on my machine.
 
 I presume this means that Cygwin Python ships with threads enabled?
 
 - C
 
 
 
 ___
 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-dev] WEBDav error?

2001-09-17 Thread Phil Harris



All,

I'm in the process of creating a Python based 
equivalent for Cadaver.

I think there is a minor but very annoying bug in 
the Zope WebDav server.

I don't think the contents of the properties are 
being quoted.

For instance:

One object in my ZODB has a title of 'Declare 
interfaces for MIMEtype - Type object registry objects.'

The '-' is what causes the problem when 
parsed by xml.dom.minidom.

Any ideas whether I'm right, and if so what can be 
done.

Phil
[EMAIL PROTECTED]

+1 family member.

The nuclear family is now ready.




[Zope-dev] WebDav Bug?

2001-09-17 Thread Phil Harris

All,

I'm in the process of creating a Python based equivalent for Cadaver.

I think there is a minor but very annoying bug in the Zope WebDav server.

I don't think the contents of the properties are being quoted.

For instance:

One object in my ZODB has a title of 'Declare interfaces for MIMEtype -
Type object registry objects.'

The '-' is what causes the problem when parsed by xml.dom.minidom.

Any ideas whether I'm right, and if so what can be done.

Phil
[EMAIL PROTECTED]

+1 family member.

The nuclear family is now ready.


___
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] More on WebDAV properties.

2001-09-17 Thread Phil Harris

Andreas/all,

hmm, now I'm confused.

Looking at PropertySheets.py, it seems as if the properties are quoted, a
call to xml_escape is made with the value of the property as the parameter.

This call is made in dav__allprop, it seems as if it's in the proper place
and all, so what is going wrong?

Any other ideas?

Phil




___
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] Spell checking module

2001-06-27 Thread Phil Harris

Somewhere on the xmlrpc.com site there is reference to a spell checker that
can be used via xmlrpc, this could be used in Zope quite easily.

http://www.stuffeddog.com/speller/ I think is the place to look.

Phil

- Original Message -
From: Remi Delon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 9:35 AM
Subject: [Zope-dev] Spell checking module


 Hello,

 I have a website where users can post messages (using a textarea).
 I would like to be able to spell-check what they submit and
 notify them of possible mistakes. (much like the online
 spell-checker of hotmail that I'm using right now :-))

 Has anybody ever written anything for zope that does something
 similar ?
 I was thinking of using ispell, maybe through a pipe ?
 A search on ispell or even spell on the zope.org website
 doesn't give any interesting result (same on python.org).

 Thanks.

 Rémi.

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


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


___
Zope-Dev 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] SOAP again (or, xml-rpc client for MSIE)

2001-05-30 Thread Phil Harris

Brad,

There are a few COM/COM+ components around that do xml-rpc.

I use them with MS Word to write Word files directly to Zope for instance.

Some are better than others, but ymmv so I'll hesitate to recommend one.

At least one of them is listed on xmlrpc.com.

Having them you could script them via jscript, and basically open up the
connection easily.

hth

Phil
[EMAIL PROTECTED]
- Original Message -
From: Brad Clements [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001 9:16 PM
Subject: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)


 Hate to bring this up again.

 1999 Press release from DC


http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104STORY=/www/story/12-02
-1999/0001087563


  An early 2000 Zope
  release will include support for two protocols heavily supported by
Microsoft,
  the Simple Object Access Protocol (SOAP) and Web Distributed Authoring
and
  Versioning (WebDAV) protocol

 We have WebDav.. How's SOAP look?

 I'm looking for a decent RPC mechanism for MSIE 5.5 to talk to Zope. MS
has their
 webService behavior that supports SOAP. But without SDL or WSDL in Zope
it's gonna
 take a lot of code to get working.

 Otherwise, I could use an XML-RPC client for IE5.5, but I can't find one!



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


 ___
 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] Zope hanging on startup

2001-05-25 Thread Phil Harris

Weird, same thing just starting happening to me a few minutes ago?!?!

Win2k
Zope 2.3.2

Phil
- Original Message - 
From: Andy McKay [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 26, 2001 12:53 AM
Subject: [Zope-dev] Zope hanging on startup


 Anyone else getting occasional hangs from Zope on start up? Sometimes it
 starts, sometimes it seems to just hang from command line or service.
 
 Windows 2k
 Zope 2.3.0
 
 Cheers.
 --
   Andy McKay.
 
 
 
 
 ___
 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] Zope 2.3.2 and win32 python 2.1

2001-05-21 Thread Phil Harris

Richard,

Try search for extensionbuilder.py, this is the magic.

If you can't find it let me know and I'll send it to you.

Be warned though that there are some things it doesn't cope with, the new
btree stuff springs to mind.

hth

Phil
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 5:36 AM
Subject: [Zope-dev] Zope 2.3.2 and win32 python 2.1


 Are there plans for building a python 2.1 compatible Zope 2.3.2 binary
 release for windows?

 If not, could someone please let me know what the magic is for building
it?
 I did a search on zope.org, but found little of use...


 Richard

 --
 Richard Jones
 [EMAIL PROTECTED]
 Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)

 ___
 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] How to handle special sub-directories

2001-04-17 Thread Phil Harris

Remi,

What I ended up doing was to use a Python Script (Internal) or whatever
thy're called now.

I then used the Traversal Path thingy in there to create the same effect.
Naming that index_html worked for me, YMMV.

Phil

- Original Message -
From: "Remi Delon" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 6:53 PM
Subject: Re: [Zope-dev] How to handle "special" sub-directories


 I tried creating the pathhandler at the root and naming it index_html,
 but it still doesn't do what I want.

 If I try to access the url www.website.com, then the path_handler is
indeed
 "called" and my DTML method is called (and the variable "path_to_handle"
is
 empty). If I try to access the URL www.website.com/index_html/a/b/c/d, it
 works too (path_to_handle is ['a', 'b', 'c', 'd']).
 But if I try to access the URL www.website.com/a/b/c/d (which is what I
 want), then it fails (Zope says it cannot find the url), which means the
 pathhandler index_html doesn't get "called".

 What can I do ?

 Thanks,

 Rémi.

 PS: I'm using Zope 2.2.2. I hope this has nothing to do with it !


 Create the pathhandler in the root and name it index_html.

 - Original Message -
 From: "Remi Delon" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Sunday, April 15, 2001 9:39 PM
 Subject: Re: [Zope-dev] How to handle "special" sub-directories


 Thanks Chris.
 
 PathHandler is indeed what I needed. But I have one last
 problem: It looks like I need to create a PathHandler object
 (called "ph" for instance), and then the url is
 www.website.com/ph/member_name
 
 What if I want it to work at the root of my website, like this:
 www.website.com/member_name  ?
 
 Thanks.
 
 Remi.
 
 
  From: "Chris Withers" [EMAIL PROTECTED]
  To: "Remi Delon" [EMAIL PROTECTED], [EMAIL PROTECTED]
  Subject: Re: [Zope-dev] How to handle "special" sub-directories
  Date: Sat, 14 Apr 2001 18:54:53 +0100
  
This is like transforming the URL www.website.com/member_name into
www.website.com/unique_document?arg=member_name
   
How can I do that ?
  
  Look at the PathHandler product on zope.org. Python Scripts on theri
own
  might be able to do this too. Futz with the sub-traversal path or
 whatever
  it's called :-)
  
  cheers,
  
  Chris
  

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


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



Re: [Zope-dev] How to handle special sub-directories

2001-04-15 Thread Phil Harris

Create the pathhandler in the root and name it index_html.

- Original Message -
From: "Remi Delon" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, April 15, 2001 9:39 PM
Subject: Re: [Zope-dev] How to handle "special" sub-directories


 Thanks Chris.

 PathHandler is indeed what I needed. But I have one last
 problem: It looks like I need to create a PathHandler object
 (called "ph" for instance), and then the url is
 www.website.com/ph/member_name

 What if I want it to work at the root of my website, like this:
 www.website.com/member_name  ?

 Thanks.

 Remi.


 From: "Chris Withers" [EMAIL PROTECTED]
 To: "Remi Delon" [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] How to handle "special" sub-directories
 Date: Sat, 14 Apr 2001 18:54:53 +0100
 
   This is like transforming the URL www.website.com/member_name into
   www.website.com/unique_document?arg=member_name
  
   How can I do that ?
 
 Look at the PathHandler product on zope.org. Python Scripts on theri own
 might be able to do this too. Futz with the sub-traversal path or
whatever
 it's called :-)
 
 cheers,
 
 Chris
 

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


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




___
Zope-Dev 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] how can I stop zope through ftp?

2001-04-09 Thread Phil Harris

My take is that you won't be able to restart Zope via FTP, but you can do it
with a normal URL link.

The URL would be http://yourmachine/Control_Panel/manage_restart to restart
it or http://yourmachine/Control_Panel/manage_shutdown to close Zope down.

Obviously you will need to authenticate in some way, and this depends on
what sort of user management you have set up.  You could for instance, if
using normal web authentication, pass the user/password on the url like so
http://user:pass@mymachine/Control_Panel/manage_restart.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "robert at rocad" [EMAIL PROTECTED]
To: "zope-dev" [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 9:41 AM
Subject: [Zope-dev] how can I stop zope through ftp?


 Hi there,
 I am looking for a way to stop zope through FTP.

 Why?
 I would like to have a button on my (Windows) desktop I can push to
restart
 zope without leaving Zopes current setup.

 thanks
 Robert



 ___
 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] MySQL-python-0.3.5 with ZMySQLDAMike

2001-04-05 Thread Phil Harris

Mike,

Is your Zope one of the standard installs or did you build it yourself?

If it's one of the standard installs then it was built with Python 1.5.2.
This means that your build of _mysql.pyd won't work with Zope as it was
built with Python2.0.  You will need to get Python 1.5.2 and rebuild
_mysql.pyd.

At least that's my take on it.

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Mike Blake" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 05, 2001 10:20 AM
Subject: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike


 Hello!

 There are two copies of the _mysql.pyd file on my disk:

 the one I built yesterday is here
C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0

 and there's another one here that I didn't know about here:
C:\Python20
 I'm not sure where that one came from...

 Anyway, I took the _mysql.pyd from
C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0

 and tried putting it in zopedirbin/lib

 But then when I tried to startup zope, it died. No error messages.
 It just tried to start and then died (on win, this is a console
 window that opens and closes itself)

 I then tried putting it in
C:\zopes\chikoon\lib\python\Products\ZMySQLDA
 but had the same results.

 Sorry to continue with the saga, but at least there's no
 copy in html this time! I apologize to everyone for that...

 bye!
 mike blake


 phil wrote:
  RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike,
  You need to put the file _mysql.pyd into your PYTHONPATH.
  Try putting it into the same folder as the ZMySQLDA or into
  zopedirbin/lib.  Either should work OK.

 mike wrote:
  Ok, I installed Microsoft Visual C++ from Studio 6, and
  after I did a successful build and install of the
  setup.py file for the MySQL-python-0.3.5
  I installed it in a folder in my python directory:
  C:\Python20\win32comext\MySQL-python-0.3.5

  the error reads as follows:
  Traceback (innermost last):
  File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in
import_products
 (Object: string)
  File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91,
in ?
  File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ?
  File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ?
  ImportError: No module named _mysql

 --
 [[EMAIL PROTECTED] chikoon]$ whoami
 Mike Blake

 ___
 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] cl.exe with MySQL-python-0.3.5

2001-04-04 Thread Phil Harris

cl.exe with MySQL-python-0.3.5Mike,

Can I ask a favour of you first?

Please don't send HTML formatted mail to the list, thanks.

Now onto your problem.

You need Microsoft Visual C (6.x?) to compile what you want.

If you haven't got it, give me a few hours and I'll comple it for you.

Phil

- Original Message -
From: Mike Blake
To: '[EMAIL PROTECTED]'
Sent: Wednesday, April 04, 2001 12:56 PM
Subject: [Zope-dev] cl.exe with MySQL-python-0.3.5


Hi!
I just tried a build of the MySQL-python-0.3.5 module and
I get a file not found error because I don't have a cl.exe,
which is apparently something I need to finish the build.
Does anyone know what I'm missing?
I have Python 2.0 and MySQL 3.23.33 on win2000
Thanks,
mike
--
[[EMAIL PROTECTED] chikoon]$ whoami

[whoami]  Mike Blake  Web Developer / CellNetwork, Spain
[e-mail]  [EMAIL PROTECTED][icq]  103631268
[mobile]  678 642 392 [direct office phone]  91 761 4913
[office]  Plaza Alonso Martinez 3, 4 Planta, 28004 Madrid



___
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] Compiling Zope from source on Windows

2001-03-27 Thread Phil Harris

This is too cool, works great!

Compiled first time and run first time.

Serving pages already, too cool.



- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Brian Lloyd" [EMAIL PROTECTED]; "Andy McKay"
[EMAIL PROTECTED]; "Chris Withers" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 7:51 PM
Subject: Re: [Zope-dev] Compiling Zope from source on Windows


 Oh my god.  ;-)

 - Original Message -
 From: "Brian Lloyd" [EMAIL PROTECTED]
 To: "Andy McKay" [EMAIL PROTECTED]; "Chris Withers"
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, March 26, 2001 1:24 PM
 Subject: RE: [Zope-dev] Compiling Zope from source on Windows


  FYI: I've finally had time to finish my present :)
 
 
  http://www.zope.org/Members/Brian/Misc/ExtensionBuilder/
 
 
  Brian Lloyd[EMAIL PROTECTED]
  Software Engineer  540.371.6909
  Digital Creations  http://www.digicool.com
 
 
 
 
   -Original Message-
   From: Andy McKay [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 22, 2001 12:58 PM
   To: Chris Withers; Brian Lloyd
   Cc: [EMAIL PROTECTED]
   Subject: Re: [Zope-dev] Compiling Zope from source on Windows
  
  
   Wouldnt be anything to do with SQL would it? Brian did help me a
   while ago,
   I will have a look and see if I can find anything helpful... ;)
   --
 Andy McKay.
  
  
   - Original Message -
   From: "Chris Withers" [EMAIL PROTECTED]
   To: "Brian Lloyd" [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Thursday, March 22, 2001 9:47 AM
   Subject: Re: [Zope-dev] Compiling Zope from source on Windows
  
  
Brian Lloyd wrote:

  What I'm really looking for is how to compile Zope
  from source on Windoze.  Anybody?

 I sent some info to Chris Withers recently, who promised
 to make it into a how-to. I'd say it's time to call him
 on it :)
   
I haven't got it to work yet ;-)
   
cheers,
   
Chris
   
PS: You'll see one of the things that's been sucking my time in a
 minute
   or two
on [EMAIL PROTECTED] ;-)
   
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )
   
  
  
 
 
  ___
  Zope-Dev 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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Phil Harris

Andy,

Try 

print container.getId()

return printed

hth

Phil



- Original Message - 
From: "Andy Dawkins" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 10:29 AM
Subject: [Zope-dev] Zope 2.3.1b3 problem


 People
 
 I have found this small problem but I don't know where it is coming from
 or why.
 
 If you create a Python Script in a folder:
 ---
 print container.id
 
 return printed
 ---
 
 If fails with this error:
 
 Error Type: TypeError
 Error Value: call of non-function (type list)
 
 Traceback (innermost last):
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 223, in publish_module
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 187, in publish
   File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: Traversable)
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 171, in publish
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: h)
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 112, in call_object
 (Object: h)
   File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
 line 324, in __call__
 (Object: h)
   File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
 line 353, in _bindAndExec
 (Object: h)
   File
 /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py,
 line 336, in _exec
 (Object: h)
 (Info: ({'script': PythonScript instance at 83c9878, 'context':
 Folder instance at 874b608, 'container': Folder instance at 874b608,
 'traverse_subpath': []}, (), {}, None))
   File Script (Python), line 2, in h
 (Object: lambda)
 TypeError: (see above)
 
 
 I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it
 works fine on Zope 2.3.1b1
 
 Any Ideas/Assistance?
 
 -Andy
 
 ___
 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-dev] ZPT trials and tribulations

2001-03-16 Thread Phil Harris

All,

I'm in the process of trying out the ZPT stuff(thanks to Duncan Booth for
the win32 stuff).

Anyway up, It's all going according to plan but I have a few issues, maybe
someone has a better idea than me what's wrong here.

code starts here

?xml version="1.0" ?
html xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  head
title tal:insert="here/title"The title/title
  /head
  body
h2 tal:insert="here/title_or_id"the title/h2
div tal:define="ui python:container.userInfo()"
  b tal:replace="python:ui['dn']"crap/b
  b tal:replace="python:ui['sn']"crap/b
  b tal:replace="python:ui['cn']"crap/b
/div
hr /
a href="index_html"click here to refresh/a

  /body
/html

/code ends here

The problem is that I'm getting a traceback (I won't bore you with the
details unless I have to) to the effect of 'ui' being unknown.

If I replace the 'div' in the code above with:

b tal:replace="python:container.userInfo()['dn']"crap/b
b tal:replace="python:container.userInfo()['sn']"crap/b
b tal:replace="python:container.userInfo()['cn']"crap/b

then all works according to design, but with a lot more overhead.

btw, the userInfo method returns a dictionary of LDAP information, it works
in all other contexts, so I don't think the problem is there.

Anyone got any ideas?

Phil
[EMAIL PROTECTED]




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



Re: [Zope-dev] Alumni in zope ?

2001-03-13 Thread Phil Harris

Yes

- Original Message - 
From: "Muhammad Jahanzeb" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 9:27 AM
Subject: [Zope-dev] Alumni in zope ?


 Can we implement an alumni in zope or through 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-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] InterbaseStorage, Win32 anyone?

2001-02-12 Thread Phil Harris

Hi all,

I'm trying to get InterbaseStorage working on Win32.

I've got all the requisite parts and they all seem to be working OK (well,
kinterbasdb and mxDateTime do) outside Zope in plain Python.

When I try and import _kinterbasdb.dll, from within Zope I'm getting an
error message:

Unable to initialize mxDateTime
Traceback (innermost last):
  File "D:\Zope230b2\z2.py", line 565, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "D:\Zope230b2\lib\python\Zope\__init__.py", line 113, in ?
m=imp.load_module('Zope.custom_zodb', m[0], m[1], m[2])
  File "D:\Zope230b2\custom_zodb.py", line 1, in ?
from Products.InterbaseStorage.InterbaseStorage import InterbaseStorage
  File
"D:\Zope230b2\lib\python\Products\InterbaseStorage\InterbaseStorage.py",
line 94, in ?
import kinterbasdb
  File "D:\Python\Lib\kinterbasdb.py", line 4, in ?
import _kinterbasdb
AttributeError: mxDateTimeAPI

Obviously (to me), since Zope has it's own DateTime module, kinterbasdb is
looking there for something and not finding what it expects.

I've tried monkeying with the Python path to resolve it, but even when it's
searching in the right place I'm still getting the error, so I'm at a loss.

Has anyone else tried this, and did you get any joy?

Is anyone else using mxDateTime (I think it's a pre-requisite of mxODBC)?
I've seen one other post about the exact same problem, but with no
resolution.

Anyone got any ideas?

Phil
[EMAIL PROTECTED]


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



Re: [Zope-dev] recent DynPersist.dll for windows

2001-01-17 Thread Phil Harris

Steve,

I've got one on a box at work, I'll check back with you tomorrow, and if you 
still need it it's yours.

I may even be persuaded to compile a new one ;)

Phil

On Wednesday 17 January 2001 23:13, Steve Alexander wrote:
 Hi Folks,

 Does anyone have a recently compiled DynPersist.dll from ZPatterns,
 compiled for Windows ?

 Thanks.

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


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

___
Zope-Dev 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] New UI for 2.3

2001-01-11 Thread Phil Harris

Brian,

Good answer, I for one would like to add a vote for the new UI.

+1

Phil
[EMAIL PROTECTED]

On Thu, 11 Jan 2001, Brian Lloyd wrote:
  I think the new UI for 2.3 is great improvement over 2.2.
 
  I'm already finding the sorted tables of folder contents

 useful, and

  having the add new items select at the top saves time.
 
 
  However, I do not like the 3-frame interface. I feel that

 the top frame

  is wasted space. The Zope logo and "Logged in as username
 
 | Logout"
 |
  could as easily go at the bottom of the tree-view frame on

 the left.

  This would leave extra screen space for doing work.
 
  I realize that I can make the frame smaller by dragging it

 with my

  mouse. I do a lot of TTW development, and I think I might

 find that

  cumbersome, so I guess I'll be hacking the top frame out

 of my

  management interface :-)

 Are you guys working on 486's with 13in. monitors at 640x480
 or
 something? :^)

 Seriously - Zope has been criticized for a very long time
 for
 being, ah, aesthetically challenged :) It is a valid
 criticism
 - we have been (and quite honestly, will continue to be)
 more
 concerned with function over form. But is it really so bad
 to
 make a 32 pixel-high concession to a small pittance of
 branding?

 I know that "branding" isn't important for those who are
 already
 believers, but Zope has grown enough that its reasonable to
 put
 some effort into "first impression factor". It doesn't help
 the
 community for reviews to come out that waste words on the
 visual appeal shortcomings of the UI and totally miss the
 point. A better first impression is a Good Thing.

 The top frame is also a place where we might want to put
 more
 "placeless" operations like logout in the future. You can
 only
 jam so much into the tree pane without it looking very much
 like way too much is being jammed into the tree pane :)
 FWIW,
 one of the things we may put there later is a way to do
 "browser
 preferences" via cookies to control things like default text
 area sizes. That could also have a "hide top frame" option
 for
 those who really can't spare the 32px. :^)



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

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

___
Zope-Dev 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] How do I create a folder with subfolders, docs etc?

2001-01-11 Thread Phil Harris

Espen,

How about untested, but similar works in Python External method:

dtml-call expr="manage_addFolder('newfolder')"
dtml-call "REQUEST.set('newf',_['newfolder'])"
dtml-call expr="newf.manage_addFolder('anotherfolder')"

maybe?!?

Phil


On Thu, 11 Jan 2001, Espen Sorbye Frederiksen wrote:
 Have tried the simplest way:

 dtml-call expr="manage_addFolder('newfolder')"

 dtml-call expr="newfolder.manage_addFolder('anotherfolder')"

 this does not work!

 Any solutions or alternative ways to do it?


 ___
 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] case insensitive sorts

2001-01-03 Thread Phil Harris

See below (nothing earth shattering tho) ;)

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Shane Hathaway" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 10:58 AM
Subject: Re: [Zope-dev] case insensitive sorts


 Shane Hathaway wrote:
 
  Python's sort() lets you sort based on not only strings but also tuples,
  lists, and numbers, which is a very useful feature.  Thus sort() is
  intended to be a highly generalized method.  It is useful but not ideal
  for sorting text strings.  What you *really* want is a second method,
  perhaps in a new module (called "textops" or something similar) that
  would also include multilingual text splitters and other utilities for
  working with human-readable text.

 I agree that's a good idea, but all I'm talking about is the simple case
 of sorting strings, in which python's current implementation isn't very
 helpful and I don't see any situation where sorting:

 Andrew
 David
 Wayne
 bart
 sophie

 is better than sorting:

 Andrew
 bart
 David
 sophie
 Wayne

That's only because you use NT (ach spit). ;)


 cheers,

 Chris

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


___
Zope-Dev 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] Re: PathHandler: bug, readme.txt

2000-11-28 Thread Phil Harris

To my mind it's the browser.

This is a simple trick I use when egating the caching in IE for instance.

Stick a space on the end of the url and IE thinks it's a new one but blindly
strips them before getting the same refreshed page.

This works with any server and any page on that server btw.

Phil

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Willem Broekema" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 1:57 PM
Subject: [Zope-dev] Re: PathHandler: bug, readme.txt


| Willem and Zope-Dev'ers,
|
| Willem Broekema wrote:
| 
|  Hi Chris,
| 
|  PathHandler is a nice and really useful product!
|
| Thanks :-)
|
|  A question though: is it on purpose that it ignores spaces at the end of
|  the url, as in:
| 
|  http://site/ph/%20d%20  -- path_to_handle == [' d'] instead of [' d ']
| 
|  (%20 is the escape code for a space)
| 
|  Although it's really a minor minor thing, letting the user decide how to
|  deal with spaces might be a tiny improvement.
|
| Well, it's not PathHandler that's stripping spaces, so either Zope is,
| or maybe even your browser is.
| Anyone got any ideas?
|
| That said, handling of spaces and %20's in URLs isn't very well defined
| anyway, so I would avoid it if you can...
|
|  And in the README.txt file, please replace
|  dtml-var path_to_handle with lt;dtml-var path_to_handlegt; so it
|  won't be ignored in the browsers.
|
| Well, I think this is a bug with Zope. README.TXT is a text file,
| formatted so it will render nicely in structured text.
| It does this in the management interface for the PathHandler product,
| but the  and  aren't quoted properly.
| I wonder why that is?
|
| Hmmm... anyone know what happened to StructuredTextNG?
|
| Anyway, README.TXT is primarily designed as a text file, and
| lt;dtml-var path_to_handlegt; isn't very easy to read when viewing a
| text file ;-)
| So, I guess someone needs to fix Zope for at least one and maybe both of
| your problems to go away.
|
| Any ideas?
|
| cheers,
|
| Chris
|
| ___
| Zope-Dev maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope-dev
| **  No cross posts or HTML encoding!  **
| (Related lists -
|  http://lists.zope.org/mailman/listinfo/zope-announce
|  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev 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] ANNOUNCE: PartitionedFileStorage

2000-11-23 Thread Phil Harris

Chris,

Any hints/tips on how you did this (just to save me from having to do any
work of course ;))

Phil

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Shane Hathaway" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 10:31 AM
Subject: Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage


 Shane Hathaway wrote:
  What couldn't be tested by my limited resources:
- Platforms other than Linux.

 I'm running this on my NT4 Workstation, not high load but I'll let you
 know if anything weird happens (that isn't caused by me ;-)

 I wonder if this will help with the conflict errors I've been getting?

 cheers,

 Chris

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


___
Zope-Dev 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] What is the local object in zope?

2000-11-17 Thread Phil Harris

Try

expr="this().manage_addDTMLDocument(...)"

although you shouldn't need to do that:

expr="manage_addDTMLDocument(...)"

should work as well.

hth

Phil


- Original Message -
From: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 17, 2000 3:35 PM
Subject: [Zope-dev] What is the local object in zope?


 I am maybe blind, but cannot find a name for the local object in zope
 (like "this" in JAVA ).
 The command call expr="subdirectory.manage_addDTMLDocument()" works if
 subdirectory is a folder in the current folder. However the call
 expr="self.manage_addDTMLDocument(...)" does not work.

 Could anyone tell me what I am doing wrong?

 Cheers,

 Espen



 ___
 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] python memory error on Windows NT

2000-11-03 Thread Phil Harris

Me too, I've seen memory problems with ODBC to Access.

- Original Message - 
From: "Toby Dickenson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 03, 2000 4:13 PM
Subject: RE: [Zope-dev] python memory error on Windows NT


|   That sounds like a bug in an extension module
| 
| 
|  The installed packages on the site are (all the Zope 2.2.2 
|  released with 
|  and):
| 
| ZODBCDA (Installed product ZODBCDA) 
| 
|  we use 2 ODBC connection on 2 MSAccess MDB and no python 
|  extension.
|  I do not know where and when the problem happens. But it happens.
| 
| I suspect Access 
| 
| ___
| 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] Recursive folders from Python

2000-10-31 Thread Phil Harris

Try something like (taken from my own code, so it works for me, caveta
emptor):

def mkcontext(self,context=None):
global default_dd
if not context:
return 'EH!'
c=string.split(context,'/')
newself=self
for a in c:
try:

newself.manage_addFolder(a,createPublic=0,createUserF=0,REQUEST=getattr(self
,'REQUEST',None))
except:
pass
newself=getattr(newself,a) ## this is the relevant line
newself.manage_addLocalRoles(c[-1],['Manager'])
try:
newself.manage_addDTMLMethod('index_html','Start
Page',file=default_dd)
except:
pass

This func takes a slash separated list of folders (actually a NDS context
like 'dacs/media/stf/wmlph' and creates the folder hierarchy.

It's probably overkill for what you want but the relevant line is the
getattr one (as marked).

hth

Phil



- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Jason Spisak" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 6:43 PM
Subject: Re: [Zope-dev] Recursive folders from Python


 Jason Spisak writes:
   Does anyonw know why this code won't create a folder within a folder.
   It's tells me the id is already in use, so that means it's not
   descending into the newly created folder to make another folder.
  
   def create(self):
   for digit in range(0, 10):
   folder= self.manage_addFolder(str(digit), str(digit))
   subfolder = self.folder.manage_addFolder(str(digit),
str(digit))
 Apparently, the above line should add a new folder in (say) '00'.
 What it does, however, is trying to add the new folder in the object named
 'folder' (accessible from 'self'). This may well go wrong.

 Keep in mind, that the local name space of the function 'create'
 (where your variable 'folder' lives) is disjunct from the attribute
 namespace of 'self' (where the attribute 'folder' lives).


 Dieter

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


___
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] How to use methods in a deeper folder?

2000-10-26 Thread Phil Harris

Hannes,

There are a few ways to do this:

dtml-in "eins.zwei.drei.sqlMethod"

or 

dtml-with eins
  dtml-with zwei
dtml-with drei
  dtml-in sqlMethod


or

dtml-with "restrictedTraverse('/eins/zwei/drei/sqlMethod')"

all have their problems/advantages.

try some of the above and see how you get on.

hth

Phil

- Original Message - 
From: "Loibl Johann" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 1:02 PM
Subject: [Zope-dev] How to use methods in a deeper folder?


 Hi,
 
 I would like to use a SQL-Method which exists in a deeper folder;
 
 e.g. 
 
 in dtml-Method  /eins/zwei/index_html  there exists 
 
 dtml-in "/eins/zwei/drei/sqlMethod"
   dtml-var something
 /dtml-in
 
 and my sqlMethod is situated in folder /eins/zwei/drei/
 
 Why  doesn't this work?
 
 Could someone give me a helping hand?
 
 Cheers, Hannes
 
 ___
 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-dev] Re: [Zope] Thanks for the comments

2000-10-12 Thread Phil Harris

As another side note, I generally make it into an eBook ready for the
Microsoft Reader.

If anyone's interested let me know.

Phil
[EMAIL PROTECTED]
- Original Message -
From: "knight" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "Michel Pelletier" [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 12, 2000 10:59 PM
Subject: Re: [Zope] Thanks for the comments


 On a side note, how about also including a PDF version (if possible) for
 us developers who are busy hacking away at source and don't have time to
 convert it ourselves... ;]

 Knight
 [EMAIL PROTECTED]

 On Thu, 12 Oct 2000 [EMAIL PROTECTED] wrote:

  Just out of curiosity, how often do you update the book (i.e., the
version on
  the web)?  Or, put another way, how long should we consider that
catching a typo
  or split infinitive will have already been brought to your attention but
hadn't
  yet made it to the web site?
 
  If you update on a continuous basis, then my question is moot.  However,
if you
  update on a periodic basis, could you drop me (or this list group) a
note to
  indicate that the next version is available for our hungry eyes?
 
  Just a suggestions...
 
  Ron
   ./.
 
   Just thought we'd mention that we have gotten lots of great comments
on
   the Zope book so far, especially in the last week or so.  You're all
   helping make it a better book and ensuring Zope's future.  if you've
   felt in the past that you may not be technically proficient enough to
   contribute to the technology of Zope, you can certainly contribute to
   the documentation by catching our mistakes and making good
observations
   and asking good questions. It is really, really helping.  Keep it up,
   cuz we're not done yet!
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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


___
Zope-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] Membership and PTK

2000-09-30 Thread Phil Harris

Don't do man.

Quick everybody, let's start a rescue comittee!

Congrats Bill

Phil

- Original Message - 
From: "Bill Anderson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 30, 2000 6:40 PM
Subject: [Zope-dev] Membership and PTK


 
 I am getting married Monday, and may be off lists for a week, so for
 anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to
 me now, so I can work on it over the weekend, and next week.
 
 I don't want to duplicate work already done.
 
 Bill
 
 --
 E PLURIBUS LINUX
 
 ___
 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] aq_inner crash: Python 1.5.2's fault? (also how to get the client)

2000-09-26 Thread Phil Harris

Chris,

Have you tried Christian Tismers Stackless Python, which has 'infinite'
recursion capabilities?

www.stackless.com


Phil
- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Jim Fulton" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 26, 2000 2:09 PM
Subject: [Zope-dev] aq_inner crash: Python 1.5.2's fault? (also how to get
the client)


 Jim Fulton wrote:
   The line:
   print self.aq_inner()
  
   in the __call__ method of a python product caused the python process
to
   dump an 'unknown software exception'.
  
   Should that be so?
 
  No. Sound's like a bug. Would you mind submitting a collector entry?

 Not at all, but...

 Toby Dickenson wrote:
 
  I bet you are using python 1.5.2 on Windows.

 I am, Toby's explanation sounds accurate. So, does this go in the Zope
 collector or the Python collector?
 If the later, does anyone know if it is in there already?

 Jim Fulton wrote:
 
http://www.zope.org/Members/michel/Projects/Interfaces/AcquisitionModuleInte
rface
  http://www.zope.org/Members/michel/Projects/Interfaces/Acquisition

 ...very useful links :-)

  In particular:
 
Acquisition.aq_chain(ob,1)

 How would this differ from getPhysicalPath(ob)? Is it just that
 getPhysicalPath won't contain any acquired objects, if you see what I
 mean?

 I think something ob.getPhysicalPath() is probably what I want, but if
 you read my post titled "__call__ hell :-(" you'll see I can't actually
 find the object I'd need to call getPhysicalPath() on. I think it's the
 'client' I'm looking for but I have no idea for to get that in the
 __call__ method of my python product.

 Any ideas?

 (if it helps, the __call__ method is executed as the result of a
 dtml-var myObject which appears in standard_html_header)

 cheers,

 Chris

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


___
Zope-Dev 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] Convert from HTML to DOC or from PDF to DOC.

2000-09-13 Thread Phil Harris

You could try converting to RTF.

There are a few HTML-rtf converters around.

- Original Message -
From: Juan Javier Carrera Obrero
To: [EMAIL PROTECTED]
Sent: Wednesday, September 13, 2000 11:53 AM
Subject: [Zope-dev] Convert from HTML to DOC or from PDF to DOC.


Hi,

We are trying to generate a document from Zope with a format no HTML. We
have used the library "reportlab" (http://www.reportlab.com) to generate it
in PDF format (with python). It is very useful, however we want now to
generate it in DOC format (for Microsoft Word).

I know that Microsoft Word opens a HTML document directly, but when I open a
HTML document with Microsoft Word (v. 97), the document aspect is erased.

Anybody to know any Zope product what allows to convert from HTML to
Microsoft Word, or from PDF to Microsoft Word, or well, any similar way ?

Thanks.

JUAN JAVIER CARRERA OBRERO
e-mail: [EMAIL PROTECTED]


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




Re: [Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Phil Harris

-, that;s a hyphen to you
- Original Message - 
From: "Chris Withers" [EMAIL PROTECTED]
To: "Shane Hathaway" [EMAIL PROTECTED]
Cc: "Jonothan Farr" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 17, 2000 9:57 PM
Subject: [Zope-dev] Aaargh, no safe seperators :S


 Shane Hathaway wrote:
  That would probably work, but isn't kind of ugly?  Now we'd be forcing
  people to realize that colons can be path separators.  Only Mac users
  know this. :-)
 
 Well, 
 
   / and \ are bad XML
 
   ; is bad XML, and _really_ ugly
 
   . confuses when there's .'s in ids
 
 Any other suggestions :S
 
 cheers,
 
 Chris
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev 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] Aaargh, no safe seperators :S

2000-08-17 Thread Phil Harris

How about 

as in

dtml-pathtofileobjectwotsit;

nah, looks really ugl




- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Phil Harris" [EMAIL PROTECTED]
Cc: "Shane Hathaway" [EMAIL PROTECTED]; "Jonothan Farr" [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, August 17, 2000 10:27 PM
Subject: Re: [Zope-dev] Aaargh, no safe seperators :S


 Phil Harris wrote:
 
  -, that;s a hyphen to you

 and that can appear in ids ;-)

 cheers,

 Chris


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




[Zope-dev] Calling parent class method when method is overridden in current class?

2000-08-03 Thread Phil Harris

Hi all,

I'm in the process of creating a Python based product, and have a need to
call the base classes index_html method.

My problem is that I need to call it from my classes index_html.

My class has DTMLDocument as the base class so I want to call something like
DTMLDocument.index_html().

This is my classes index_html (which by the way does not do as I want,
obviously or I wouldn't be posting this 8¬)):

def index_html(self,REQUEST,RESPONSE):
  """ this is a doc string """
  xml=self.inheritedAttribute(xmlRenderer,'index_html') # this is where
I want to call DTMLDocument's index_html()
  xsl=getattr(self,'style.xsl',None)
  if xsl is None:

xsl=open(INSTANCE_HOME+'/lib/python/Products/xmlRenderer/style.xsl','r').rea
d()
  else:
  xsl=xsl.document_src(REQUEST,RESPONSE)
  RESPONSE.setHeader('content-type','text/html; charset=UTF-8')
  return Sablot.ProcessStrings(xsl,xml)

The reason for wanting to do this is so I can get any DTML rendered before I
do my stuff with the results.  Which by the way means that I'll stick it
through a XSL processor with an associated stylesheet and get HTML back.

Any ideas?

tia

Phil
[EMAIL PROTECTED]




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




Re: [Zope-dev] Calling parent class method when method is overridden in current class?

2000-08-03 Thread Phil Harris

Steve,

I'm pretty sure I've tried that but I'll try it again and see what happens,
hang on I'll be right back.

Right I'm back, I thought I'd tried it and I had, I get this error:

Error Type: TypeError
Error Value: call of non-function (type None)

Traceback (innermost last):
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File D:\ZOPE_2~1.2_D\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: 1_introd.xml)
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: index_html)
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: index_html)
  File D:\zope_2.2_dev\lib\python\Products\xmlRenderer\xmlRender.py, line
58, in index_html
(Object: 1_introd.xml)
TypeError: (see above)

which seems to be telling me that DTMLDocument.index_html is None, weird eh!

TFT (thanks for trying)

Phil
[EMAIL PROTECTED]


- Original Message -
From: "Steve Alexander" [EMAIL PROTECTED]
To: "Phil Harris" [EMAIL PROTECTED]
Cc: "Zope-Dev@Zope. Org" [EMAIL PROTECTED]
Sent: Thursday, August 03, 2000 9:40 AM
Subject: Re: [Zope-dev] Calling parent class method when method is
overridden in current class?


 Phil Harris wrote:
 
  Hi all,
 
  I'm in the process of creating a Python based product, and have a need
to
  call the base classes index_html method.
 
  My problem is that I need to call it from my classes index_html.
 
  My class has DTMLDocument as the base class so I want to call something
like
  DTMLDocument.index_html().

 Perhaps DTMLDocument.index_html(self) ?

 The only problem is if you need to call a base-class method from a
 derived ZClass.

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


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




Re: [Zope-dev] Solved - Calling parent class method when method is overridden in current class?

2000-08-03 Thread Phil Harris

Yay, Solved it!

I just had to call __call__ from the DTMLDocument and bob is now married to
my mothers sister.

Phil
[EMAIL PROTECTED]
- Original Message -
From: "Phil Harris" [EMAIL PROTECTED]
To: "Steve Alexander" [EMAIL PROTECTED]
Cc: "Zope-Dev@Zope. Org" [EMAIL PROTECTED]
Sent: Thursday, August 03, 2000 9:45 AM
Subject: Re: [Zope-dev] Calling parent class method when method is
overridden in current class?


 Steve,

 I'm pretty sure I've tried that but I'll try it again and see what
happens,
 hang on I'll be right back.

 Right I'm back, I thought I'd tried it and I had, I get this error:

 Error Type: TypeError
 Error Value: call of non-function (type None)

 Traceback (innermost last):
   File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 222, in
 publish_module
   File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 187, in
 publish
   File D:\ZOPE_2~1.2_D\lib\python\Zope\__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: 1_introd.xml)
   File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 171, in
 publish
   File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\mapply.py, line 160, in
mapply
 (Object: index_html)
   File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\Publish.py, line 112, in
 call_object
 (Object: index_html)
   File D:\zope_2.2_dev\lib\python\Products\xmlRenderer\xmlRender.py, line
 58, in index_html
 (Object: 1_introd.xml)
 TypeError: (see above)

 which seems to be telling me that DTMLDocument.index_html is None, weird
eh!

 TFT (thanks for trying)

 Phil
 [EMAIL PROTECTED]


 - Original Message -
 From: "Steve Alexander" [EMAIL PROTECTED]
 To: "Phil Harris" [EMAIL PROTECTED]
 Cc: "Zope-Dev@Zope. Org" [EMAIL PROTECTED]
 Sent: Thursday, August 03, 2000 9:40 AM
 Subject: Re: [Zope-dev] Calling parent class method when method is
 overridden in current class?


  Phil Harris wrote:
  
   Hi all,
  
   I'm in the process of creating a Python based product, and have a need
 to
   call the base classes index_html method.
  
   My problem is that I need to call it from my classes index_html.
  
   My class has DTMLDocument as the base class so I want to call
something
 like
   DTMLDocument.index_html().
 
  Perhaps DTMLDocument.index_html(self) ?
 
  The only problem is if you need to call a base-class method from a
  derived ZClass.
 
  --
  Steve Alexander
  Software Engineer
  Cat-Box limited
  http://www.cat-box.net


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


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




Re: [Zope-dev] [Zope] App isolation

2000-08-01 Thread Phil Harris

I'd second the vote for xml-rpc/SOAP.

You probably want to take a look at Medusa for your xml-rpc server, it's a
piece of the proverbial piss, (Welsh slang for "it's easy").

I verified Zope and Medusa some time back against Dave Winer's validation
tests, and both came out well.  Zope seems to be one of the more valid
xml-rpc servers/clients.

The results of the validation tests are available on,
http://validator.xmlrpc.com.  My machine is http://www.zweb.co.uk.  It's
been running for quite a while now, with no hiccups at all (at least on the
xml-rpc front ;) ).

If you need to know anything else I'm more than wiling to help if I can.

Phil Harris
[EMAIL PROTECTED]



- Original Message -
From: Monty Taylor [EMAIL PROTECTED]
To: Jacques Exelrud [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 6:33 PM
Subject: Re: [Zope-dev] [Zope] App isolation


 I'm fairly sure there's already a Zope COM interface, and I know Zope
 can
 do xml-rpc. And SOAP support is coming. So I would suggest building it
 as an XMLRPC
 or SOAP server, and then use the Zope client functionality already there
 to
 connect to it. I wouldn't do COM because I'm an Open Source bigot.

 Monty

 Jacques Exelrud wrote:
 
  Not sure if this list is the best place to put such question but
here it
  is...
  I need to develop what would be a product if only Zope was the
target.
  As it´s not I was thinking what could I do to not need to build such app
  twice:
  I came to 2 options both involving building a server of some kind
and
  using Python to connect to this server.
 
  1st
  Build the app as a COM server (the target OS is Windows) and
using
  Python support build an interface to this COM server as a Zope
  product
 
  2nd
  Build the app as a XMLRPC server and using Python support build
an
  interface to this XMLRPC server
 
  The second options is better because I´m not attached to any
platform
  but, as I said, that´s not an issue right now.
 
  Good options would be having a JVM running "inside" Zope so that
jave
  objects could be accessed by it or SOAP Zope support beeing ready...
 
  Any sugestions on any of those or a 3rd option ?
 
  Thanks in advance,
  Jacques
 
  ___
  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-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] ZMySQLDA - errors during compilation...

2000-07-27 Thread Phil Harris

Jon,

If I remember correctly all you have to do is remove the  from the lines in
question.

So on line 384 of MySQLModule.c find the  and remove it, just the .

Then repeat for any line with the same error and hey presto, Bob is now
married to your mothers sister.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Jon Franz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 26, 2000 8:44 PM
Subject: [Zope-dev] ZMySQLDA - errors during compilation...


 Hello,
 I'm trying to install ZMySQLDA onto a Linux machine with
 Zope 2.2.0, python 1.5.2, and a newly installed (from source)
 copy of MySQL 3.22.23 (latest stable).  I had to modify the
 include paths in Setup.in so it could find the include files,
 but now I get the following errors when running make:

 
 gcc -fpic  -I/usr/local/mysql/include/mysql -I/usr/include/mysql -g -O2
 -I/usr/local/include/python1.5 -
 I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c
 ./MySQLmodule.c: In function `pythonify_row':
 ./MySQLmodule.c:238: warning: assignment from incompatible pointer type
 ./MySQLmodule.c: In function `pythonify_res_fields':
 ./MySQLmodule.c:384: invalid lvalue in unary `'
 ./MySQLmodule.c: In function `STH_fetchdict':
 ./MySQLmodule.c:1125: invalid lvalue in unary `'
 ./MySQLmodule.c:1147: invalid lvalue in unary `'
 make: *** [MySQLmodule.o] Error 1
 

 any suggestions?  I've had errors installing ZMySQLDA before,
 but nothing like this...

 Thanks in advance.

 ~  Jonathan M. Franz ~ Senior Developer/Technical Leader  ~
 ~ SW-Dev Division, Springdale, Ohio Office ~ 513.618.2248 ~
 ~ OneNet Communications (A USNet/MDM Company) www.one.net ~

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


___
Zope-Dev 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] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Phil Harris

Thomas,

Have you seen the Zope on CDROM howto?

Try searching on zope.org (when it's back up that is) for it.

hth

Phil

- Original Message -
From: "Thomas Weholt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 25, 2000 10:27 AM
Subject: [Zope-dev] Use ZODB3 and ZCatalog for indexing purposes


 Hi,

 I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project.
The
 actual cd-roms will seldom change after they've been registered, and I'd
 like to have some sort of auto-full-text-search feature.
 How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a
 Zope-product yet, just a plain python-script, using ZODB/ZCatalog for
 storage. Later, the thing will have a Zope-interface, but for now I'm
having
 so much trouble with my current implementation using PostgreSQL, mostly
due
 to the fact that I cannot get full-text-searching, that I really need some
 progress now. I'm dealing with plain python objects the entire time, but
 searching is alpha/omega in this case and will break it completly if not
 implemented correctly.

 Any hints, tips, flames or just emails sent out of boredome, I'm a lonely
 coder who needs a stinkin' break before I go completly nuts, so any
feedback
 will be great. :-

 Thomas

 ___
 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] ZPHP [was Re: [Zope] CHAT]

2000-06-02 Thread Phil Harris

You do lose some functionality using PHP as CGI rather than module:

Persistent DB Connections, :(


- Original Message -
From: "Stuart 'Zen' Bishop" [EMAIL PROTECTED]
To: "Gonçalo Gomes" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: 03 June 2000 00:24
Subject: [Zope-dev] ZPHP [was Re: [Zope] CHAT]


 On Thu, 1 Jun 2000, [iso-8859-1] Gonçalo Gomes wrote:

  Silver_Surfer: how do you see the future of Zope fighting against PHP
space on the web?
  Jim: I don't know much (enough) about PHP, but from what I vaguely know,
PHP methods seem like a logical step.

 Hmm... I'm having to setup a PHP web environment for the students next
 semester, and have elected to run it as a CGI application (tie into
 existing suid security arcitecture). I'm told there won't be any
functionality
 loss except, just a bit of performance (?).

 If we didn't care about persistance of the PHP engine, it would
 be a trivial task to create a PHP method object - just a small
 python stub using the CGI libraries to call PHP.

 Or even more trivial - I could hack my existing Logger product to
 create a dtml-php tag, so you would be able to preprocess your
 PHP code with DTML tags or embed PHP output in DTML for
standard_html_header
 etc. (Is that my foot bleeding?). The standard response to a dtml-python
 tag is that it would make it too PHP like, so dtml-php seems very
 appropriate :-)

 And then the next step is to import IMP and other PHP apps into Zope
 land...

 --
 Stuart Bishop  Work: [EMAIL PROTECTED]
 Senior Systems Alchemist   Play: [EMAIL PROTECTED]
 Computer Science, RMIT University



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