Re: [Zope-dev] New UI for 2.3

2001-01-11 Thread Chris Withers

Steve Alexander wrote:
 
 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.

I haven't seen this yet, but I have to agree. Two frames is bad enough
btu addign another one with all the wasted border space, etc, sounds
like a bad idea...

 This would leave extra screen space for doing work.

...which is always a good thing

 I realize that I can make the frame smaller by dragging it with my
 mouse. 

Yeah, and that's going to get even more annoying than constantly having
to widen the edit box every time you access the same Zope instance
through a different domain name :-(

 so I guess I'll be hacking the top frame out of my
 management interface :-)

Can you post a patch if you do? ;-)

 I also much prefer blue to black as a background colour for the tabs and
 the "Root Folder" link. The black seems a bit overbearing.

...I'd agree too...

cheers,

Chris

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




Re: [Zope-dev] Re: ComputedAttribute

2001-01-11 Thread Steve Alexander

Martijn Pieters wrote:

 
 But because _v_* variables don't get pickled, another thread will never
 see them. If you want non-persisting (volatile) variables shared between
 threads, you'll have to devise your own mechanism for assuring the
 thread-safety of those variables.

Or, instead of devising your own mechanism, you can borrow someone else's:

   http://www.handshake.de/~dieter/pyprojects/zope/SharedResource.html


Thanks Dieter!

--
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] first zope-2.3.0a2 bug :-)

2001-01-11 Thread Martijn Pieters

On Thu, Jan 11, 2001 at 11:54:04AM +0400, Jephte CLAIN wrote:
 well, this one is easy.
 
 8--
 --- lib/python/Shared/DC/ZRDB/Aqueduct.py.origThu Jan 11 10:59:42
 2001
 +++ lib/python/Shared/DC/ZRDB/Aqueduct.py Thu Jan 11 10:58:01 2001
 @@ -272,7 +272,7 @@
  
  
  custom_default_report_src=DocumentTemplate.File(
 -os.path.join(dtml_dir,'customDefaultReport.dtml'))
 +os.path.join(dtml_dir,'dtml/customDefaultReport.dtml'))
  
  def custom_default_report(id, result, action='', no_table=0,
goofy=regex.compile('[^a-zA-Z0-9_]').search
 8--

Bingo. I checked this one in, and another for the new CatalogPathAwareness
mixin.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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




Re: [Zope-dev] _v_ variables

2001-01-11 Thread Martijn Pieters

On Thu, Jan 11, 2001 at 10:26:18AM +, Chris Withers wrote:
 Martijn Pieters wrote:
  
  But because _v_* variables don't get pickled, another thread will never
  see them. 
 
 Hmm, is there any situation where a single request can be handled by
 more than one thread?

Nope.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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




[Zope-dev] Delete users in Membership acl_users

2001-01-11 Thread Kamon Ayeva

Hi,

Has anyone been able to use the delUserForm to delete
users added within a PersistentUserSource in the
PortalMembershipSystem object ?

I am not sure if this piece of code in delUserForm
preceding the HTML form snippet does the right job:

dtml-let idList="[]"
dtml-in "UserSource.getPersistentItemIDs()" sort
dtml-call
"idList.append(getItem(_['sequence-item']))"
/dtml-in

dtml-in idList sort=Importance reverse
...

I can view the users but when I click on the form
button to delete some users, I get

I get 

Error Type: NotFound
Error Value: None

In the view I get, the user url points to
.../acl_users/userid (for example /acl_users/david)
and cannot be used to check the user object.

Thanks for any usefull answer.

Regards,
Kamon


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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] Zope-2.3a2 and Loginmanager

2001-01-11 Thread Chris McDonough



"super" still exists. It's aliased to the emergency 
user. There's a comment in User to the effect that the use of super is 
deprecated, and that emergency_user should be used instead.

I don't believe the reading of the access file is a bug (it's 
there to provide backwards-compatibility).

What is the actual problem with LoginManager you're 
experiencing? How does it fail?



  - Original Message - 
  From: 
  Ulrich Eck 
  To: ZOPE-DEV Mailingliste 
  Sent: Thursday, January 11, 2001 9:38 
  AM
  Subject: [Zope-dev] Zope-2.3a2 and 
  Loginmanager
  
  hi out there,
  
  i just setup a box with Zope-2.3a2 and 
  Loginmanager.
  
  didn't work because of Changes in 
  AccessControl.User:
  
  - Super doesn't exist anymore (is emergency_user 
  the replacement ??)
  
  - Zope-2.3a2 installs itself with a file 
  "inituser" as access-file, 
  AccessControl.User.py refers to "access" 
  in
  line 372: info = 
  readUserAccessFile('access') --- is this a bug ???
  
  - it seems, that there is now some work done in 
  the User.py which
  was "hacked" in LoginManager.py (line 
  130-150)
  
  anyone any ideas about that ???
  
  would like to test my work on Zope-2.3a2 but need 
  the Loginmanger
  
  thanks in advance
  
  jac-e


Re: [Zope-dev] Zope-2.3a2 and Loginmanager

2001-01-11 Thread Steve Alexander

Ulrich Eck wrote:

 hi out there,
  
 i just setup a box with Zope-2.3a2 and Loginmanager.
 
 didn't work because of Changes  in AccessControl.User:
 
 - Super doesn't exist anymore (is emergency_user the replacement ??)
 
 - Zope-2.3a2 installs itself with a file "inituser" as access-file,
 
  AccessControl.User.py refers to "access" in
 
 line 372: info = readUserAccessFile('access')  --- is this a bug ???

See the message Bill Anderson sent to this list last month:

http://lists.zope.org/pipermail/zope-dev/2000-December/008334.html


Also, in future, please do not send html mail to this mailing list; send 
it in plain text.

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

2001-01-11 Thread Andy McKay

 I haven't seen this yet, but I have to agree. Two frames is bad enough
 btu addign another one with all the wasted border space, etc, sounds
 like a bad idea...
 
  This would leave extra screen space for doing work.

Hear, hear, could anyone post some screenshots?
 
--
  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 )




RE: [Zope-dev] New UI for 2.3

2001-01-11 Thread Brian Lloyd

 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 )




RE: [Zope-dev] New UI for 2.3

2001-01-11 Thread Casey Duncan

I agree that it looks better. The addition of another
whole frame for this though is my main beef with it.
Perhaps this could be integrated some other way.
Frames should only be added when there is no other
option.

It's just that browsers waste so much space up there
anyway, and the extra 32 pixels are in addition to
that "waste".

I personally don't care how it "looks" so much as how
efficient it is. All of the other aethestic changes I
feel enhance both looks and efficiency. The top frame
does not IMHO. Form should definitely follow function
here.

BTW: I have been know to use Zope on an old machine
with a 640X480 screen. Although I generally eschew the
frames altogether then and open manage_main by itself.
It's not really fun, but it works.

--- Brian Lloyd [EMAIL PROTECTED] wrote:
 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. :^)



=
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`-

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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] 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] How do I create a folder with subfolders, docs etc?

2001-01-11 Thread Casey Duncan


--- Espen Sorbye Frederiksen [EMAIL PROTECTED]
wrote:
 Thank you for your reply. I relised that my example
 was not quite what I
 ment. What if newfolder is a variable taking a
 random string value. How
 can I emediatly after creating the folder, with the
 variable
 newfolder id, create a subfolder within the one I
 just made?
 
 My sample code should look like this:
 
 dtml-call expr="manage_addFolder(id="newfolder")"
 
 dtml-call


expr="newfolder.manage_addFolder(id="anotherfolder")"
 
 If you have any further suggestions I would be
 grateful,
 
 Espen
 

Try this:

dtml-call expr="manage_addFolder(folder_id)"
dtml-call expr="_[folder_id].manage_addFolder('subFolder')"

=
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`-

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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




[Zope-dev] How does a subclass call its ancestor's method in zope?

2001-01-11 Thread Dirksen

Here is a ZClass testa, with a dtml method 'do'. Its subclass testb
overrides do. How does testb call its ancestor's 'do'? In python, it can be done as
'testa.do()', but what's the equivallent in zope? 

Dirksen


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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] Management interface tree menu

2001-01-11 Thread richard

I added something to the Management Interface Quick Fix wiki item, but it
seems to have vanished. My proposal was that the tree not automatically
sort the items alphabetically. It should be up to the ObjectManager class
and its ilk to sort those items in its tpValues method. That way, when I
extend ObjectManager, or provide any other ObjectManagerish object, I have
the option to order the items in a sequence that makes more sense than by
the alphabet.

It would appear to be a simple enough change - add the sort to
ObjectManager, ZClass and HelpSys and remove it from manage_menu.dtml


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 )




Re: [Zope] Deleting a Role Doesn't Appear to Remove Permissions

2001-01-11 Thread Chris Withers

Jason Grigsby wrote:
 
 If I am correct about this, this means that if we create a role and then
 delete it, we will need to make sure that the role does not exist for any
 users or they will continue to have the access that they had before.
 
 Has anyone else run into this or seen a reported bug similar? (I searched
 the Zope Bug Collector to no avail).

Haven't heard of anything similar and it does sound like a bug.

Pop it into the collector and see what happens :-)

cheers,

Chris

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




Re: [Zope] ZWikiWebs Product

2001-01-11 Thread Chris Withers

Simon Michael wrote:
 
 The separate
 zwikiwebs product is due to be retired and not recommended.

It has been :-)

cheers,

Chris

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




[Zope] type in python methods

2001-01-11 Thread Juan Carlos Coruña

How can I compare the type of 2 variables in a python method?

The instruction "if type(var1) == type(var2): " doesn't work.



___
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] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread Holger Lehmann

Am Donnerstag, 11. Januar 2001 00:16 schrieben Sie:
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
  [EMAIL PROTECTED]
  Sent: Wednesday, January 10, 2001 9:30 AM
-snipp---
  FYI:
  I installed from these rpms
 
  ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm

I was not able to get ZMySQLDA with MySQL-pyhton to run.
Instead I used the mysqldb sourcecode that came with ZMySQLDA and symlinked 
the resulting _mysqlmodule.so into .../lib/python1.5/site-packages/

  ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm
 
  This did not install into my Zope installation directory, so I used a
  symbolic link in my Zope Products directory that points to the
-snipp---
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



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




[Zope] ZServer

2001-01-11 Thread Tom Deprez

Hi,

Can anybody tell me what the following warning means, or where I can find
documentation on this warning?

ZServer warning : server accept() threw EWOULDBLOCK

Thanks in advance

Tom Deprez


___
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] log file.

2001-01-11 Thread Joachim Werner


 Is the Zope log file in Common Log File Format?
Yes.


___
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] Storing and Using Object references

2001-01-11 Thread Tom Jenkins

Thanks for th pointer Shane,
My original attempt with Andy's help was to use the REQUEST's resolve_url.
However, the SiteAccess2 product breaks that method.  I'll try your
suggestions.

Thanks
Tom

-Original Message-
From: Shane Hathaway [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 3:11 PM
To: Tom Jenkins
Subject: Re: [Zope] Storing and Using Object references


Tom Jenkins wrote:
 
 Hello all,
 i have a question and I hope someone can point me in the right direction
 to solve it.  I need one zope object to hold a reference to another zope
 object so the first object can call methods of the second object.  oh,
 these are python classes.
 
 Example: object 1 is :  /container1/container1a/item1  object 2 is :
 /container2/container2a/item1  object1 needs to hold a reference to
 object2.  I'm really stuck on how to store and access object2 from
 object1.
 
 any pointers?

I think what you're looking for is getPhysicalPath() and
unrestrictedTraverse().  Store object2.getPhysicalPath(), which returns
a tuple, in object1.  To find object2 again, call
object1.unrestrictedTraverse(stored_physical_path).

Note that this only works in Zope 2.2.x+.

Shane


-
Tom Jenkins   | xml
devIS - Development InfoStructure |  Its what you
703.525.6485   [EMAIL PROTECTED] |  you need it 
http://www.devis.com  |  to be /xml

___
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] log file.

2001-01-11 Thread Holger Lehmann

Am Donnerstag, 11. Januar 2001 08:21 schrieben Sie:
 hi,

 Is the Zope log file in Common Log File Format?


whatever you mean by that ...
it looks to me like the one from apache and a webalizer works without any 
quirks

 j.

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

-- 
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



___
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] does xml-rpc work with zope and pcgi/apache?

2001-01-11 Thread Martijn Pieters

On Thu, Jan 11, 2001 at 12:00:17AM -0600, Roman Milner wrote:
 I'm having problem getting xml-rpc calls to work with zope running on
 apache/pcgi.  I'm using the python xml-rpc module to send an xml-rpc
 request that looks like this (when captured at the socket level):
 
 POST /asdf/1/ HTTP/1.0
 User-Agent: xmlrpclib.py/0.9.5
 Host: localhost:
 Content-Type: text/xml
 Content-Length: 107
 
 ?xml version='1.0'?
 methodCall
 methodNamelistServices/methodName
 params
 /params
 
 /methodCall
 
 
 What I get back from a zope running zserver only is:
 
 
 HTTP/1.0 200 OK
 Server: Zope/Zope 2.3.0a2 (source release, python 1.5.2, linux2) ZServer/1.1b1
 Date: Thu, 11 Jan 2001 04:44:21 GMT
 Connection: close
 Content-Type: text/xml
 Content-Length: 229
 
 ?xml version='1.0'?
 methodResponse
 params
 param
 valuearraydata
 valuestringtroubleTickets/string/value
 valuestringopenTicket/string/value
 /data/array/value
 /param
 /params
 
 /methodResponse
 
 When I send the exact same request through the same zope server
 running with apache/pcgi the response I get is a 404 (not found)
 error. I have an apache rewrite rule set up that works fine - I can
 go to /manage and so forth, and it works.
 
 The 404 makes a little sense, as the above posts to /asdf/1 which
 doesn't have an index_html in it, so in apache land this would be a
 bit like posting to a directory, but I thought that zope would have
 taken care of this some how.
 
 I have included the full error message sent back from the zope/apache
 below.  We are working on a flash application that we were planning on
 having talk to zope via xml-rpc, but if xml-rpc won't work through
 apache, I guess we'll have to come up with some other way of talking
 to zope.
 
 Any help is greatly appreciated.
 
 ^Roman
 
 
 
 HTTP/1.1 404 Not Found
 Date: Thu, 11 Jan 2001 04:46:45 GMT
 Server: Apache/1.3.14 (Unix) mod_snake/0.4.1
 Bobo-Exception-File: /home/Zope2/lib/python/ZPublisher/HTTPResponse.py
 Bobo-Exception-Line: 528
 Bobo-Exception-Type: NotFound
 Bobo-Exception-Value: HTMLHEADTITLEasdf/TITLE/HEADBODY BGCOLOR="#F
 F"   HTML HEADTITLEZope Error/TITLE/HEAD BODY  TABLE BORDER="0" WID
 TH="100%" TR VALIGN="TOP"  TD WIDTH="10%" ALIGN="CENTER" nbsp; /TD  TD W
 IDTH="90%"   H2Zope Error/H2 
 X-Powered-By: Zope (www.zope.org), Python (www.python.org)
 Content-Length: 1591
 Connection: close
 Content-Type: text/html
 
 HTMLHEADTITLEasdf/TITLE/HEADBODY BGCOLOR="#FF"
 
  HTML
 HEADTITLEZope Error/TITLE/HEAD
 BODY
 
 TABLE BORDER="0" WIDTH="100%"
 TR VALIGN="TOP"
 
 TD WIDTH="10%" ALIGN="CENTER"
 nbsp;
 
 blah blah blah...

Are you sure your RewriteRule handles trailing slashes properly? I seem to
recall something about that... 't has been a while since I used PCGI.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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




[Zope] href on a local file

2001-01-11 Thread tilo . schwarz

Hi everybody,

it's now my third day with Zope and I'm already pretty happy with it. Finally I 
got external python methods running with passing parameters to them and getting 
return values back. Although there is a lot of documentation, I couldn't find 
any about the Zope internals. Does anybody know where to look for such 
documentation?

Now my question concerns local files. We do image processing and have zillions 
of images. I'd like to do some "have a page of thumbsnails and click on it to 
see the full image" kind of web page. I saw the examle thumbnail code in 
http://www.zope.org/Members/michel/ZB/ScriptingZope.html, but that code puts 
the thumbnails into the Zope Database within the python script. I'd like to 
avoid that, because with our zillion images this would bloat the database 
pretty much. 

If I got the docs right, it's normally not possible to publish a local file 
with Zope, only objects in the database can be published (correct?). But I 
would like to use a href like

A HREF="http://mymachine/images/.pgm"
IMG SRC="http://mymachine/images/thumbs/.pgm"/A

in the dtml. If I understand it right, the product "Local File System" would be 
a possibility to do that. Is it the right way to go, or does anybody have a 
better / other solution? 

Tanks for any help!

BTW: I read about dropping external python modules in some future version of 
Zope. For us, the main point with Zope is, that you can build a web front end 
for a bunch of python modules we have. Thus, from our point of view, the 
dtml-binding possibility to python modules is essential.

Tilo

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




[Zope] Zope vs. java solutions : looking forward ?

2001-01-11 Thread Henk Schets

Hi,

We are planning a major update of our site (i.e. building a new one).  At
the moment our site is based on php,cgi, MySql and Apache on Linux.
However, for the new site, we are considering other 'platforms' like Zope or
Enhydra.  I find Zope an elegant solution for our new site because we will
be relying heavily on non-technical people contributing articles for
publication.  But the problem is this : the development will be made by a
small commercial firm (the guys who work there are friends) and they are
biased towards a java solution because they think this will be a standard
for the future.  They do not want to invest in learning Zope en end up in
not being able to sell their acquired knowledge in this.  I should note
that, at the moment, they have no experience in Java nor Python, so they
will have to learn one or the other.
The problem I will be facing is the maintenance of the site and adding new
features.
What do you guys think ?  Does Zope have a future with respect to e.g.
Enhydra (this is Python versus Java for internet applications)?   Does
someone have experience with both and can you comment on the learning curve
?


Thanks,

Henk


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




[Zope] RE: SQL Method, dtml-with and namespace weirdness

2001-01-11 Thread Mayers, Philip J

Heh. Oh well, you win some, you lose some! I appear to be losing some -
maybe I should drink less caffine?

I can work around the problem for the moment, but either:

1) I *totally* misunderstand how dtml-with works
2) It's misbehaving itself under some circumstances

To recap: two SQL method returning [different] (name,domain) are used like
this:

dtml-in SQL_method1
  Pdtml-name;/P  - POINT A
  Pdtml-domain;/P
  dtml-in SQL_method2
Pdtml-name;/P- POINT B
Pdtml-domain;/P
dtml-with aFolder
  Pdtml-name;/P  - POINT C
  Pdtml-domain;/P
/dtml-with
  /dtml-in
/dtml-in

This will print:

name1
domain1

name2
domain2

name1
domain1

That is: *inside* the dtml-with, the variables "name" and "domain" appear to
be reset to their values in the *outer* dtml-in tag, not the innermost. This
*only* happens if both SQL methods return variables named the same, and it
*only* affects those two variables (so, I can work around it). Is this
expected behaviour?

Anyone who wants to see this problem can have Manager access to a test
subtree I setup that reproduces the problem exactly. I realise it's far more
likely that the problem lies with me - but what is the problem?

Also - your comment about SQL methods vis. the DTML namespace has cleared up
a longstanding confusion of mine - thanks!

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2001 20:59
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] REPOST: dtml-with doesn't work


Usually, I complain that problem reports are too terse.
But, your's was very big, such that I did not read it
carefully. It is very difficult to get it right for everyone.

Just a remark:

  SQL methods do *NOT* look at the DTML namespace *AT ALL*,
  just at REQUEST (or the expliciitly passed keyword arguments).

  Thus, "dtml-with", "dtml-let" and friends are all ineffective
  with respect to ZSQL methods.

May be, that explains your problem.
May be not, as I am not sure, that you need the values indeed
inside a ZSQL method.

I can assure you: "dtml-with" does work.


Dieter

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

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




[Zope] logging: Can I switch it off?

2001-01-11 Thread Joachim Werner

(How) Can ZServer logging be switched off?

Joachim.

___
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] Downloading All Zope products

2001-01-11 Thread Jerome Alet

Hi,

I was bored by the current search interface for downloading Zope products:
you have to spend hours just clicking to download lots of products. I want
to put Zope and the maximum number of available products on a CDROM to be
able to do demos and so on to people not connected to the Net.

I've decided to do something to solve this problem, so I've created the
"Zope Complete Products List for easy batch download".

You can find it at http://www.zope.org/Members/jerome/ZCPL

This document dynamically lists all available Zope products (from
zope.org) and for every product put one and a single link to its latest
version archive.

It also explains how to download all Zope products available in
one Wget run, but please consider not making this an habit because the DC
folks don't seem to like that (see http://www.zope.org/robots.txt).

DC folks, if you find this document should be destroyed now then just do
it, I don't want to put your servers on their knees. 

Hoping this will help someone else. Any comment is very welcome.

bye,

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Fac de Medecine de Nicehttp://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE


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




Re: [Zope] log file.

2001-01-11 Thread Oleg Broytmann

On Wed, 10 Jan 2001, Jason C. Leach wrote:
 Is the Zope log file in Common Log File Format?

   Yes. You can run every standard log files analyzer on it.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] PoPy Installation. Where's the BEEF?

2001-01-11 Thread Steve Spicklemire


Did you move this Zope from it's original location in  /usr/local/zope?
I'm guessing you did.. and those paths are in the .pyc files.

try:

find /usr/local/EcoZope -name "*.pyc" -delete 

then (optionally) rerun w(o?)_pgci.py which will (among other things)
rebuild the .pyc files. If you don't, Zope will just be slower for a while
is it rebuilds the pyc files as it imports them (mostly at startup I 
would guess).

-steve

 "Eric" == Eric Walstad [EMAIL PROTECTED] writes:

Eric AAKK!  I just noticed something...  -8-- Start Snip
Eric --8- ZPoPyDA Import Traceback Traceback (innermost
Eric last): File "/usr/local/Zope/lib/python/OFS/Application.py",
Eric line 397, in import_products product=__import__(pname,
Eric global_dict, global_dict, silly) File
Eric "/usr/local/zope/lib/python/Products/ZPoPyDA/__init__.py",
Eric line 32, in ?  File
Eric "/usr/local/zope/lib/python/Products/ZPoPyDA/DA.py", line
Eric 35, in ?  File
Eric "/usr/local/zope/lib/python/Products/ZPoPyDA/PoPy_db.py",
Eric line 35, in ?  The PoPy module is not installed -8--
Eric End Snip --8- Notice the paths in the traceback.

Eric I have one copy of Zope (no PostgreSQl support) in:
Eric /usr/local/Zope

Eric And another copy that will need to connect to PostgreSQL is
Eric in: /usr/local/EcoZope

Eric and ZPoPyDA is in:
Eric /usr/local/EcoZope/lib/python/Products/ZPoPyDA/

Eric The traceback is displaying wrong paths.  I searched the
Eric ZPoPyDA python source for hard coded paths but didn't find
Eric any.  Is there an environment variable that sets this?

Eric Thanks for any help...  Eric.  

Eric Eric Walstad [EMAIL PROTECTED] 


Eric ___ Zope
Eric maillist - [EMAIL PROTECTED]
Eric http://lists.zope.org/mailman/listinfo/zope ** No cross
Eric posts or HTML encoding!  ** (Related lists -
Eric http://lists.zope.org/mailman/listinfo/zope-announce
Eric 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] type in python methods

2001-01-11 Thread Luciano Ramalho

 The instruction "if type(var1) == type(var2): " doesn't work.

It does work:

-
Python 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
 x = 'spam'
 y = 'eggs'
 z = 99
 type(x) == type(y)
1
 type(x) == type(z)
0

-

How isn't it working for you? What is the context? What kinds of
variables are you trying to compare?

Are you aware that type() only knows about primitive types (for example,
all class instances are of type 'instance')?

Regards,

Luciano Ramalho

Juan Carlos Corua wrote:
 
 How can I compare the type of 2 variables in a python method?
 
 The instruction "if type(var1) == type(var2): " doesn't work.
 
 ___
 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] worldpilot --almost?!

2001-01-11 Thread tom

hi,

I have worldpilot almost working on a latest version of zope on NT. The only problem 
is that when reading a message I don't get the text of the message, everything else is 
file.

The docs mention something about setting the default domain, how do I do that?


thanks, 

tom


---
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope   -  http://www.zope.org




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




[Zope] How do I get the size of an item ?

2001-01-11 Thread Dimitris Andrakakis

...anyone ?

Say I have these folders:
/
/news
/news/files
What I need is, from a dtml method in /news, to get 
the size of an object (a file, say /news/files/file01.pdf) 
in /news/files.

Thanks in advance,
Dimitris


___
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] type in python methods

2001-01-11 Thread Evan Simpson

From: Juan Carlos Corua [EMAIL PROTECTED]
 How can I compare the type of 2 variables in a python method?

 The instruction "if type(var1) == type(var2): " doesn't work.

_.same_type(var1, var2) should do it. (Without the "_." in Scripts).

Cheers,

Evan @ digicool  4-am



___
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 vs. java solutions : looking forward ?

2001-01-11 Thread J. Atwood

Just some quick thoughts. (I have worked with both)

- This is not about Java vrs Python since that is a different 
discussion. This should be about Zope vrs Enhydra.
- Zope has a great future which can be shown by Digital Creations 
success, Zope involvement and activity
- In terms of getting a site up and running there is no question that 
you can get a Zope site running up faster than a Servlet based site

You might want to take a look at the semi-old but still very 
interesting Tomcat vrs Zope benchmarks 
http://www.zope.org/Members/BwanaZulia/benchmarks.html  (Tomcat is 
the servlet engine behind Enhydra).

Cheers,
J



At 9:57 AM +0100 1/11/01, Henk Schets wrote:
Hi,

We are planning a major update of our site (i.e. building a new one).  At
the moment our site is based on php,cgi, MySql and Apache on Linux.
However, for the new site, we are considering other 'platforms' like Zope or
Enhydra.  I find Zope an elegant solution for our new site because we will
be relying heavily on non-technical people contributing articles for
publication.  But the problem is this : the development will be made by a
small commercial firm (the guys who work there are friends) and they are
biased towards a java solution because they think this will be a standard
for the future.  They do not want to invest in learning Zope en end up in
not being able to sell their acquired knowledge in this.  I should note
that, at the moment, they have no experience in Java nor Python, so they
will have to learn one or the other.
The problem I will be facing is the maintenance of the site and adding new
features.
What do you guys think ?  Does Zope have a future with respect to e.g.
Enhydra (this is Python versus Java for internet applications)?   Does
someone have experience with both and can you comment on the learning curve
?


Thanks,

Henk


___
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] worldpilot --almost?!

2001-01-11 Thread Norman Khine

I think you have to change the WorldPilot.py file in your
~/lib/python/Products/WorldPilot/ folder it is a one line file containing
DOMAIN='type.your.domain.name.here'

I'll be intrested to know how you get on, as I am trying to configure it on
my NT but without success.

If you could write a brief pointers of what you did it will be great

Thanks

Norman

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of tom
Sent: Thursday, January 11, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: [Zope] worldpilot --almost?!


hi,

I have worldpilot almost working on a latest version of zope on NT. The only
problem is that when reading a message I don't get the text of the message,
everything else is file.

The docs mention something about setting the default domain, how do I do
that?


thanks,

tom


---
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope   -  http://www.zope.org




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



___
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] Downloading All Zope products

2001-01-11 Thread Martijn Pieters

On Thu, Jan 11, 2001 at 02:36:11PM +0100, Jerome Alet wrote:
 I was bored by the current search interface for downloading Zope products:
 you have to spend hours just clicking to download lots of products. I want
 to put Zope and the maximum number of available products on a CDROM to be
 able to do demos and so on to people not connected to the Net.
 
 I've decided to do something to solve this problem, so I've created the
 "Zope Complete Products List for easy batch download".
 
 You can find it at http://www.zope.org/Members/jerome/ZCPL
 
 This document dynamically lists all available Zope products (from
 zope.org) and for every product put one and a single link to its latest
 version archive.
 
 It also explains how to download all Zope products available in
 one Wget run, but please consider not making this an habit because the DC
 folks don't seem to like that (see http://www.zope.org/robots.txt).
 
 DC folks, if you find this document should be destroyed now then just do
 it, I don't want to put your servers on their knees. 

I think we should be able to handle the load with the current load
balanced setup.

BTW, did you knw I made a page for the exact same purpose a while ago?

  http://www.zope.org/Members/mj/AllProds

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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




Re: [Zope] log file.

2001-01-11 Thread Dennis Nichols

At 1/11/01 12:25 PM, Oleg Broytmann wrote:
On Wed, 10 Jan 2001, Jason C. Leach wrote:
  Is the Zope log file in Common Log File Format?

Yes. You can run every standard log files analyzer on it.

Using analog (http://analog.cx) against my Zope 2.2.2 logs, I found that 
the standard analog definition of the Common Log File Format didn't exactly 
match the Z2.log format. Specifically, Zope produces a host address 
followed by a colon, which confused a few of analog's reports. I currently 
use the following in my analog.cfg file...

LOGFORMAT (%S: %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B")
LOGFORMAT (%S: %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b "%f" "%B")



--
Dennis Nichols
[EMAIL PROTECTED]


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




RE: [Zope] type in python methods

2001-01-11 Thread Juan Carlos Coruña

Yes, it works. Thanks.



-Mensaje original-
De: Evan Simpson [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 11 de enero de 2001 15:49
Para: Juan Carlos Corua; [EMAIL PROTECTED]
Asunto: Re: [Zope] type in python methods


From: Juan Carlos Corua [EMAIL PROTECTED]
 How can I compare the type of 2 variables in a python method?

 The instruction "if type(var1) == type(var2): " doesn't work.

_.same_type(var1, var2) should do it. (Without the "_." in Scripts).

Cheers,

Evan @ digicool  4-am


___
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] Downloading All Zope products

2001-01-11 Thread Jerome Alet

On Thu, 11 Jan 2001, Martijn Pieters wrote:

 BTW, did you knw I made a page for the exact same purpose a while ago?
   http://www.zope.org/Members/mj/AllProds

Of course not, otherwise I hadn't made it by myself. I thought it was a
cool idea (and above all it was very easy to do), unfortunately someone
else thought the same before ;-)

Perhaps putting a link to your own page on the "All Products" page at
zope.org would be useful ?

Anyway thanks for all.

Jerome Alet



___
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] worldpilot --almost?!

2001-01-11 Thread J. Atwood

Had the same problem. Most likely it is that the people that are 
sending the messages are using MTF (Microsoft Text Format, or MRTF) 
which is their variation on RTF that WorldPilot cannot read. Thanks 
Bill! :)

J

At 12:28 PM -0500 1/11/01, tom wrote:
hi,

I have worldpilot almost working on a latest version of zope on NT. 
The only problem is that when reading a message I don't get the text 
of the message, everything else is file.

The docs mention something about setting the default domain, how do I do that?


thanks,

tom


---
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope   -  http://www.zope.org




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


___
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] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread paul_s_johnson


Paul S. Johnson
URS Corporation
700 Third Street South
Minneapolis, MN 55415-1199
612-373-6389


   
   
   
   
"Ron Bickers"To: [EMAIL PROTECTED], 
[EMAIL PROTECTED]
rbickers@logcc:   
   
icetc.com   Subject: RE: [Zope] MySQLDA and 
MySQL-python - patch needed? 
Sent by:   
   
zope-admin@zo  
   
pe.org 
   
   
   
   
   
01/10/01   
   
05:16 PM   
   
   
   
   
   



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 [EMAIL PROTECTED]
 Sent: Wednesday, January 10, 2001 9:30 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] MySQLDA and MySQL-python - patch needed?


 My Zope-MySQL connection is still not quite working. It appears that the
 request from Zope is reaching MySQL and it if is an UPDATE or INSERT
query
 it executes properly on the MySQL side. However, SELECT queries
 and similar
 are not getting their information back to Zope from MySQL. Is there some
 patch I am missing here? Anybody know how to fix this?

 FYI:
 I installed from these rpms

 ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm
 ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm

 This did not install into my Zope installation directory, so I used a
 symbolic link in my Zope Products directory that points to the
 directory of
 MySQLDA install. Could this be the cause? Perhaps information that
should
 be returned from MySQL is getting lost on the return trip. If so,
 how would
 I fix it? Any ideas?

The RPMS install the DA where the Zope RPMS install Products.  I actually
put my products in the same place (RPMS or not) and use symbolic links for
the different instances of Zope I have running, so I know symbolic links
will work.  If DA product is showing not broken in the Control Panel, then
it was installed properly.

On my box only DA is symlinked to a different location. The rest of my
products reside in a child directory of the main Zope installation. I am
only running one Zope instance. This shouldn't be a problem, right?

Are you getting any error messages?  How do you know the information is
not
getting back to Zope?  When you test the queries on the connection
management screen, do you get results?

From Zope management database connection Test tab, on valid SELECT queries
it tells me that there was no data matching my query. On invalid SELECT
queries (ones on nonexistent tables or columns) Zope raises the correct
error originating from MySQL, such as "Error Value: (1146, "Table
'somedatabase.sometable' doesn't exist")". The trial queries I am testing
through Zope all work from the MySQL command line so I know they do in fact
return data. It appears that error messages are making it back to Zope from
MySQL but real query results are not.

I did some more searching and see that two other posters on this list have
also had this identical problem, but no solutions have been posted (at
least that I can find).

ONE IDEA: I had already spent some time on installing DA before I found
your RPMs. Previous to this I was trying some older, more complicated
methods outlined on Zope.org and started installing some of the necessary
components for installation. I did clean up before installing from the
RPMs, but perhaps I missed something and some residue lingers. I 

[Zope] Pub. Company trying to patent object publishing?

2001-01-11 Thread sean . upton

Hi folks,
Not trying to hijack the list for a rant, but I thought this might be of
interest to some folks.

Belo, a media company that owns a variety of TV stations, newspapers, and
online operations, looks to be trying to patent what looks to essentially be
object publishing (in a similar sense that Zope has - content-neutral
objects published to multiple media).  The irony of this all is that I found
this in an article on the Newspaper Assn. of America's web site; the article
embraces open-standards (XML, industry standards, etc), in the news content
industry, and the author of the story is Belo's CTO.  It seems to really fly
in the face of truly embracing open standards to patent such ideas
(especially in-light of the fact that publishing wit XML really demands OO
techniques in the first place); and I think that there is plenty of prior
art in Zope.

Supposing their patents are approved, could/would a company such as Belo
start using legal tactics the second that a company or individual someone
started developing an open-source product on the Zope platform that cut into
the news-content vertical?  Or if someone at a newspaper wanted to use
Zope's object database for a data-store or content-neutral repository, would
they be a target?

The second to the last section of the article is what I refer to, at:

http://www.digitaledge.org/monthly/2001_01/newlanguage.html

I think Zope would be prior art.  I'm curious to see what everyone else
thinks.  Sorry to bring up a non-technical question on a mostly
technical-related list, but I think this is something that needs to be
discussed...

Thanks,
Sean


=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[EMAIL PROTECTED]
=

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




Re: [Zope] href on a local file

2001-01-11 Thread Joachim Werner

Hi!

 documentation, I couldn't find any about the Zope internals. Does anybody
 know where to look for such documentation?

a) The code itself is quite well-documented ;-)
b) There are documents on zope.org on how the ZODB works and on programming
Database Adapters; I guess there is even more, but well-hidden ;-)
c) Always try the zdp.zope.org (Zope Documentation Project) site for more
stuff

 script. I'd like to avoid that, because with our zillion images this would
 bloat the database pretty much.

 in the dtml. If I understand it right, the product "Local File System"
 would be a possibility to do that. Is it the right way to go, or does
 anybody have a better / other solution?

There is a product called ExtFile/ExtImage that does exactly what you need. 
But you could also build your own solution very easily, e.g. using Apache 
(or the new Tux webserver for extra performance ...) to serve the images and 
just manage the upload via Zope/LocalFS.

 BTW: I read about dropping external python modules in some future version
 of Zope. For us, the main point with Zope is, that you can build a web
 front end for a bunch of python modules we have. Thus, from our point of
 view, the dtml-binding possibility to python modules is essential.

There is a tendency towards making more stuff available over the web (e.g. 
"replacing" External Methods by web-manageable "python scripts". This might 
make External (Python) Methods more or less unnecessary (BTW: Most of them 
could just be uploaded to Zope/the ZODB). But the full-fledged Python 
Products (or modules) you put into the Products folder will definitely not go 
away soon. That's how most of the major Zope applications are developed.

Cheers,

Joachim

iuveno AG
Smart Communication

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




[Zope] Problem with zope.org?

2001-01-11 Thread Joachim Werner

Hi!

I'm getting this or similar errors quite frequently these days:

Proxy Error

The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET /foo.

Reason: Document contains no data

Additionally, a 502 Bad Gateway error was encountered while trying to use an 
ErrorDocument to handle the request. 

Apache/1.3.12 Server at www.zope.org Port 80


This seems to be a problem with zope.org, not my local stuff.

Cheers,

Joachim.

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




[Zope] Zope vs. Enhydra

2001-01-11 Thread Paul Browning


From the horse's mouth as it were. I'll let the
list know where to find it when it appears.

Paul

--- Begin Forwarded Message ---
Date: Wed, 10 Jan 2001 15:16:42 -0800
From: David Young [EMAIL PROTECTED]
Subject: Lutris Enhydra Journal (3nd issue) is coming!
Sender: David Young [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Reply-To: David Young [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]


The next issue of the Lutris Enhydra Journal will be
delivered to you on Monday, 15 January 2001.  Articles
will include:

Brett McLaughlin: Open Source and Commercial Entities
Bill Karwin: jFAQ
Peter Hearty: InstantDB Hints  Tips Part II
Paul Gresham: Zope vs Enhydra
Wayne Stidolph: About the Enhydra Services Architecture
Peter Darrah: Ant
Daryl Tempesta: Skeleton, Build, Rebuild : Stages of development
Thomaz Edison: Context-sensitive search engine project at MIT using
Enhydra

Look forward to your comments and feedback,
David Young, Lutris Chief Evangelist and LE Journal Editor
[EMAIL PROTECTED]

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



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




[Zope] MySQLdb

2001-01-11 Thread Martin Fekete



sombody compiled MySQLdb under WIN32 
?

Martin Fekete


Re: [Zope] Downloading All Zope products

2001-01-11 Thread Marcin Kasperski

Jerome Alet wrote:
 
 Hi,
 
 I was bored by the current search interface for downloading Zope products:
 you have to spend hours just clicking to download lots of products. I want
 to put Zope and the maximum number of available products on a CDROM to be
 able to do demos and so on to people not connected to the Net.
 

Very nice, thanks. Nevertheless, I still dream about some categorized
Zope products directory, which could be downloaded with one step and put
on the CD-ROM (I mean sth like your page but with content categorized -
like the zope products page on zope.org do - and annotated with recent
change date and required zope version).

Maybe at least adding two recent attributes to your page wouldn't be so
hard?

--
http://www.mk.w.pl /
 Marcin.Kasperski | Moje prywatne strony: http://www.kasperski.prv.pl 
   @softax.com.pl |   
 @bigfoot.com  \

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




RE: [Zope] Zope vs. java solutions : looking forward ?

2001-01-11 Thread sean . upton

Frankly, it is a lot easier to program in python; it is much more forgiving
in a lot of senses.  If your developers like the idea of Java because it is
OO, have them consider python's strong abilities, and the fact that they
will be working with a persistent object system / ODB that can make their OO
code much more than a filter for relational datasets.  That said, if your
developers like java because it runs in a VM on several platforms, Zope is
cross-platform, and I guess Zope could be considered similar to a JVM: a
platform for running cross-platform code.  

I don't think Java is a wise direction for a small firm; at least in Zope,
you can start off with simplicity, and graduate to bigger solutions without
a huge investment in lots of developers in the future.

What kind of site do you have?  For e-commerce, you are going to have heavy
use of relational databases, but for publishing articles, you might want to
consider using the ODB, something you are not going to get with Java
solutions...  I use Zope with XMLDocument and custom ZClasses for content,
and it is a lot easier to get things done quicker that way...

Sean



-Original Message-
From: Henk Schets [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 12:58 AM
To: [EMAIL PROTECTED]
Subject: [Zope] Zope vs. java solutions : looking forward ?


Hi,

We are planning a major update of our site (i.e. building a new one).  At
the moment our site is based on php,cgi, MySql and Apache on Linux.
However, for the new site, we are considering other 'platforms' like Zope or
Enhydra.  I find Zope an elegant solution for our new site because we will
be relying heavily on non-technical people contributing articles for
publication.  But the problem is this : the development will be made by a
small commercial firm (the guys who work there are friends) and they are
biased towards a java solution because they think this will be a standard
for the future.  They do not want to invest in learning Zope en end up in
not being able to sell their acquired knowledge in this.  I should note
that, at the moment, they have no experience in Java nor Python, so they
will have to learn one or the other.
The problem I will be facing is the maintenance of the site and adding new
features.
What do you guys think ?  Does Zope have a future with respect to e.g.
Enhydra (this is Python versus Java for internet applications)?   Does
someone have experience with both and can you comment on the learning curve
?


Thanks,

Henk


___
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] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread paul_s_johnson



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 [EMAIL PROTECTED]
 Sent: Wednesday, January 10, 2001 9:30 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] MySQLDA and MySQL-python - patch needed?


 My Zope-MySQL connection is still not quite working. It appears that the
 request from Zope is reaching MySQL and it if is an UPDATE or INSERT
query
 it executes properly on the MySQL side. However, SELECT queries
 and similar
 are not getting their information back to Zope from MySQL. Is there some
 patch I am missing here? Anybody know how to fix this?

 FYI:
 I installed from these rpms

 ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm
 ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm

 This did not install into my Zope installation directory, so I used a
 symbolic link in my Zope Products directory that points to the
 directory of
 MySQLDA install. Could this be the cause? Perhaps information that
should
 be returned from MySQL is getting lost on the return trip. If so,
 how would
 I fix it? Any ideas?

The RPMS install the DA where the Zope RPMS install Products.  I actually
put my products in the same place (RPMS or not) and use symbolic links for
the different instances of Zope I have running, so I know symbolic links
will work.  If DA product is showing not broken in the Control Panel, then
it was installed properly.

On my box only DA is symlinked to a different location. The rest of my
products reside in a child directory of the main Zope installation. I am
only running one Zope instance. This shouldn't be a problem, right?

Are you getting any error messages?  How do you know the information is
not
getting back to Zope?  When you test the queries on the connection
management screen, do you get results?

From Zope management database connection Test tab, on valid SELECT queries
it tells me that there was no data matching my query. On invalid SELECT
queries (ones on nonexistent tables or columns) Zope raises the correct
error originating from MySQL, such as "Error Value: (1146, "Table
'somedatabase.sometable' doesn't exist")". The trial queries I am testing
through Zope all work from the MySQL command line so I know they do in fact
return data. It appears that error messages are making it back to Zope from
MySQL but real query results are not.

I did some more searching and see that two other posters on this list have
also had this identical problem, but no solutions have been posted (at
least that I can find).

ONE IDEA: I had already spent some time on installing DA before I found
your RPMs. Previous to this I was trying some older, more complicated
methods outlined on Zope.org and started installing some of the necessary
components for installation. I did clean up before installing from the
RPMs, but perhaps I missed something and some residue lingers. I know how
to uninstall RPMs, but other than that how do I make sure I have a clean
slate before trying to install anew? I think there is quite a number of mod
dependencies here. Also I am confused on a basic piece of Zope
configuration: my box has its own python and Zope has its own python, why
two and are they sharing modules? If you want to add a module for both
installs of python do I have to install in both? If I install a python
module in my box's python can Zope's python find and use it? I am confused
on this basic question.

I also did this as (contributed previously to the list) to fix a install
but broken DA. Directory, site-packages, now exists in two locations. Is
this a problem?

Seems that because of how my Zope was installed had problems... I copied
all
files from /usr/lib/python1.5/site-packages/ to
/usr/local/zope/lib/python/Products/ZmySQLDA and all was sweet.

Day 5 of the insanity continues.

-PSJ




___
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] Help getting zope to do frames!

2001-01-11 Thread paul_s_johnson






To properly reference your frames by their absolute urls, instead of this:

frame name="A" src="dtml-var top"
frame name="B" src="dtml-var main"

Try this:

frame name="A" src="dtml-var "top.absolute_url()""
frame name="B" src="dtml-var "main.absolute_url()""


-PSJ




___
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] Limited File object size?

2001-01-11 Thread Chris Withers

What version of Zope are you using?

Stuart Foster wrote:
 
 When uploading a file to Zope I am getting an error about commit_sub.
 I uploaded some other files to the same folder but am having problems
 with two in particular.
 He only difference I can see is that the others where 10k to 60k and the
 two problem files are 100k and higher.
 
 Is there a limit on the file size that can be uploaded or is there
 another explanation?
 
 TIA
 Stuart
 
 ___
 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] Limited File object size?

2001-01-11 Thread Stuart Foster

When uploading a file to Zope I am getting an error about commit_sub. 
I uploaded some other files to the same folder but am having problems 
with two in particular.
He only difference I can see is that the others where 10k to 60k and the 
two problem files are 100k and higher. 

Is there a limit on the file size that can be uploaded or is there 
another explanation?


TIA
Stuart


___
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] Downloading All Zope products

2001-01-11 Thread Andy McKay

On a totally different note I found I want to get information on a product
in a more friendly xml, so I started (but not finished, not up to date etc)
this: http://zope.agmweb.ca/Zope/products (click on the x for xml).

--
  Andy McKay.


- Original Message -
From: "Marcin Kasperski" [EMAIL PROTECTED]
To: "Zope List Submission" [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 8:44 AM
Subject: Re: [Zope] Downloading All Zope products


 Jerome Alet wrote:
 
  Hi,
 
  I was bored by the current search interface for downloading Zope
products:
  you have to spend hours just clicking to download lots of products. I
want
  to put Zope and the maximum number of available products on a CDROM to
be
  able to do demos and so on to people not connected to the Net.
 

 Very nice, thanks. Nevertheless, I still dream about some categorized
 Zope products directory, which could be downloaded with one step and put
 on the CD-ROM (I mean sth like your page but with content categorized -
 like the zope products page on zope.org do - and annotated with recent
 change date and required zope version).

 Maybe at least adding two recent attributes to your page wouldn't be so
 hard?

 --
 http://www.mk.w.pl /
  Marcin.Kasperski | Moje prywatne strony: http://www.kasperski.prv.pl
@softax.com.pl |
  @bigfoot.com  \

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



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




RE: [Zope] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread Bill Welch

I haven't been following this thread, so I apologize in advance for any
redundancy.

Several weeks ago I had an existing mysql fail as you describe after I
upgraded mysqldb in /usr/lib/python. I fixed it by moving
ZMySQLDA/MySQLdb-0.1.2/_mysqlmodule.so up one level as described in README.txt.

Bill.

On Thu, 11 Jan 2001 [EMAIL PROTECTED] wrote:

 From Zope management database connection Test tab, on valid SELECT queries
 it tells me that there was no data matching my query. On invalid SELECT
 queries (ones on nonexistent tables or columns) Zope raises the correct
 error originating from MySQL, such as "Error Value: (1146, "Table
 'somedatabase.sometable' doesn't exist")". The trial queries I am testing
 through Zope all work from the MySQL command line so I know they do in fact
 return data. It appears that error messages are making it back to Zope from
 MySQL but real query results are not.


___
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] Limited File object size?

2001-01-11 Thread Stuart Foster

Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2)
Python version: 1.5.2 (#1, Sep 30 2000, 18:08:36) [GCC 2.95.3 19991030 
(prerelease)]
System Platform: linux-i386

I should mention I was able to ftp the files to the folder.

 Original Message 

On 1/11/01, 10:27:00 AM, Chris Withers [EMAIL PROTECTED] wrote regarding 
Re: [Zope] Limited File object size?:


 What version of Zope are you using?

 Stuart Foster wrote:
 
  When uploading a file to Zope I am getting an error about commit_sub.
  I uploaded some other files to the same folder but am having problems
  with two in particular.
  He only difference I can see is that the others where 10k to 60k and the
  two problem files are 100k and higher.
 
  Is there a limit on the file size that can be uploaded or is there
  another explanation?
 
  TIA
  Stuart
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )

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

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




[Zope] [newbie] sqltest question

2001-01-11 Thread Martin Fekete



documentation says that sqlvar support 
expressions


dtml-sqlvar Variable|expr="VariableExpression"andthisworks
dtml-sqlvar "'%'+arg+'%'" 
type=stringbut documentation also says that sqltest 
support expressions


dtml-sqltest Variable|expr="VariableExpression"
so this should work 
dtml-sqltest "'%'+arg+'%'" type=string 
column=arg
but it's not working ... anyideas 
?
thanks 

Martin 
Fekete


Re: [Zope] log file.

2001-01-11 Thread Andy McKay

Its not the same as IIS, but that is nowhere near a common format :) Its
relatively trival to hack the log file format if you are comfortable with
hacking the Zope source.
--
  Andy McKay.


- Original Message -
From: "Dennis Nichols" [EMAIL PROTECTED]
To: "Jason C. Leach" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 7:03 AM
Subject: Re: [Zope] log file.


 At 1/11/01 12:25 PM, Oleg Broytmann wrote:
 On Wed, 10 Jan 2001, Jason C. Leach wrote:
   Is the Zope log file in Common Log File Format?
 
 Yes. You can run every standard log files analyzer on it.

 Using analog (http://analog.cx) against my Zope 2.2.2 logs, I found that
 the standard analog definition of the Common Log File Format didn't
exactly
 match the Z2.log format. Specifically, Zope produces a host address
 followed by a colon, which confused a few of analog's reports. I currently
 use the following in my analog.cfg file...

 LOGFORMAT (%S: %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B")
 LOGFORMAT (%S: %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b "%f" "%B")



 --
 Dennis Nichols
 [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 )



___
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] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread Bill Welch

A binary distribution comes with python built-in so that it will run
without the installer having to also go get python. PYTHONPATH is the key
to understanding module sharing. Unless you (or the packager) change
something, a binary Zope uses only the modules in the built-in python (or,
at least, has the built-in lib/python first in PYTHONPATH). In the same
vein, the two pythons don't share modules unless you change somemthing,
e.g. PYTHONPATH (or maybe both their PYTHONPATHs end in
/usr/local/python). Just to double check what's going on in your Zope, use
this code to create an external method and visit it with your browser.

import sys

def sysPath(self):
buff = ''
for dir in sys.path:
buff = '%s\n%s' % (buff, dir)
return buff

Bill.

On Thu, 11 Jan 2001 [EMAIL PROTECTED] wrote:

 dependencies here. Also I am confused on a basic piece of Zope
 configuration: my box has its own python and Zope has its own python, why
 two and are they sharing modules? If you want to add a module for both
 installs of python do I have to install in both? If I install a python
 module in my box's python can Zope's python find and use it? I am confused
 on this basic question.



___
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] Authentication problems on FreeBSD with Apache

2001-01-11 Thread Drew Sanford

I have recently installed Zope on FreeBSD running the Apache web server. 
When I attempt to access the management page from 
http://my.web.server/cgi-bin/Zope.cgi I get authentication failures. I'm 
sure there are things that I've missed in what I've seen, and the 
section on running Zope with Apache in the manual isn't done yet. Can 
anyone point me towards some of the known issues here as far as what 
someone clueless about Zope but reasonably familiar with Apache might 
need to do to get authentication working?


___
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] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread Ron Bickers


 On my box only DA is symlinked to a different location. The rest of my
 products reside in a child directory of the main Zope installation. I am
 only running one Zope instance. This shouldn't be a problem, right?

This should not be a problem.

 From Zope management database connection Test tab, on valid
 SELECT queries
 it tells me that there was no data matching my query. On invalid SELECT
 queries (ones on nonexistent tables or columns) Zope raises the correct
 error originating from MySQL, such as "Error Value: (1146, "Table
 'somedatabase.sometable' doesn't exist")". The trial queries I am testing
 through Zope all work from the MySQL command line so I know they
 do in fact
 return data. It appears that error messages are making it back to
 Zope from
 MySQL but real query results are not.

Are you saying that the valid select queries are suppose to return data, but
in the test screen they don't?  If you can run a query and get a response,
that's a pretty strong indication that both the module and the DA are
installed correctly.

It's quite possible that the binary RPMs only work properly with certain
versions of MySQL for whatever reason.  Perhaps if you compile the module
from the src RPM
(http://dustman.net/andy/python/MySQLdb/0.2.1/MySQL-python-0.2.1-1.i386.rpm)
you can eliminate one more factor.  You'll probably need to have MySQL-devel
installed as well as python-devel.  The only reason I point to an older
version of Andy's module is because that's what I'm using and I know it
works for me.

 RPMs, but perhaps I missed something and some residue lingers. I know how
 to uninstall RPMs, but other than that how do I make sure I have a clean
 slate before trying to install anew? I think there is quite a
 number of mod
 dependencies here. Also I am confused on a basic piece of Zope
 configuration: my box has its own python and Zope has its own python, why
 two and are they sharing modules? If you want to add a module for both

You could probably have many versions of python that share modules.  I'm
using my everyday python for Zope, but I know that's not possible for some,
because Zope needs certain options that the "default" version may not have
compiled in.  If your Zope is running, the MySQLDA product isn't broken, and
you can run queries on the test page, then I can't see how it's a python or
Zope problem.  I may just be blind, though.

 I also did this as (contributed previously to the list) to fix a install
 but broken DA. Directory, site-packages, now exists in two locations. Is
 this a problem?

As long as the python you're using for Zope can find the module you expect
it to find, you should be fine.

 Seems that because of how my Zope was installed had problems... I copied
 all
 files from /usr/lib/python1.5/site-packages/ to
 /usr/local/zope/lib/python/Products/ZmySQLDA and all was sweet.

 Day 5 of the insanity continues.

I must have been very lucky with my installation since I've never had these
kinds of problems getting it running, but I see that many have.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] Authentication problems on FreeBSD with Apache

2001-01-11 Thread Bill Welch

First off, bypass apache and go straight to zope - typically port 8080.
Did you make note of the superuser name and password the installation
script produced? If not, use zpasswd.py to create a new one. I'm presuming
that you're using 2.2.x. Don't forget to create a manager user and switch
to it after you get logged in as the superuser. Search on zope.org for
'apache'.

Bill.

On Thu, 11 Jan 2001, Drew Sanford wrote:

 I have recently installed Zope on FreeBSD running the Apache web server. 
 When I attempt to access the management page from 
 http://my.web.server/cgi-bin/Zope.cgi I get authentication failures. I'm 
 sure there are things that I've missed in what I've seen, and the 
 section on running Zope with Apache in the manual isn't done yet. Can 
 anyone point me towards some of the known issues here as far as what 
 someone clueless about Zope but reasonably familiar with Apache might 
 need to do to get authentication working?
 
 
 ___
 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] Zope.org is down?

2001-01-11 Thread Drew Sanford

Looks like it from here:(

Diego Rodrigo Neufert wrote:

 Is it realy down?


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




[Zope] Zope.org is down?

2001-01-11 Thread Diego Rodrigo Neufert

Is it realy down?

-- 
Diego Rodrigo Neufert
Webmaster / Web Developer - Magic Web Design
---
[EMAIL PROTECTED]
www.magicwebdesign.com.br
Curitiba - PR - Brasil

___
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] Storing and Using Object references

2001-01-11 Thread Tom Jenkins

Shane,
You are DA MAN.  That getPhysicalPath()  unrestrictedTraverse() methods
work perfectly, even with SiteAccess installed.  Thank you very much.

Tom

-Original Message-
From: Shane Hathaway [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 3:11 PM
To: Tom Jenkins
Subject: Re: [Zope] Storing and Using Object references


Tom Jenkins wrote:
 
 Hello all,
 i have a question and I hope someone can point me in the right direction
 to solve it.  I need one zope object to hold a reference to another zope
 object so the first object can call methods of the second object.  oh,
 these are python classes.
 
 Example: object 1 is :  /container1/container1a/item1  object 2 is :
 /container2/container2a/item1  object1 needs to hold a reference to
 object2.  I'm really stuck on how to store and access object2 from
 object1.
 
 any pointers?

I think what you're looking for is getPhysicalPath() and
unrestrictedTraverse().  Store object2.getPhysicalPath(), which returns
a tuple, in object1.  To find object2 again, call
object1.unrestrictedTraverse(stored_physical_path).

Note that this only works in Zope 2.2.x+.

Shane



Tom Jenkins   |xml Its 
devIS - Development InfoStructure |all you
703.525.6485   [EMAIL PROTECTED] |need it
http://www.devis.com  |to be/xml
 

___
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] reindex when a zclass is edited

2001-01-11 Thread Tim Hicks


- Original Message -
From: Ivan Cornell [EMAIL PROTECTED]
To: Tim Hicks [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 7:53 PM
Subject: Re: [Zope] reindex when a zclass is edited


 Tim Hicks wrote:

   I can't for the
  life of me figure out or find anywhere that can tell me how to make the
  instance get reindexed when it is edited.  I'm assuming that it is
similar
  to the process for reindexing when the properties are changed, but I'm
just
  not sure of the details. If it's not too much trouble, could someone
give me
  detailed instructions (or a link) on how to do this. I'd really
appreciate
  it.
 

 In your method which is called by your edit form, insert a dtml-call
 "this().reindex_object()" after updating the properties.

 Eg, in my manage_edit method I have

 dtml-call "propertysheets.Base.manage_editProperties(REQUEST)"
 dtml-call "propertysheets.Facility.manage_editProperties(REQUEST)"
 dtml-call "this().reindex_object()"

 Regards, Ivan



Much obliged Ivan, I have managed to do it now.  I ended up creating
my_editForm and my_edit methods within the zclass and then using the source
from a builtin edit form as my template.  One thing doesn't work now though,
and that's making the textarea wider/narrow/etc.  Obviously, this is because
I have static values put in for the dimensions of the text area, but I'm not
sure how to alter this to make it work... any pointers?
my_edit looks like this btw,

htmlbody
dtml-call "manage_edit(data, REQUEST.title)"
dtml-call reindex_object
dtml-call "RESPONSE.redirect(absolute_url()+'/my_editForm')"
/body/html

Does this seem appropriate?

cheers

tim


___
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] logging: Can I switch it off?

2001-01-11 Thread Andy McKay

Run z2.py with the  -r flag. This may be too much for your needs.

-r

Run ZServer is read-only mode. ZServer won't write anything to disk.
No log files, no pid files, nothing. This means that you can't do a
lot of stuff like use PCGI, and zdaemon. ZServer will log hits to
STDOUT and zLOG will log to STDERR.

--
  Andy McKay.


- Original Message - 
From: "Joachim Werner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 2:10 AM
Subject: [Zope] logging: Can I switch it off?


 (How) Can ZServer logging be switched off?
 
 Joachim.
 
 ___
 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] ZServer

2001-01-11 Thread Curtis Maloney

On Thursday 11 January 2001 21:13, Tom Deprez wrote:
 Hi,

 Can anybody tell me what the following warning means, or where I can find
 documentation on this warning?


Since nobody else has , yet...


 ZServer warning : server accept() threw EWOULDBLOCK


Odd... this is a Sockets level error, meaning that the operation (in this 
case accept() ) requested on a non-blocking socket would have caused it to 
block (stall).

 Thanks in advance

 Tom Deprez



As to what would cause this from the documentation I can find, accept() 
shouldn't produce this error.  And even if it can, it would be a poor program 
design indeed that called accept() when there were no connections pending.

All I can think of immediately is someone went to connect, but dropped the 
connection before the server could react.  Now, the timing we're talking 
about here is likely _very_ slim...  but possible.

Other than that, I'd actually have to look at the source.. (o8

Have a better one,
Curtis Maloney

___
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] hasRole bug or feature in 2.2.?

2001-01-11 Thread Ron Bickers

I'm having a problem with AUTHENTICATED_USER.hasRole()

I have a user with the role 'Member' defined at the root level (and nowhere
else).  I also have the following DTML method at the root level:

  dtml-if "REQUEST['AUTHENTICATED_USER'].hasRole(PARENTS[-1], ['Member'])"
  You are a Member.
  dtml-else
  Your are NOT a Member.
  /dtml-if

When I first request the protected document /Bogus/membersonly, I'm prompted
to log in.  When I do, I get access to the /Bogus/membersonly document.
Then when I request /Bogus/isMember, it says I am a Member.  However, when I
request /isMember, it says I am NOT a Member.  Anywhere I request isMember,
other than in the /Bogus folder, I am NOT a Member, even though the user is
defined at the root level with the Member role.

If I then request a protected document /membersonly, it shows me the
document without prompt.  After I do that, when I request /isMember or
/AnyFolder/isMember, it now tells me I am a Member.

Why does it not recognize that I'm a user with the Member role anywhere on
the site until I access a protected document at the root level?  Is this by
design or a bug?  If by design, what's the reasoning?

Thanks!
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] Zope vs. Enhydra

2001-01-11 Thread corey

And upon Thursday of January 11, the illustrious Paul Browning spake thusly...
 
 From the horse's mouth as it were. I'll let the
 list know where to find it when it appears.
 
snip
 
 The next issue of the Lutris Enhydra Journal will be
 delivered to you on Monday, 15 January 2001.  Articles
 will include:
snip
 Paul Gresham: Zope vs Enhydra
snip

  
  Coolness -- thanks for the heads-up.


Beers,

Corey


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




[Zope] Acquisition loops and web robots

2001-01-11 Thread Andrews, Martin

I have run into several cases where authors at our site have accidentally
employed acquisition to link documents in such a way that an infinite tree
of URLS are possible - for example:

/a/foo contains a link to "b/bar"
/b/bar contains a link to "a/foo"

This really causes a problem with our web indexer (htdig) hits the site and
indexes pages like:

/a/b/a/b/a/b/a/b/a/b/a/b ... a/foo

Has anyone found a way to avoid these sort of problems - other then just not
indexing zope sites? I already limit htdig with the max_hop_count setting,
but that it tricky to tune correctly (and still index all valid files).

Martin

---
Martin Andrews
[EMAIL PROTECTED]

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




Re: [Zope] How do I get the size of an item ?

2001-01-11 Thread ethan mindlace fremen

Dimitris Andrakakis wrote:
 
 ...anyone ?
 
 Say I have these folders:
 /
 /news
 /news/files
 What I need is, from a dtml method in /news, to get
 the size of an object (a file, say /news/files/file01.pdf)
 in /news/files.

dtml-with files
dtml-var "_.get_size(_['file01.pdf'])"
/dtml-with

should do the trick.
-- 
-mindlace-
Zopatista Community Liason

___
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] Downloading All Zope products

2001-01-11 Thread ethan mindlace fremen

Jerome Alet wrote:

 I've decided to do something to solve this problem, so I've created the
 "Zope Complete Products List for easy batch download".
 
 You can find it at http://www.zope.org/Members/jerome/ZCPL
 
 This document dynamically lists all available Zope products (from
 zope.org) and for every product put one and a single link to its latest
 version archive.

This is not a dreadful thing, but how is it different from:

http://www.zope.org/Products/all_products?batch_size%3Aint%3Arequired=265

 It also explains how to download all Zope products available in
 one Wget run, but please consider not making this an habit because the DC
 folks don't seem to like that (see http://www.zope.org/robots.txt).

What I don't like is people using wget to suck the entire site and then
hitting (for example) the "tree" version of the Zope Quick Reference and
expanding *every single node*.

-- 
-mindlace-
Zopatista Community Liason

___
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] href on a local file

2001-01-11 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  
"LocalFS" is a very nice product.
I would go for it.


Dieter

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




[Zope] Zope BUG (was: [Zope] Limited File object size?)

2001-01-11 Thread Dieter Maurer

Stuart Foster writes:
  When uploading a file to Zope I am getting an error about commit_sub. 
  I uploaded some other files to the same folder but am having problems 
  with two in particular.
  He only difference I can see is that the others where 10k to 60k and the 
  two problem files are 100k and higher. 
  
  Is there a limit on the file size that can be uploaded or is there 
  another explanation?
It is obviously a bug.

Put a description into the Collector, if there is not yet one
already.
The problem came up about 1-2 weeks ago.
Maybe, the bug report is already filed.


Dieter

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




Re: [Zope] broken products not indicated after Zope 2.2.5 install

2001-01-11 Thread Dieter Maurer

Fred Yankowski writes:
  I activated Zope logging as you suggested and restarted Zope, but the
  logfile does not report any exceptions.  It only contains routine
  startup messages such as "ZServer HTTP server started ...".
  
  And the Products list still makes it look like they're all OK, when
  many are in fact broken by virtue of being completely missing in the
  lib/python/Products directory.
Sorry for the wrong hint!

I fear now, that Zope simply looks for the products that *ARE*
available in the "Products" subpackage and does not
do anything about other products.

If you think, this is a bug, put it into the Collector.


Dieter

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




Re: [Zope] hasRole bug or feature in 2.2.?

2001-01-11 Thread Chris McDonough

You're gonna laugh.  Get ready.

You didn't protect the isMember document.  It's viewable by Anonymous.  The
Zope security machinery short-circuits authentication for resources that
don't require it.  This means that when you view a resource that's
unprotected, you view it "as Anonymous".  Anonymous doesn't have the Member
role, so you see "You are NOT a Member" when you view /isMember.

I don't particularly like this behavior, but it seems not to bother anyone
else.  I think it should authorize you and set AUTHENTICATED_USER if you
pass in auth info regardless of the protection on the resource you're trying
to view.

- Original Message -
From: "Ron Bickers" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 5:01 PM
Subject: [Zope] hasRole bug or feature in 2.2.?


 I'm having a problem with AUTHENTICATED_USER.hasRole()

 I have a user with the role 'Member' defined at the root level (and
nowhere
 else).  I also have the following DTML method at the root level:

   dtml-if "REQUEST['AUTHENTICATED_USER'].hasRole(PARENTS[-1],
['Member'])"
   You are a Member.
   dtml-else
   Your are NOT a Member.
   /dtml-if

 When I first request the protected document /Bogus/membersonly, I'm
prompted
 to log in.  When I do, I get access to the /Bogus/membersonly document.
 Then when I request /Bogus/isMember, it says I am a Member.  However, when
I
 request /isMember, it says I am NOT a Member.  Anywhere I request
isMember,
 other than in the /Bogus folder, I am NOT a Member, even though the user
is
 defined at the root level with the Member role.

 If I then request a protected document /membersonly, it shows me the
 document without prompt.  After I do that, when I request /isMember or
 /AnyFolder/isMember, it now tells me I am a Member.

 Why does it not recognize that I'm a user with the Member role anywhere on
 the site until I access a protected document at the root level?  Is this
by
 design or a bug?  If by design, what's the reasoning?

 Thanks!
 ___

 Ron Bickers
 Logic Etc, Inc.
 [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 )




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




Re: [Zope] How do I get the size of an item ?

2001-01-11 Thread Dieter Maurer

Dimitris Andrakakis writes:
  
  What I need is, from a dtml method in /news, to get 
  the size of an object (a file, say /news/files/file01.pdf) 
  in /news/files.
You know Zope's integrated online help?

There you would find that files have a method "getSize"
that returns their size.

In the upcoming Zope bock (- zope.org), you could read
that "dtml-with" can be used to access objects in "foreign"
contexts:

dtml-with "news.files"
  dtml-var "_.getitem('file01.pdf').getSize()
/dtml-with

or

dtml-var "_.getattr(news.files,'file01.pdf').getSize()"

will do.


Dieter

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




RE: [Zope] hasRole bug or feature in 2.2.?

2001-01-11 Thread Ron Bickers

 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 11, 2001 6:25 PM
 To: Ron Bickers; [EMAIL PROTECTED]
 Subject: Re: [Zope] hasRole bug or feature in 2.2.?


 You're gonna laugh.  Get ready.

 You didn't protect the isMember document.  It's viewable by
 Anonymous.  The
 Zope security machinery short-circuits authentication for resources that
 don't require it.  This means that when you view a resource that's
 unprotected, you view it "as Anonymous".  Anonymous doesn't have
 the Member
 role, so you see "You are NOT a Member" when you view /isMember.

I'm not sure this makes sense.  If I protect isMember, then anonymous won't
be able to determine if they're a member without being prompted to log in.
Isn't that true?  That's not what I want.

Also, why does it behave differently after I view a protected document in
the root?  isMember is still not protected, but it then correctly returns
that I have the Member role anywhere in the site.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] ZServer

2001-01-11 Thread Dieter Maurer

Tom Deprez writes:
  Can anybody tell me what the following warning means, or where I can find
  documentation on this warning?
  
  ZServer warning : server accept() threw EWOULDBLOCK
You can tell a socket that you do not want to wait.
If you did, then the socket will return EWOULDBLOCK
when you do something that would let you wait.

Usually, you have a "listen" above the "accept".
When the "listen" returns, you know, there is a connection
to "accept". However, if the process that wanted to connect
dies, it might be (with low probability) that "listen" returns
but when "accept" is reached, the request went away.

Because probability is very low, I do not know whether
this is your problem. If it is, however, then you
could simply ignore the error and restart the "listen".


Dieter

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




Re: [Zope] Memory problems

2001-01-11 Thread Dieter Maurer

Dimitris Andrakakis writes:
  Dieter wrote:
   "ps" is still a bit stupid and does not visualize that
   they are threads rather than normal (full blown) processes.
  
  ps -axf ?
Thank you!

But it displays the children hierarchy without an indication
what children are full blown processes and what are threads.

Nevertheless, your message was good for me.
I knew, that there is a ps option that shows the children
hierarchy, but I did never look at it.

It was quite impressive, when I did after I got your
response.


Dieter

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




[Zope] way to cleanup form input text?

2001-01-11 Thread Chris Beaumont

Is there a simple way to clean up text that's input to HTML forms in Zope?
I have a situation where one of my users is copying text from her web 
browser and pasting it into Zope.

I'm sure this is a common problem..

The input text ends up having runs of whitespace characters in it 
that I'd like to prune down to one each..and I think it's also been 
the source of some non-standard, unwanted characters that cause 
problems if they end up getting into our database..

I'm sure someone else has encountered this problem before..what's the 
best way to fix it? The string module doesn't seem to have what I 
want.. (or at least I couldn't find it..)  The worst problems seems 
to be long strings of spaces or tabs that I'd like to turn into 
single spaces..(each)




Thanks!

Chris

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




[Zope] RE: SQL Method, dtml-with and namespace weirdness

2001-01-11 Thread Dieter Maurer

Mayers, Philip J writes:
   
  To recap: two SQL method returning [different] (name,domain) are used like
  this:
  
  dtml-in SQL_method1
Pdtml-name;/P  - POINT A
Pdtml-domain;/P
dtml-in SQL_method2
  Pdtml-name;/P- POINT B
  Pdtml-domain;/P
  dtml-with aFolder
Pdtml-name;/P  - POINT C
Pdtml-domain;/P
  /dtml-with
/dtml-in
  /dtml-in
  
  This will print:
  
  name1
  domain1
  
  name2
  domain2
  
  name1
  domain1
  
  That is: *inside* the dtml-with, the variables "name" and "domain" appear to
  be reset to their values in the *outer* dtml-in tag, not the innermost. This
  *only* happens if both SQL methods return variables named the same, and it
  *only* affects those two variables (so, I can work around it). Is this
  expected behaviour?
Now, that is a nice problem description.

The only rational explanation would be that your
"aFolder" magically has access to "name" and "domain" that
happen to have values "name1" and "domain1".



Dieter

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




Re: [Zope] href on a local file (you can serve files from local file system)

2001-01-11 Thread sathya rangaswamy

Hello tilo
There is a product that will allow you to serve files from the file system.
Look under external access in download area. With this you can serve your
local files without adding to zodb
sathya
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 4:18 AM
Subject: [Zope] href on a local file


 Hi everybody,

 it's now my third day with Zope and I'm already pretty happy with it.
Finally I
 got external python methods running with passing parameters to them and
getting
 return values back. Although there is a lot of documentation, I couldn't
find
 any about the Zope internals. Does anybody know where to look for such
 documentation?

 Now my question concerns local files. We do image processing and have
zillions
 of images. I'd like to do some "have a page of thumbsnails and click on it
to
 see the full image" kind of web page. I saw the examle thumbnail code in
 http://www.zope.org/Members/michel/ZB/ScriptingZope.html, but that code
puts
 the thumbnails into the Zope Database within the python script. I'd like
to
 avoid that, because with our zillion images this would bloat the database
 pretty much.

 If I got the docs right, it's normally not possible to publish a local
file
 with Zope, only objects in the database can be published (correct?). But I
 would like to use a href like

 A HREF="http://mymachine/images/.pgm"
 IMG SRC="http://mymachine/images/thumbs/.pgm"/A

 in the dtml. If I understand it right, the product "Local File System"
would be
 a possibility to do that. Is it the right way to go, or does anybody have
a
 better / other solution?

 Tanks for any help!

 BTW: I read about dropping external python modules in some future version
of
 Zope. For us, the main point with Zope is, that you can build a web front
end
 for a bunch of python modules we have. Thus, from our point of view, the
 dtml-binding possibility to python modules is essential.

 Tilo

 ___
 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] Attention users of Interbase

2001-01-11 Thread Andrew Kenneth Milton

+---[ Steve Drees ]--
| http://slashdot.org/articles/01/01/11/1318207.shtml
| 
| summary:
| Backdoor user/password discovered.
| Script Kiddies already probing for interbase.

Or more directly;
http://www.cert.org/advisories/CA-2001-01.html 

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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 )




[Zope] document_src not doing what I thought it did

2001-01-11 Thread Tim Hicks

I have a dtml-documentish zclass and have created a custom edit method for
it so that I can do an automatic reindex when each instance is edited.  I
created this custom form by simply copying the source html that is generated
for the standard edit form, and then replacing the static parts of what I
copied with various dtml-var  inserts (see below).  This seemed to go
according to plan until I realised that something strange is happening when
I try to view this edit form for an instance of the zclass.  In most cases,
everything seems normal, but when I try to edit an instance that has a
property set to 'private', my 'privacy' method kicks in and redirects me
away from the edit form to my standard 'Restricted Page'.  The redirection
is written into the text of the instance I am trying to edit, so I expected
that by using dtml-var document_src, the actual source would get placed in
the text area without being processed.  This is what appears to happen when
the instance does not have the 'private' property.  I guess therefore, my
question is, am I using document_src correctly?

thanks very much

tim

ps Sorry to be such a regular poster of problems


  FORM ACTION="my_edit" METHOD="POST"
TABLE CELLSPACING="2"
  TR
 TH ALIGN="LEFT" VALIGN="TOP"Id/TH
 TD ALIGN="LEFT" VALIGN="TOP"dtml-var id/TD
  /TR
  TR
 TH ALIGN="LEFT" VALIGN="TOP"EMTitle/EM/TH
 TD ALIGN="LEFT" VALIGN="TOP"
  INPUT TYPE="TEXT" NAME="title" SIZE="40" VALUE="dtml-var title"
 /TD
  /TR
  tr
 th align="left" valign="top"
emSize/em
/th
 td align="left" valign="top"
dtml-var get_size bytes
 /td
  /tr
  tr
 th align="left" valign="top"
emLast modified/em
/th
 td align="left" valign="top"
dtml-var bobobase_modification_time
 /td
  /tr
  TR
 TD COLSPAN="2" ALIGN="CENTER"
 TEXTAREA NAME="data:text" WRAP="Off" COLS="115" ROWS="25"dtml-var
document_src/TEXTAREA
 /TD
  /TR
  TR
 TD align=left
  INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Change"
 /TD
 TD align=left
   INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Taller"
   INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Shorter"
   INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Wider"
   INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Narrower"
 /TD
  /TR
/TABLE
  /FORM


___
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] with a variable

2001-01-11 Thread josh on

Hi,

a small problem!,

This works:
dtml-with 979226100
dtml-var attribute
/dtml-with

This doesn't:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "_.getitem('userid')"
dtml-var attribute
/dtml-with

Nor this:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "userid"
dtml-var attribute
/dtml-with

Nor this:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with userid
dtml-var attribute
/dtml-with

What I want to do is have a varible passed to the page which says what
zclass instance to get the properties of.

any help appreciated.

josh on


===
write: [EMAIL PROTECTED]
read: www.futurefarmers.com
read: www.crd.rca.ac.co.uk/~josh
interrupt (i love it): (415) 552 2124
=


___
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] ZMySQLDA and aggregate functions on Win

2001-01-11 Thread Markus Kemmerling

I have a problem with ZMySQLDA and aggregate functions in combination with 
grouping on Windows.
When I say:
SELECT COUNT(*) FROM mytable GROUP BY myfield;
I get an KeyError 'Unhandeld'.

SELECT COUNT(*) FROM mytable;
works fine, so does
   SELECT myfield FROM mytable GROUP BY myfield;
but not the combination of both.
Also on a linux machine the error doesn't occur. Of course I tested the 
queries from the mysql command line.

Any help?

Markus Kemmerling


___
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] with a variable

2001-01-11 Thread Steve Spicklemire


How about this:

dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "_[userid]"
dtml-var attribute
/dtml-with

or

dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "_.getitem(userid)"
dtml-var attribute
/dtml-with

-steve

 
 Hi,
 
 a small problem!,
 
 This works:
 dtml-with 979226100
 dtml-var attribute
 /dtml-with
 
 This doesn't:
 dtml-call "REQUEST.set('userid', 979226100)"
 dtml-with "_.getitem('userid')"
 dtml-var attribute
 /dtml-with
 
 Nor this:
 dtml-call "REQUEST.set('userid', 979226100)"
 dtml-with "userid"
 dtml-var attribute
 /dtml-with
 
 Nor this:
 dtml-call "REQUEST.set('userid', 979226100)"
 dtml-with userid
 dtml-var attribute
 /dtml-with
 
 What I want to do is have a varible passed to the page which says what
 zclass instance to get the properties of.
 
 any help appreciated.
 
 josh on
 
 
 ===
 write: [EMAIL PROTECTED]
 read: www.futurefarmers.com
 read: www.crd.rca.ac.co.uk/~josh
 interrupt (i love it): (415) 552 2124
 =
 
 
 ___
 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] Storing and Using Object references

2001-01-11 Thread Tres Seaver

Tom Jenkins [EMAIL PROTECTED] wrote
 
 Hello all,
 i have a question and I hope someone can point me in the right direction
 to solve it.  I need one zope object to hold a reference to another zope
 object so the first object can call methods of the second object.  oh,
 these are python classes.  
 
 Example: object 1 is :  /container1/container1a/item1  object 2 is :
 /container2/container2a/item1  object1 needs to hold a reference to
 object2.  I'm really stuck on how to store and access object2 from
 object1.  
 
 any pointers?

If you store the path to the other object as an attribute on its
referer, then you can use the OFS.Traversal interface to fetch the
referred object on demand.  E.g.::

  class Foo:

bar_path = None

def setBar( self, bar ):
"""
Save bar's path so we can find it later.
"""
if bar is None:
self.bar_path is None
else:
self.bar_path = bar.getPhysicalPath()

def getBar( self ):
"""
Use stored path to retrieve bar.
"""
if self.bar_path is None:
return None
return self.restrictedTraverse( self.bar_path )
#^_could be 'unrestrictedTraverse', in trusted code
  
Tres
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

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




Re: [Zope] Need help with ZGotW

2001-01-11 Thread Tres Seaver

LARRY CHUON [EMAIL PROTECTED] wrote

 I have Zope-2-2-4 and just install ZGotW.  When I try to add
 ZGotW Issue and ZGotW Root, I receive errors such as "Empty
 entry when integer expected" or "sequence index must be integer."

The product you downloaded (version 0.0.2) was built for Zopes
before version 2.2.*;  I have uploaded a new version which is
2.2.* compatible:

  http://www.zope.org/Members/tseaver/ZGotW/ZGotW-0.0.3.tgz

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

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




RE: [Zope] MySQL

2001-01-11 Thread Eric Walstad

http://www.zope.org/Members/alanpog/zmysqlda_steps
Should get you started...
Eric.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of vishnu
prasad
Sent: Tuesday, January 09, 2001 3:17 PM
To: [EMAIL PROTECTED]
Subject: [Zope] MySQL


can anyone update me with list of activities that I need to follow for
having MySQL installed and integrated with Zope?

thanks in advance,
vp


___
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] Authentication problems on FreeBSD with Apache

2001-01-11 Thread Jason C. Leach

hi,

Did you create an Administrators account in zope and set the passwd for
it?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Thu, 11 Jan 2001, Drew Sanford wrote:

 I have recently installed Zope on FreeBSD running the Apache web server. 
 When I attempt to access the management page from 
 http://my.web.server/cgi-bin/Zope.cgi I get authentication failures. I'm 
 sure there are things that I've missed in what I've seen, and the 
 section on running Zope with Apache in the manual isn't done yet. Can 
 anyone point me towards some of the known issues here as far as what 
 someone clueless about Zope but reasonably familiar with Apache might 
 need to do to get authentication working?
 
 


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




[Zope] Re: ZGDchart -- passing parameters to SQL Metho

2001-01-11 Thread Olaf Zanger

hi there,
thanks was a good tip. is all "exampled" in the "index_html" of
gdchartdemo.

good work.

olaf

Chui Tey schrieb:
 
 Look at the gdchartdemo, there is an example of it. it looks something like
 
 dtml-var "chtSales(sales=2500)"
 
 Chui
 
 - Original Message -
 From: Olaf Zanger [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Thursday, January 11, 2001 4:52 AM
 Subject: ZGDchart -- passing parameters to SQL Metho
 
  hi there,
 
  a great product,
 
  just i want to have a form to enter some parameters for the SQL Method
  call.
 
  since zgdchart-product calls the SQL Method i don't know how to pass the
  parameters.
 
  does anybody has an idea?
 
  thanks
 
  olaf
  --
  soli-con Engineering Zanger
  Dipl.-Ing. (FH) Olaf Marc Zanger
  Lorrainestrasse 23
  3013 Bern / Switzerland
  Fon: +41-31-332 9782
  Mob: +41-76-572 9782
  mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  http://www.soli-con.com

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



[Zope] 2.3.0a2 - missing a file

2001-01-11 Thread corey


I just downloaded and installed Zope 2.3a2, after setting
up a new database connection ( ZMySQLD ), I went to to
test it and lo-and-behold! No customDefaultReport.dtml for
which to display the results!

Anyhow, I just grabbed it off the 2.3.0a1 tree and put it 
in it's rightful place ( lib/python/Shared/DC/ZRDB/ ), and 
things work fine.

Anyhow, just a heads-up... 

What is the "proper" channel for directing such bug reports?

By the way -- kick-ass bit of work guys.  I'm really 
impressed with the rapid development of Zope, as well as 
it's feverishly dedicated community. And the new management
interface ain't half bad either!


Beers,

Corey



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

2001-01-11 Thread Petter Enholm


Hi,

I did not get mySQL running using the HOW-TO below. It seems to be outdated,
as there is not need for patching anymore. The following HOW-TO is newer;
http://www.zope.org/Members/MikeP/ZMySQLDA. I had mySQL up and running in no
time when following this HOW-TO.

If you are using mySQL on WIN32 use the following HOW-TO:
http://www.zope.org/Members/philh/mysql, and download all the files this
HOW-TO refers to, instead of compiling your own (if you don't know exactly
what you are doing).

I don't want to sound negative, but someone should really tidy up these
HOW-TOs for mySQL and remove the old ones. What caused me most trouble when
installing mySQL for the first time was to find the correct HOW-TO.

Q: Are there any person responsible for the HOW-TO's?

Suggestion: Now that there are many persons working with Zope, writing
HOW-TO's etc - would it be an idea to create categories for the different
HOW-TO's and that each category should have a maintainer, responsible for
removing old HOW-TO's or at least clearly state which version of the
products they are valid for? I could take responsibility for one category
... I think this could improve the quality of the available
documentation.

Best regards
Petter Enholm

Also:
- Original Message -
From: "Eric Walstad" [EMAIL PROTECTED]
To: "vishnu prasad" 
Cc: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 12:32 AM
Subject: RE: [Zope] MySQL


 http://www.zope.org/Members/alanpog/zmysqlda_steps
 Should get you started...
 Eric.
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of vishnu
 prasad
 Sent: Tuesday, January 09, 2001 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] MySQL


 can anyone update me with list of activities that I need to follow for
 having MySQL installed and integrated with Zope?

 thanks in advance,
 vp


 ___
 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] type in python methods

2001-01-11 Thread Juan Carlos Coruña



-Mensaje original-
De: Luciano Ramalho [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 11 de enero de 2001 15:21
Para: Juan Carlos Coruña
CC: [EMAIL PROTECTED]
Asunto: Re: [Zope] type in python methods


 The instruction if type(var1) == type(var2):  doesn't work.

It does work:

-
Python 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
 x = 'spam'
 y = 'eggs'
 z = 99
 type(x) == type(y)
1
 type(x) == type(z)
0

-



How isn't it working for you? What is the context? What kinds of
variables are you trying to compare?

Are you aware that type() only knows about primitive types (for example,
all class instances are of type 'instance')?

Regards,

Luciano Ramalho

Juan Carlos Coruña wrote:

 How can I compare the type of 2 variables in a python method?

 The instruction if type(var1) == type(var2):  doesn't work.

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

You are testing type in the python interpreter, but try to test the same
in the product PythonMethod Ver. 0.1.7.


___
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] Help getting zope to do frames!

2001-01-11 Thread Scott Chapman

I am trying to get some frames to work where you can load a url and 
have a frame around it.

I created a folder called test. I tried loading http://ipaddress/test and 
I get a recursion of frames and have to stop it loading.
Here's the contents of the test folder.  I'm very new to Zope and 
HTML so I'm probably missing something which should be obvious 
but I've been trying this for quite a while and can't figure it out. Can 
someone help me get this working?

I want this to be set up so that I can open a URL and have the frame 
automatically loaded around it.  Depending on the URL, a different 
frame will be loaded.  It seems this is something Zope should be 
ideal for.

Inside test are 3 DTML methods and 2 DTML documents:

DTML Methods:

id: standard_html_header
title: Standard Html Header
htmlheadtitleFrames in Rows/title/head
frameset rows=65,*
frame name=A src=dtml-var top
frame name=B src=dtml-var main
/frameset

id: standard_html_footer
title: Standard Html Footer
/HTML

id: index_html 
title: index
dtml-var standard_html_header
dtml-var standard_html_footer

DTML Documents:

id: main
title: Main Frame Contents
htmlheadtitleMain Frame Contents 1/title/head
body
h1Main Frame Contents 1/H1
/body
/html

id: top
title: top_frame
htmlheadtitleTop page of Frame/title/head
body
h1 This goes in the top frame/H1
/body
/html

Thanks!
Scott.


___
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] Attention users of Interbase

2001-01-11 Thread Steve Drees

http://slashdot.org/articles/01/01/11/1318207.shtml

summary:
Backdoor user/password discovered.
Script Kiddies already probing for interbase.

--
Steve Drees 
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
A problem well-stated is a problem half-solved.
http://www.christianmp3zone.com/savanna


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




  1   2   >