RE: [Zope-dev] New UI for 2.3

2001-01-12 Thread Andy Dawkins

Well just to be completely different to everyone else, I like the new look.

The bar at the top takes up a centimeter on my 20in monitor and it doesn't
bother me in the slightest.

I think Brain is right, People have been asking for DC to give Zope a face
lift and now its got one you are all complaining about it.

Don't get me wrong the points you raised are valid but you are complaining
about 32 pixels.  Give it a week and you won't know what you were
complaining about.

Overall it gets the thumbs up from me. :)

-Andy
(P.S. Why hasn't the acl_users folder got the same style of
shaded/non-shaded rows, Just a consistancy thang :)

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
 Of Brian Lloyd
 Sent: 12 January 2001 02:12
 To: Steve Alexander; [EMAIL PROTECTED]
 Subject: RE: [Zope-dev] New UI for 2.3


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

2001-01-12 Thread Chris Withers

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

Well, no, but laptops aren't known for their high resolutions and that
can make demonstrating zope a pain :-S

 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. 

That's cool, but couldn't you hire someone just to make the thing look
nice? A graphic designer or usability expert who knows what's best for
all these things, rather than us, a load of developers, trying to guess
;-)

 But is it really so bad to
 make a 32 pixel-high concession to a small pittance of branding?

Yes... especially when you could get the same branding without wasting a
whole strip of the screen...

 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.

I totally agree, and that top bar really spoils it :-S For example, in
Netscape, the bottom 5 pixels of the logo are chopped off when you first
open the manage screens.
In both IE and Netscape you get that horrible chunky frame border (is
there any way you can make that go away for the horizontal split?) which
wastes more space and looks nasty.

 The top frame is also a place where we might want to put more
 "placeless" operations like logout in the future. 

Any reason why that 'raise Unauthorized' thing couldn't have been put
in? I mean it's one line, and way more useful than "Sorry, this is not
yet implemented. " :-S

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

Well, how about:
[Root Folder] (square brackets mean black background)
 tree
Refresh (having this below (c) Digital Creations makes no sense ;-)
[Logged in as X]
Logout
other placeless operations

Then put the Zope logo actually _in_ the manage tabs (in the dead space
to the left of the 'Contents' tab) and hey presto, no nead for a top
bar, still branded and looks nicer ;-)

 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. 

This has always confused me, whats' wrong with just letting the user
object be a propertymanager?! After all, the preferences you're talking
about are user prefences and users will want them to follow them around,
no matter what machine they're using.
By implementing that, you remove the need for everyone else to resort to
LoginManager any time you want to store data that is associated with a
user in the user object...

Right, negative comments out the way, on the whole it looks very nice
and _much_ better than 2.2. Seems a lot quicker too. Really looking
forward to the full release :-)

cheers,

Chris

PS: You could always do a 'top bar' vote on www.zope.org and let
everyone have their say ;-)

___
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] Debugging Zope with Komodo

2001-01-12 Thread Johan Carlsson

 Andy McKay wrote:
  
  Sorry wrong mail list. Move along, nothing to see here.
 
 Too late ;-)
 
 What's Komodo?

First, it'ss:
"Komodo is ActiveState's cross-platform, multi-language Integrated Development 
Environment (IDE). Komodo supports Perl, Python, and JavaScript development 
on Windows, Linux, and Unix."
http://www.activestate.com/Products/Komodo/

And second, it's a National Park in Bali.
"Komodo National Park | Komodo Island"
Google says so anyway ;-)

Regards,
Johan Carlsson

Brilliant marketing-by-accident ;-)


___
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] Security _does_ work, it's just confusing :-)

2001-01-12 Thread Chris Withers

Answering my own post ;-)
Security does work, and was being applied, it's just still very much
along 'allow by default'.

Chris Withers wrote:

 This class has no __roles__, no __ac_permissions__, no nothing...
 Instances of this class are stored within a special folderish class, Y.

Now the key here was the no __ac_permissions__ thing. Basically, this
meant that default__class_init__ didn't add any roles as it usually
does...

 I thought Zope's security policy had changed to be disallow by default,
 but that really doesn't seem to be the case here :-S

It isn't, if you don't define __ac_permissions__ in any class, Acquiring
or not, you're wide open :-(

The patch is pretty simple:
===
RCS file: /cvs-repository/Zope2/lib/python/App/class_init.py,v
retrieving revision 1.5
diff -r1.5 class_init.py
125a126,131
 
 for name, v in dict.items():
 if not (hasattr(self,'__roles__') or have(name+'__roles__'):
 try: v.__roles__ = []
 except dict[name+'__roles__'] = []
 

...which is quite harsh and simplistic. It's not tested and may have
implications for things like self._properties and the like. But it's
better to have access denied and fix that than not know what's hanging
out, right?

Also, having looked at class_init.py, it appears that if you leave
methods out of __ac_permissions__, they're currently also completely
open, which might be bad :-S (although I think the above patch takes
care of that...)

I guess the 'disallow by default' should really be implemented at the
_checking_ stage, which currently says if you don't have a __roles__
attribute, anyone can do anything, but I understand there were other
implications there. What were they? When will the move to
disallow-by-default take place?

cheers,

Chris

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




[Zope-dev] Zope max script execution time?

2001-01-12 Thread Júlio Dinis Silva

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


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




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

2001-01-12 Thread Júlio Dinis Silva

Hi,

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

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


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




Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-12 Thread Espen Sorbye Frederiksen

I have truble with the permissions (get the message: "Authorization
failed. Retry?") when I do the following:

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

I am logged in as a manager.

Your example under does work, though..

 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 do I create a folder with subfolders, docs etc? (fwd)

2001-01-12 Thread Espen Sorbye Frederiksen

I have truble with the permissions (get the message: "Authorization
failed. Retry?") when I do the following:

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

I am logged in as a manager.

Your example under does work, though..

 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 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] Using Java (or JDBC) with Zope/Python

2001-01-12 Thread Dario Lopez-Kästen

Hello!

I am exploring the possibilities of using JDBC with Zope, as well as
investigating whether JavaBeans could be used from Zope/Python.

It seems that most Python/Java stuff use the JPython/Jython approach and,
IIRC, Zope and Jython/JPython don't mix very well/at all.

Any pointers, references, comments, etc accepted.

Sincerely,

/dario

- 
Dario Lopez-Ksten Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services


___
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-12 Thread Zope mailing lists

On Thu, 11 Jan 2001, Brian Lloyd wrote:
 Are you guys working on 486's with 13in. monitors at 640x480 or 
 something? :^)

Let's put it this way: I have my window frame borders on my xwindows
set to 1 pixel because I feel that the default (6?) pixel width
wastes way too much screen realestate (I use tiled windows a lot).
This is on a 17" 1024x768 monitor, and I'd probably do the same on
a 20".

 area sizes. That could also have a "hide top frame" option for 
 those who really can't spare the 32px. :^)

shrug

From my (peculiar, I'll admit) point of view, there isn't much
difference between the old and new interface.  I like the add
dropdown being at the top, I'm indifferent to the additional item
information, though the sorting looks like it might be useful, and
those are about the only differences I notice.  See, I use w3m and
I always go to 'manage_main', so I never see the other frames or
any of the "pretty" graphics

Now, if the management interface were *customizable*, all these
(mild) complaints would go away grin.  What ever happened to the
'skinnable' project?

All that said, I applaud the "management quick fixes".  Thanks, guys.

--RDM


___
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] Debugging Zope with Komodo

2001-01-12 Thread Andy McKay

My lips are sealed.

Damn email client... oh well it wont be the first time and won't be the last
this has happened.

Yours embarrased.

--
  Andy McKay.


- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: "zope-dev" [EMAIL PROTECTED]
Sent: Friday, January 12, 2001 2:32 AM
Subject: Re: [Zope-dev] Debugging Zope with Komodo


 Andy McKay wrote:
 
  Sorry wrong mail list. Move along, nothing to see here.

 Too late ;-)

 What's Komodo?

   Aaron has just helped me get Komodo debugging working for Zope. Both
Neil
   and I think this is absolutely fantastic, for the first time we can
see
  the
   interaction of Zope internals as they happen (its no longer a black
box
   anymore). This shed so much light on Zope, I think its great and so
will
  any
   Zope developer.

 Cool... that sounds really interesting, where can I get a copy?

 cheers,

 Chris

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



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




Re: [Zope-dev] New UI for 2.3

2001-01-12 Thread Ty Sarna

In article [EMAIL PROTECTED],
Brian Lloyd [EMAIL PROTECTED] wrote:
 Are you guys working on 486's with 13in. monitors at 640x480 or 
 something? :^)

At home I run 21" @ 1600x1280.  And there's a reason I shelled out for
that: I want to get lots of information on the screen.  I didn't buy
extra space just so you could go wasting it :^) Netscape already wastes
a lot of space at the top of the window...

I tend to run multiple browser windows all at the same time: one for the
user's view of the application, and at least one for development.
Sometimes more than one, perhaps one in the Product area for editing the
zclasses and one in the mail tree for editing the app, because it's a
pain to navigate back and forth between the two.

Also, the laptop issue that was raised was valid.

 concerned with function over form. But is it really so bad to 
 make a 32 pixel-high concession to a small pittance of branding? 

Yes.

 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 

To me, this would result in a less positive first impression.
Also, I really much prefered the blue tabs to the black. The black ones
look much flatter.

Don't get me wrong, I like what's been done with the lower part of the
screen. But I hate everything above the "objecttype at path" line.

And what ever happened to the Fishbowl? The only way to see way what
this looks like is to download and build the alpha.  That seriously
limits the visibility.  Also, the current fishbowl project on this is
effectively negative visibility, since it contains screenshots that
don't have anything to do with the actual look and feel.

___
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-12 Thread Bill Anderson

Chris McDonough wrote:

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


Hmmm, I changed super to UnrestrictedUser ... see any problems with that 
do you?


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

Backwards compat for reading it is fine, bailing because there is no 
access file would not be though. I experienced the latter.

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

Well, what _I_ saw was that it would not import if access file was not 
found, nor if the Super import referenced above was still there.

Bill



___
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-12 Thread Andy McKay

Come on, can someone post some sample screenshots?
--
  Andy McKay.


- Original Message -
From: "Andy Dawkins" [EMAIL PROTECTED]
To: "Brian Lloyd" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, January 12, 2001 12:39 AM
Subject: RE: [Zope-dev] New UI for 2.3


 Well just to be completely different to everyone else, I like the new
look.

 The bar at the top takes up a centimeter on my 20in monitor and it doesn't
 bother me in the slightest.

 I think Brain is right, People have been asking for DC to give Zope a face
 lift and now its got one you are all complaining about it.

 Don't get me wrong the points you raised are valid but you are complaining
 about 32 pixels.  Give it a week and you won't know what you were
 complaining about.

 Overall it gets the thumbs up from me. :)

 -Andy
 (P.S. Why hasn't the acl_users folder got the same style of
 shaded/non-shaded rows, Just a consistancy thang :)

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
  Of Brian Lloyd
  Sent: 12 January 2001 02:12
  To: Steve Alexander; [EMAIL PROTECTED]
  Subject: RE: [Zope-dev] New UI for 2.3
 
 
   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 )



___
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-12 Thread Shane Hathaway

Andy McKay wrote:
 
 Come on, can someone post some sample screenshots?

http://www.zope.org/Members/hathawsh/new_ui.png

Shane

 --
   Andy McKay.
 
 - Original Message -
 From: "Andy Dawkins" [EMAIL PROTECTED]
 To: "Brian Lloyd" [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, January 12, 2001 12:39 AM
 Subject: RE: [Zope-dev] New UI for 2.3
 
  Well just to be completely different to everyone else, I like the new
 look.
 
  The bar at the top takes up a centimeter on my 20in monitor and it doesn't
  bother me in the slightest.
 
  I think Brain is right, People have been asking for DC to give Zope a face
  lift and now its got one you are all complaining about it.
 
  Don't get me wrong the points you raised are valid but you are complaining
  about 32 pixels.  Give it a week and you won't know what you were
  complaining about.
 
  Overall it gets the thumbs up from me. :)
 
  -Andy
  (P.S. Why hasn't the acl_users folder got the same style of
  shaded/non-shaded rows, Just a consistancy thang :)
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
   Of Brian Lloyd
   Sent: 12 January 2001 02:12
   To: Steve Alexander; [EMAIL PROTECTED]
   Subject: RE: [Zope-dev] New UI for 2.3
  
  
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 )
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

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




Re: [Zope-dev] New UI for 2.3

2001-01-12 Thread Jimmie Houchin

Hello,

I personally don't have a problem with the new UI as far as the frames
are concerned. I have not used it on
a laptop, so can't express any opinions concerning such. I do prefer the
blue to the black.

Concerning branding, it seems to me (my opinion) that up at the top
would generally be more effective.
Also as the items in the tree in the left frame increases, the branding
keeps getting pushed down and off. It also pushes down and off the items
that Brian speaks of wanting to put into the top frame. The top frame
doesn't consume much more and sometimes less than some of the toolbars
the browser provide and many users use.

Currently in the left frame the user id is at the top. So a certain
amount of the 32 pixels consumed in the new ui are already being
consumed in the left frame. What is impacted the most is the right
frame.

These ui elements (and branding) are important and do need placed
somewhere. I would rather have them like they are instead of at the
bottom left frame where there position changes according to the number
of items. Just my opinion. :)


A couple of UI elements I've been thinking about.

I don't like the "Create public interface" checkbox automatically
defaulting to creating a DTML Document. Because there are multiple items
which could be used as the index_html I would like to see a dropdown
box/menu which allow you to select the ui element. I think currently
most will want DTML Method. In the future we might be choosing HiperDOM
or XMLDocument. I think a dropdown would be nice, with a potential user
selected default, which could be listed in the dropdown as "default". 

For people come from a traditional IDE or other types of apps it isn't
necessarily intuitive to click the back button or menu item in order to
exit a screen that you entered but changed your mind about and are doing
nothing. Yes, I understand most of us here understand that no
transaction has taken place and simply going "back" or clicking on
another link is okay. However, for the non-programmer content-provider
user of Zope a "cancel" button which goes back might be a nice ui
element.

Just some thoughts.

Jimmie Houchin

___
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-12 Thread Michael Bernstein

Brian Lloyd wrote:
 
 make a 32 pixel-high concession to a small pittance of
 branding?
 
 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 :)

I think that the top pane contents should be put into the
top of the tree pane. In either case, you are pushing the
tree pane contents down 32 px, but by putting the logo et al
in the tree frame, you will at least not be sacrificing the
top 32 px of the main frame.

As far as the 'branding' issue is concerned, I do not
begrudge DC and Zope the recognition they deserve, as long
as it doesn't get in the users way.

As an alternative to placing the 'branding' and 'placeless'
content into the tree frame directly, you might consider
splitting the tree frame instead. This would keep the logo
visible, but would no longer take up screen real estate from
the main frame.

Does DC do any usability testing on proposed UI changes?

HTH,

Michael Bernstein.

___
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] ANNOUNCE: CookieCrumbler product

2001-01-12 Thread Shane Hathaway

CookieCrumbler lets you set up cookie-based authentication even when
your user folder does not support cookies.

Zope 2.2.x or above is required since this product depends on a new
publisher traversal hook.

Enjoy!

http://www.zope.org/Members/hathawsh/CookieCrumbler

Shane

___
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-12 Thread Robin Becker

In article [EMAIL PROTECTED], Shane Hathaway
[EMAIL PROTECTED] writes
Andy McKay wrote:
 
 Come on, can someone post some sample screenshots?

http://www.zope.org/Members/hathawsh/new_ui.png

I hate the brand at the top. Put it at the bottom where it can disappear
and not take up space.

Can we have ownership information as well?

How about switching to a more sensible permissions scheme; then we could
have rwxr--r-- etc. I also would have to worry about the correct
settings of 'Add Mydongle', 'View MyDongle' etc. How can the
administrator keep up with the multiplicity of such things. I have more
than a page full of such permissions most of which I don't understand.

And will we get any better information on what causes all those
permissioning failures.

Telling us what causes our slightly modified product/Zclass to go down
the pan and take the data with it would also be nice.
-- 
Robin Becker

___
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-12 Thread Dieter Maurer

Brian Lloyd writes:
  ...
  But is it really so bad
  to 
  make a 32 pixel-high concession to a small pittance of
  branding? 
I can spare 32 pixels in height, but the current 32 pixels are worthless
for me as I cannot read what is there.

I do not know at what design schools one learns that
black letters on dark blue background is a good thing.
It seems to be quite widespread, as I see this quite
often.

Please keep in mind that colors do not look equal everywhere.
My colors are usually dimmed as my eyes start burning when
I have to look into bright light for a longer time
(Zope's management screens are very difficult for me
as they use bright white as background. I already looked
whether I could change it, but unfortunately, the
color is coded individually in each file.
What about using a central style sheet instead?).
Therefore, what might look good at your screen,
is unrecognizable on mine (and probably others).

Furthermore, you lost brand by placing the
blue Zope button onto the blue stripe.
You can now only guess, what is should be.
While contrast is very high at most places in the
new design, it is far too low in this place.


Dieter

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




[Zope-dev] updated main.dtml for PlugIns product for Zope 2.3

2001-01-12 Thread Steve Alexander

I've put up a new main.dtml file for the PlugIns product (related to 
ZPatterns), for use with Zope 2.3. This replaces the previous file 
posted at the same URL.

   http://www.cat-box.net/steve/main.dtml

The change makes the odd-even table row styles work consistently even 
when there are plug-ins in the plug-in container.

--
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] Debugging Zope with Komodo

2001-01-12 Thread Michael Bernstein

Andy McKay wrote:
 
 My lips are sealed.

You're being coy.

Here is the URL:
http://www.activestate.com/Products/Komodo/

Michael Bernstein.

___
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-12 Thread Andy McKay

My 2 cents and thanks to people for letting me have a look!

-There are too many conflicting shades of blue
- blue links on blue background, black text on blue background, blue
underlines on tabs and so on.
- you guys like blue eh?
-I dont mind the idea of the bar at the top, branding is fine
-I do mind the idea that is 32 pixels in height being unused. stick the
copyright, refresh options, time of day up there, if the space is being used
more effectively, people wont mind as much. There's a ton of stuff you could
put up there and still view on a laptop..
-No chance of getting no case sensitive object listing (or at least
having it as an option?)
-the select/deselect all is great but changing the button is generally
considering confusing..
--
  Andy McKay.


- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Brian Lloyd" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 12, 2001 12:37 PM
Subject: RE: [Zope-dev] New UI for 2.3


 Brian Lloyd writes:
   ...
   But is it really so bad
   to
   make a 32 pixel-high concession to a small pittance of
   branding?
 I can spare 32 pixels in height, but the current 32 pixels are worthless
 for me as I cannot read what is there.

 I do not know at what design schools one learns that
 black letters on dark blue background is a good thing.
 It seems to be quite widespread, as I see this quite
 often.

 Please keep in mind that colors do not look equal everywhere.
 My colors are usually dimmed as my eyes start burning when
 I have to look into bright light for a longer time
 (Zope's management screens are very difficult for me
 as they use bright white as background. I already looked
 whether I could change it, but unfortunately, the
 color is coded individually in each file.
 What about using a central style sheet instead?).
 Therefore, what might look good at your screen,
 is unrecognizable on mine (and probably others).

 Furthermore, you lost brand by placing the
 blue Zope button onto the blue stripe.
 You can now only guess, what is should be.
 While contrast is very high at most places in the
 new design, it is far too low in this place.


 Dieter

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



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




Re: [Zope-dev] updated main.dtml for PlugIns product for Zope 2.3

2001-01-12 Thread Steve Alexander

Steve Alexander wrote:

 I've put up a new main.dtml file for the PlugIns product (related to 
 ZPatterns), for use with Zope 2.3. This replaces the previous file 
 posted at the same URL.
 
   http://www.cat-box.net/steve/main.dtml
 
 The change makes the odd-even table row styles work consistently even 
 when there are plug-ins in the plug-in container.
 
And just updated again, to keep pace with the changes in CVS.

I'll be keeping the file at that URL generally up to date with the 
changes to main.dtml in CVS, at least until 2.3 beta is released.

I won't bother announcing more changes to this list, unless they are 
large and significant.

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

2001-01-12 Thread Jerome Alet

On Thu, 11 Jan 2001, ethan mindlace fremen wrote:

 Jerome Alet wrote:
  
  You can find it at http://www.zope.org/Members/jerome/ZCPL
 
 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 is VERY different because your page isn't easily suckable with Wget or
other similar tools: it contains lot of links which will pollute your
downloaded directory: the goal is to suck all products in one Wget run.

My page is more ressembling Martijn's one at

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

In fact these two pages are almost exactly the same, because I wasn't
aware of Martijn's one existence

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

;-)

bye,

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 )




[Zope] Zope Marketing

2001-01-12 Thread Stephan Goeldi

I searched on several sites for Zope Marketing products like e.g. high 
quality color PDF or slides, targeting management or marketing people.

The stuff I found usually targets programmers or administrators. I know, 
that a lot of programmers don't need, want or use clean documentation. I 
created a multimedia CD-ROM demonstrating the ease of using Zope. These 
people need to see, how you can enter a management screen by entering 
/manage on the URL line. Otherwise they won't believe it. So what I need is 
not a slide serie about the capabilities of ZSQL or administration 
possibilities. It is the usual high-glossy M$-style prospectus, those people 
are used to read.

Can you share some URL's about documentation targeting marketing and 
management people?

TIA
-goe-

http://www.goeldi.com/e





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


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




[Zope] ZOPE : SQL methods

2001-01-12 Thread K H Subrahmanyan

hi,

  I am using zope and gadfly for my project.
but while using the SQL methods, I get the error if I use the "like" option.

E.g..   select  *
from  table
where
 Emp_name   like   "*rama*"

I will get the following error.



 Zope Error
Zope has encountered an error while publishing this resource.
Error Type: SyntaxError
Error Value: unexpected token sequence.near :: 'est\012where \012Emp_name'*'
like "*rama*"' *** current state = 57 expects:
'HAVING', 'UNION', 'GROUP', 'VARCHAR', 'DESC', 'SELECT', 'ORDER', 'WHERE',
'AS', 'EXCEPT', '*', 'IN', 'INTERSECT', 'FLOAT', '+', '(', ')', '.', '/',
',', '-', 'AND', 'FROM', '*', ';', 'INTEGER', 'NOT', '', 'OR', '=',
'BETWEEN', 'ASC', '', 'VALUES', ('nomatch1',) current token = ((-8,
'user_defined_name'), 'LIKE')



kindly help
thanks
bye
subrahmanyan.


___
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-12 Thread Aleksander Salwa


On Thu, 11 Jan 2001, Tim Hicks wrote:

 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?

I use this code for that purpose:

dtml-if "REQUEST.has_key('dtpref_cols')"
 dtml-if "REQUEST.has_key('dtpref_rows')"
  dtml-var
"manage_edit(data,title,SUBMIT,dtpref_cols,dtpref_rows,REQUEST)"
 dtml-else
  dtml-var "manage_edit(data,title,SUBMIT,dtpref_cols,REQUEST=REQUEST)"
 /dtml-if
dtml-else
 dtml-if "REQUEST.has_key('dtpref_rows')"
  dtml-var
"manage_edit(data,title,SUBMIT,dtpref_rows=dtpref_rows,REQUEST=REQUEST)"
 dtml-else
  dtml-var "manage_edit(data,title,SUBMIT,REQUEST=REQUEST)"
 /dtml-if
/dtml-if
dtml-call "reindex_object()"
dtml-call "RESPONSE.redirect(manage_edycjaTresciForm.absolute_url())"


[EMAIL PROTECTED], [EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
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-12 Thread Henk Schets

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 11, 2001 6:04 PM
Subject: RE: [Zope] Zope vs. java solutions : looking forward ?


 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.

Thanks for your answer !

Actually, I think their problem with python is that they are scared to
invest in learning it and not be able to use it for future projects.  After
reading the documentation of both Enhydra and Zope,  I am pretty sure life
would be easier for me in maintaining and expanding the site if we go for
Zope.  But I really should be able to convince them that we will not be
investing in technology that has less possibilities for the future.  Their
concern is that they want to make sure the site is save for the future.
It would be very nice if I could convince them of trying to sell Zope
solutions, but I guess it is difficult because of the hype Java gets.  I
mean, I am no match to Oracle salespeople ;-)


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


We will never be a huge site because we have a very select public
(musicians).  But we have to provide them with a lot of content (we get
government money for that).  There is no money for full-time developers
(right now I am the only one maintaining and expanding the site), so it is
*very* important that I can quickly add pages and templates and leave the
actual writing of the content stuff to artistic people (they have no
experience in computing whatsoever).  We are using a large database (MySql),
but I understood Zope has no problem with this.

Henk

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

2001-01-12 Thread Jerome Alet

On Thu, 11 Jan 2001, Marcin Kasperski wrote:

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

I've done it.

Look at the new version at http://www.zope.org/Members/jerome/ZCPL

Comments are welcome.

bye,

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

2001-01-12 Thread Chris Withers

Stuart Foster wrote:
 
 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.

Try upgrading to 2.2.5.

if that doesnt' work, file a bug report in the collector:
http://classic.zope.org:8080/Collector/

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] Zope Marketing

2001-01-12 Thread Jonathan \(Listserv Account\)

 I searched on several sites for Zope Marketing products like
 e.g. high quality color PDF or slides, targeting management
 or marketing people.

Not a bad idea. I wouldn't mind having a go at it, can someone at
DigiCool send me a large version of the Z ball logo and the fonts used
by 'Zope'?

Cya
Jonathan


___
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-12 Thread Simon Coles

Actually, I think their problem with python is that they are scared to
invest in learning it and not be able to use it for future projects.

I don't think there's much investment required to "learn Python". Any 
techie worthy of the name should be able to pick it up in a matter of 
hours or at most a couple of days. That's the beauty of Python - it 
is simple, but powerful.

Typically we allocate a day for students (even straight from school) 
to learn enough Python to start working on projects.

I really wouldn't worry about the investment required to learn Python.

The Zope learning curve used to be quite steep, I know there's been 
lots of work done to make it easier, but I haven't taken anyone 
through it recently to know what its like now.


Simon
-- 
- My opinions are my own, NIP's opinions are theirs --
Simon J. Coles Email: [EMAIL PROTECTED]
New Information Paradigms  Work Phone: +44 1344 753703
http://www.nipltd.com/ Work Fax:   +44 1344 753742
=== Life is too precious to take seriously ===

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




Re: [Zope] 2.3.0a2 - missing a file

2001-01-12 Thread John Chandler

 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!

Yeah, I'm taking a look at it at the moment. Looks good, slicker and cleaner UI,
though not sure about the 'Zope banner' frame at the top - maybe it's just may
inate dislike of frames showing through ;-) Anyway, good work everyone.


John


--
 John Chandler  /  Software Developer  /  New Information Paradigms Ltd
   [ Linux in the office, AmigaOS in the home, PalmOS in the pocket ]

 The opinions above aren't those of my company...
   ...but then, they aren't really mine either.

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




Re: [Zope] 2.3.0a2 - missing a file

2001-01-12 Thread Martijn Pieters

On Fri, Jan 12, 2001 at 12:27:47AM -0800, [EMAIL PROTECTED] wrote:
 
 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... 

The problem is fixed for the next release, in CVS. All DTML files were
moved to dtml/ subdirectories, and two references to them were missed and
not fixed. You could also have copied the file from the a2
lib/python/Shared/DC/ZRDB/dtml subdirectory :)

The fix is easy. Open lib/python/Shared/DC/ZRDB/Aquaduct.py and change
line 102 to read:

  dtml_dir=Globals.package_home(globals()) + '/dtml'

If you use the new CatalogPathAwareness base class you need to fix that
too, by changing line 104 to read:

  manage_editCatalogerForm=HTMLFile('dtml/editCatalogerForm', globals())

-- 
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] MySQLDA and images beeing corrupted

2001-01-12 Thread aasmund


I am using Zope 2.3a2, and MySQLDA 1.1.3, with one patch installed (it was
supposed to fix problems with autoincrement fields)

Everything is installed, with no apparent problems.

I would like to store images as BLOBs in a MySQL database (version 3.22)

I am able to store the images in the database, but somehow, along the way,
they become corrupted, and show up in the browser as a corrupted image.
I can, howover, recognize some of the features of the original image. The
top part is mostly intact, and the colours seem right.

The image is retreived from the database like this: method named "image",
with everything *on one line*.

dtml-in hent_bilde
dtml-call "RESPONSE.setHeader('Content-Type', 'image/gif')"
dtml-call "RESPONSE.setHeader('Content-Length', _.len(bildefil))"
dtml-var bildefil
/dtml-in

With "hent-bilde" as follows:

select * from bilder
where
dtml-sqltest id type=int

The URL used is: "/image?id=10"


The image is stored in the database as follows:


insert into bilder 
(bildefil, kilde, kommentar, bildetype) 

values (

dtml-sqlvar "REQUEST['bildefil'].read()" type=string,

dtml-sqlvar kilde type=string,
dtml-sqlvar kommentar type=string,
dtml-sqlvar bildetype type=string
   );



Any ideas?

I feel like I am *so* close to making this work!


smund Hjulstad



___
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 images beeing corrupted

2001-01-12 Thread Max Møller Rasmussen

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Any ideas?
I feel like I am *so* close to making this work!

It sounds like you have some sort of escape problem, with special characters
being handled as text.

Don't you have to treat the image as text when inserting them into mySQL and
then escape special characters? I betcha there is a special function for
that. Try it.

regards Max M

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

2001-01-12 Thread Federico Di Gregorio

 The PoPy module is not installed
 
 So, it looks like I need to install PoPy.  I went to www.mixadlive.com (PoPy
 PeOpLe :) and couldn't find
 it there (I don't speak Italian, so it may be right under my nose).  I've
 searched the
 Zope archives and didn't see any leads there.
 
 Can anyone give me a pointer?

popy and zpopyda moved to sourceforge some weeks ago, try 
http://popy.sourceforge.net

hope this helps,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Put a GNOME on your desktop! [http://www.gnome.org]
  -- brought to you by One Line Spam

___
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 images beeing corrupted

2001-01-12 Thread Phil Harris

Change your dtml to:

dtml-in hent_bilde
  dtml-call "RESPONSE.setHeader('Content-Type', 'image/gif')"
  dtml-call "RESPONSE.setHeader('Content-Length', _.len(bildefil))"
  dtml-return bildefil
/dtml-in

hth

Phil



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 12, 2001 12:18 PM
Subject: [Zope] MySQLDA and images beeing corrupted



 I am using Zope 2.3a2, and MySQLDA 1.1.3, with one patch installed (it was
 supposed to fix problems with autoincrement fields)

 Everything is installed, with no apparent problems.

 I would like to store images as BLOBs in a MySQL database (version 3.22)

 I am able to store the images in the database, but somehow, along the way,
 they become corrupted, and show up in the browser as a corrupted image.
 I can, howover, recognize some of the features of the original image. The
 top part is mostly intact, and the colours seem right.

 The image is retreived from the database like this: method named "image",
 with everything *on one line*.

 dtml-in hent_bilde
 dtml-call "RESPONSE.setHeader('Content-Type', 'image/gif')"
 dtml-call "RESPONSE.setHeader('Content-Length', _.len(bildefil))"
 dtml-var bildefil
 /dtml-in

 With "hent-bilde" as follows:

 select * from bilder
 where
 dtml-sqltest id type=int

 The URL used is: "/image?id=10"


 The image is stored in the database as follows:


 insert into bilder
 (bildefil, kilde, kommentar, bildetype)

 values (

 dtml-sqlvar "REQUEST['bildefil'].read()" type=string,

 dtml-sqlvar kilde type=string,
dtml-sqlvar kommentar type=string,
 dtml-sqlvar bildetype type=string
);



 Any ideas?

 I feel like I am *so* close to making this work!


 smund Hjulstad



 ___
 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] ENC: [Zope] HELP re: MailHost and Hotfix 2000_-12-08

2001-01-12 Thread Paulo Fernandes de Souza Jr


Hello All,

I have the version 2.2.5 installed and, since then, I'm getting the
same error when I try to add a new portal object.
Any help?

Paulo Fernandes
[EMAIL PROTECTED]

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Em nome de
Shane Hathaway
Enviada em: Tera-feira, 2 de Janeiro de 2001 19:47
Para: Norman Khine
Cc: [EMAIL PROTECTED]
Assunto: Re: [Zope] HELP re: MailHost and Hotfix 2000_-12-08


Norman Khine wrote:
 
 Hello,
 I am having difficulty in setting up the MailHost on the Zope Server.
 Every time I try I get an error:
 
 Zope has encountered an error while publishing this resource.
 
 Debugging Notice
 
 Zope has encountered a problem publishing your object.
 Cannot locate object at:
zope/manage_addProduct/MailHost/manage_addMailHost
 
 I am having the same problem as a post I found on the eGroups list

Two solutions:

1) Temporarily move Hotfix_2000-12-08 to a different place on your
system, restart Zope, create the MailHost, move the product back, and
restart again.

2) Upgrade to Zope 2.2.5b1.

Shane

___
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] Zcatalog with Word Documents

2001-01-12 Thread Nuno Goncalves

Hi there !
Is it possible to catalog the content of a word document with Zcatalog ?
If so i would apreciate that someone could tell me how !!

Thanks !
Best regards

Nuno
k


___
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 on using nested dtml-ifdtml-in

2001-01-12 Thread angie tel

I have been created the 4 different sql method,
the first is

sqlSearchcust1:
select * from customer where custid=dtml-sqlvar custid type=string
AND
custname=dtml-sqlvar custname type=string

//This method will be call when i have to enter both exactly similar to 
custid and custname in order to search the record.

second is
sqlSearchcust2:
select * from customer where  custid=""
AND
custname LIKE "%dtml-var custname%"

//This method will be call when i only enter the few words to search the 
custname of the records.

third is
sqlSearchcust3:
select * from customer where custid=dtml-sqlvar custid type=string
AND
custname=""

//This method will be call when i only enter on custid to search the 
records.

If both empty it will link to another URL to display all the customer 
record.

The problems is i'm not sure my dtml in order to control the loop of 
choosing the correct sql in the right situation.
The following is my DTML:-

dtml-if "_["dtml-var custid"]==custid","_["dtml-var 
custname"]==custname"
dtml-in sqlSearchcust1
/dtml-if

dtml-elif "_[""]==custid","_["dtml-var custname"]==custname"
dtml-in sqlSearchcust2
/dtml-if

dtml-elif "_["dtml-var custid"]==custid","_[""]==custname"
dtml-in sqlSearchcust3
/dtml-if


  Please help me on correct the dtml Thank You!






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


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




Re: [Zope] Zcatalog with Word Documents

2001-01-12 Thread Tim Cook

Nuno Goncalves wrote:
 
 Hi there !
 Is it possible to catalog the content of a word document with Zcatalog ?
 If so i would apreciate that someone could tell me how !!

The list archives are a great resource:
http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchView=++Query=MSWord

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"When the government fears the People, that is Liberty. When the
People fear
the Government, that is tyranny." ~~ Thomas Jefferson

___
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] OpenBSD 2.8 woes

2001-01-12 Thread Jan Muenther

Hello folks,

first of all, I've installed Zope on my FreeBSD workstation (from
the ports) and I love it. I can't really do anything productive
yet ;o)), but the potential and power of the program's clear to
me. 

Now, after talking to my boss, I plan to set up the relaunch of
our website to be based on Zope. As OS I'd like to pick OpenBSD,
since it's nice, fast and secure and I generally have an
affection towards xBSDs

However, after installing the Python packages that comes shipped
with the OpenBSD 2.8 CDs, the Zope installation script runs
nicely, but when I try and access the management screen, I only
see LOADS of error messages:

  Zope Error

  Zope has encountered an error while publishing this
resource. 

  Error Type: ParserError
  Error Value: Expected node type 12, got 312.

Could anybody enlighten me??? I don't know Python (yet), so the
tracebacks are not too informative for me ... 

Cheers, 

Jan

-- 
Radio HUNDERT,6 Medien GmbH Berlin
- EDV -
[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] cross-reference tool

2001-01-12 Thread Tim Cook

Ragnar Beer wrote:
 
 Hi Zopistas!
 
 The more variables I have in my external methods the greater the
 danger becomes that a typo slips through my alert eyes ;) and the
 more I wish I had a cross reference tool to check variable occurences.
 
  What are
 you using for debugging Zope stuff?

USERS! vbg

-- Tim Cook --

___
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] Too much meta-type in add list

2001-01-12 Thread FR Chalaoux

Hi,

Since long time ago I have this reflexion.  Now I have installed so many
thing in Zope the add list combobox is huge :

There are too many meta-type item in add list. Is is possible to
organize sublist of meta-type into  products sublist ?

FRC


___
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] way to cleanup form input text?

2001-01-12 Thread sean . upton

Write an external method in python that uses regsub.sub or regsub.gsub
functions.  This allows you to do regular expression substitutions.

regsub.sub does a replace on the first match only
regsub.gsub does a replace on all matches

Ex:

import regsub
def process_a_string(self):
"""Processes a string, where string is passed as self"""
result=regsub.gsub('[ \t][ \t]+', ' ', self)#Filters all
duplicate spaces and 
return result   #tabs down
to one space char

where somestring is our example attribute call this in dtml:

dtml-var expr="process_a_string(somestring)"

is somemethod is a method returning a string:

dtml-var expr="process_a_string(somemethod())"

Sean

-Original Message-
From: Chris Beaumont [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 3:43 PM
To: [EMAIL PROTECTED]
Subject: [Zope] way to cleanup form input text?


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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZCatalog uniqueValuesFor

2001-01-12 Thread aZaZel

Hi,

I have developed a web site for a customer where he add some ZClass 
instances that are zcatalog-aware. Everytime he edits the instances i do 
a reindex_object after the commit of the changes.
I'm using the uniqueValuesFor ()  method do get the values of a field 
index  on some forms but i found a quite strange behaviour. When he adds 
an instance , the value of the  instace's indexed property is added (if 
the value is new)  to the list that uniqueValuesFor 
returnsfine...it's correct . But when he deletes that instance,   
the uniqueValuesFor method still returns that value  even if  it should 
not be on the index. I think there is a problem of  index referesh, but 
i have to do a full reindex to return the right list (e.g. without 
"dead" values). Im using Zope 2.2.0  and the catalog is running with 
subtransaction disabled . I have tried it on Zope 2.2.4 as well with the 
same results. Has anyone a workaround for that problem? I'm doing 
something bad?

please help me!

Alberto


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




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

2001-01-12 Thread Júlio Dinis Silva

Hi,

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

Thanx,
Júlio Dinis Silva

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


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




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

2001-01-12 Thread Dimitris Andrakakis

ethan mindlace fremen [EMAIL PROTECTED] wrote:
 dtml-with files
 dtml-var "_.get_size(_['file01.pdf'])"
 /dtml-with

Thanks ethan ( dieter too). I'm terribly sorry about requesting
a receipt (I had the option on OE forgotten), it will not happen again.

I have tried your suggestion, and indeed it works. Now, how does 
this work when the "file.pdf" is given as a DTML-VAR ?

The situation is, I retrieve the file names from MySQL, so
what I actually have is a dtml-var "path[12:]". "Path" is
something like "06-01-2001/file.pdf". So I try this, but it
won't work (it won't parse, actually).

dtml-with files
   dtml-var "_.get_size(_['dtml-var "path[11:]"'])"
/dtml-with

I guess my question is actually about nested DTML, isn't it ?

Dimitris
http://atlas.central.ntua.gr:8000


___
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-12 Thread josh on

I want to read an zclass instances' properties.  I want to make some dtml
that can be passed the instances' id then give me the properties that I
request.

I was trying dtml-with  and it worked when I plugged the id striaght into
it, but when I tried substituting that with a dynamic varible I couldn't get
it to work.

I have been trying some other approaches that maybe someone could tell me if
I am on the right track or if there is some cumentaion that could help me
out.  I have been going through the list archives for hours!

here is a my latest failed attempt!

dtml-call "REQUEST.set('userid', 979226100)"
dtml-var "_[userid]._getAttribute(hairpart)"

I know that I could use the Catalog, but it seems crazy to have to track
everyvariable property of an object that I want to access.

I am sure that this is a basic problem and would love some help with it.

josh on


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




Re: [Zope] get property of type 'list'

2001-01-12 Thread Jim Washington

Hi, Andrei

I think I have it figured out.  I just submitted something similar to
the Collector about an analogous problem I have been having with 'lines'
properties.

When you create your tokens property, you should make its value a
string, like:

'1 2 3'

not a list: [1, 2, 3]

If your data is in a list and you want to use that list as tokens, you
need to join the list into a string first:

mylist = ['1', '2', '3']
fortokens = string.join(mylist,' ')

That's the python, but you can do it in DTML using _.string.join(.  Be
careful to convert your integers to strings first.

What's happening to you is that the string representation of the list,
"[1, 2, 3]" is getting stored verbatim as your tokens property, and
ZPublisher/Converters.py is then splitting it on the spaces when you ask
for it. Which is how you get that weird '[1,' '2,' '3]'.

-- Jim Washington

Andrei Belitski wrote:
 
 Hi!
 I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
 3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
 instead of '1' '2' '3'
 How can I get Zope to interpret my property like a list not a string or
 whatever else?
 Thank you in advance!
 
 ___
 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 )

-- 

Jim Washington
Center for Assessment, Evaluation and Educational Programming
Department of Teaching and Learning, Virginia Tech

___
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-12 Thread josh on

thanks Steve and Rick,

Unfortunately  both your solutions brought up this error:

Error Type: SystemError
Error Value: bad argument to internal function

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

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

I want to get some properties for a zclass instance after being passed its
id in a variable. In these tests I have been defining the varible in the
code, in the final case it will be passed through the url.

Using the id directly as above works fine, it writes the attribute to the
page.

Thanks for any help,

Josh On


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




[Zope] Zope 2.3.0 a2 and ZClasses

2001-01-12 Thread John Verzani

I am trying to upgrade my zope to see the new features in 2.3.0 a2
(from 2.2.4). I installed, copied my previous /var /Extensions start
stop and access files and then started up zope. All works well
*except* the few zClasses that I had written now do not work. They
have survived previous upgrades. Can anyone point me in the right
direction? I am unclear how to debug this as there are no apparent
error messages.

Thanks,

John
-- 

.  John Verzani  mailto:[EMAIL PROTECTED]  .
.  Dept. of Mathematics  http://www.math.csi.cuny.edu/~verzani .
.  City University of New York tel: (718) 982-3623 .
.  College of Staten Islandfax: (718) 982-3631 .
.  Staten Island, NY 10314 .


___
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-12 Thread josh on


I got it to work thanks for the help!

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

it was the cobination of no quotes around the the userid AND setting the
variable as a string not an integer!

arrrggghh... thank godness, now I can have lunch.

josh on


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




[Zope] Potential BUG manage_addProperty(was: [Zope] get property of type 'list') (was: [Zope] get property of type 'list')

2001-01-12 Thread Dieter Maurer

Hi Andrei

Andrei Belitski writes:
  ... manage_addProperties(id='tok', type='tokens', value=[1,2,3,4]) ...
  ...
  dtml-tok;
  yields
  ['[1,', '2,', '3,', '4]'] 
  ...

I now understand what happens:

  You interpret "type='tokens'" in a way, that
  the property value is a list.
  And indeed, when you access such a property, you
  will get a list.

  However, "manage_addProperty" expects the value for
  a property with "type='tokens'" to be a *STRING*,
  more precisely, a string of whitespace separated tokens.
  It splits this string at whitespace to obtain the list
  (this will be a list of *STRING*, never integers).

  You do not meet this expectation.
  What "manage_addProperty" does is to convert your
  list into a string (this gives '[1, 2, 3, 4]')
  and then splits this string at whitespace.


This might be considered a bug, as it is inconsistent
with "PropertyManager._updateProperty" which only
converts, if the value has type string.

I am not sure, however. If "manage_addProperty"
would behave in the same way as "_updateProperty",
then you could store your list of integers.
However, the first time that you change *ANY*
property of this object (through the management interface),
your property would be converted to "tokens" for presentation
and converted into a list of *STRING*s during
"manage_editProperties".

Nevertheless, I do not see a reason for "manage_addProperty"
and "_updateProperty" to behave differently.


What you can do? Difficult to say!
Currently, you can not safely use lists of integers as
property values. They can very easily be converted into
lists of strings.
Can you live with lists of strings?


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

2001-01-12 Thread Dave Woolston

This is curious to me - I tried this on my Linux platform from mysql and it
doesn't work.
Perhaps I misunderstand what you are trying to do:

SELECT COUNT(*) FROM mytable - returns a number - so I really don't expect
it to work.

I have a table - shop and a column in that table - article:

mysql select count(*) from show group by article;
ERROR 1064: You have an error in your SQL syntax near 'show group by
article' at line 1

Sorry if I misunderstand what you are trying to do -

=
Dave Woolston   [EMAIL PROTECTED]
Digital Creations  www.digicool.com
(716) 262-4715


 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] FTP Woes and no answer

2001-01-12 Thread Jon Prettyman

Try using PASSIVE mode for your FTP client.  Did someone perchance put
a firewall up between you and your server?

-jon

"J. Atwood" [EMAIL PROTECTED] writes:

 I have FTP'd into Zope before. No problems but all of a sudden it
 seems like neither I nor the people I am working with can FTP in with
 either a manager or superuser account. I have tried to change the port
 and all sorts of other things but on a few different installations
 with different clients from different machines and OSes it just does
 list any of the files in the directory.
 
 
 Has anyone experienced this? Know a work around?
 
 J
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

___
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] upgrading from 2.1.x to 2.2.5+ (on Winxx)

2001-01-12 Thread Bill Seitz

Was there ever a binary to upgrade from 2.1.x to 2.2.0
or the equivalent? Could it be rescued? Now there
appears to be no upgrader, and the manual upgrading
process described in
http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO
doesn't sound fun (esp. as it's written for Unix).

I have to do this on a few different machines (Win98
laptop, Win2K desktops/servers), so time/error savings
would be nice...


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

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




Re: [Zope] Zope 2.3.0 a2 and ZClasses

2001-01-12 Thread Chris McDonough

Can you explain how they don't work?  What are they supposed
to do and what do they do now?

On 12 Jan 2001 16:29:08 -0500
 John Verzani [EMAIL PROTECTED] wrote:
 I am trying to upgrade my zope to see the new features in
 2.3.0 a2
 (from 2.2.4). I installed, copied my previous /var
 /Extensions start
 stop and access files and then started up zope. All works
 well
 *except* the few zClasses that I had written now do not
 work. They
 have survived previous upgrades. Can anyone point me in
 the right
 direction? I am unclear how to debug this as there are no
 apparent
 error messages.
 
 Thanks,
 
 John
 -- 
 
 .  John Verzani
 mailto:[EMAIL PROTECTED]  .
 .  Dept. of Mathematics
 http://www.math.csi.cuny.edu/~verzani .
 .  City University of New York tel: (718)
 982-3623 .
 .  College of Staten Islandfax: (718)
 982-3631 .
 .  Staten Island, NY 10314
 .
 
 
 ___
 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] whitespace normalization (was: [Zope] way to cleanup form input text?)

2001-01-12 Thread Dieter Maurer

Chris Beaumont writes:
  ... whitespace normalization ...
An idiom for whitespace normalization is:

   "_.string.join(_.string.split(text_to_be_normalized))"

It will replace any sequences of consecutive whitespace
characters by a single space.

You can not use it in all cases, as sometimes
newlines are semantically important.
The above idiom would convert them into space.


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

2001-01-12 Thread Dieter Maurer

josh on writes:
  dtml-with 979226100
This interprets "979226100" as a name!
  dtml-var attribute
  /dtml-with
  
  This doesn't:
  dtml-call "REQUEST.set('userid', 979226100)"
This interprets "979226100" as an integer.

You could use
   dtml-call "REQUEST.set('userid', _.getitem('979226100'))"


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-12 Thread Dieter Maurer

Chris McDonough writes:
  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.
It would bother me a lot, if you were right :-)

Fortunately, you are not completely right.

What really happens is the following:

  when ZPublisher has located the object addressed by
  the request URL, it starts going back its way
  along PARENTS to find a UserFolder that can
  authenticate a user with sufficient permissions
  to call the object.

  If the object is unprotected, then no permissions
  are required. In this case, the top level
  UserFolder will return "Anonymous",
  if it is reached and it cannot authenticate the
  user.
  Therefore, an unprotected object can be
  called by Anonymous and in this case,
  "hasRole" is that of "Anonymous", as Chris
  reported.

  However, if previously a protected object
  has been accessed, then your browser may (and usually
  will) send Authentication information with
  all following requests.
  A UserFolder will use this information (if present)
  to authenticate the user, even if no permissions
  are necessary for object access.
  If successful, AUTHENTICATED_USER will not
  be "Anonymous" even though the accessed object
  is unprotected.


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] ZCatalog uniqueValuesFor

2001-01-12 Thread Dieter Maurer

aZaZel writes:
   ... "uniqueValuesFor" not updated after modification ...
Almost surely a small bug in ZCatalog.

A field index is implemented as a mapping from values to
lists of documents.
"uniqueValuesFor" returns this mapping's "keys()".

When the field value of a document changes, this
document is removed from the corresponding list.
Obviously, a test is missing whether the result
is the empty list. If it is, the key should be deleted.

Probably, you can fix this yourself.
The code is in "SearchIndex.UnIndex".

If you fixed it, file a bug with patch report 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] ZOPE : SQL methods

2001-01-12 Thread Dieter Maurer

K H Subrahmanyan writes:
I am using zope and gadfly for my project.
  but while using the SQL methods, I get the error if I use the "like" option.
  
  E.g..   select  *
  from  table
  where
   Emp_name   like   "*rama*"
  
  I will get the following error.
Maybe, you should look at an SQL book or other SQL description...

 1. strings are surrounded by '...' not "..."
 2. the "match sequence" wildcard is "%" not "*"


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] How do I get the size of an item ?

2001-01-12 Thread Dieter Maurer

Dimitris Andrakakis writes:
 dtml-var "_.get_size(_['dtml-var "path[11:]"'])"
This is an FAQ (as you can imagine).

The list has a searchable archive, where you can find anwsers
to FAQ's.
I think, you will also find a compiled FAQ list via the
Zope documentation portal (zdp.zope.org).

This time, still , I will answer your question:

  if you would like to use "dtml-var ..." inside
  a Python expression, you can simply omit it
  (just use the "...") in most cases.
  It is more safe, however, to use "_[...]" instead,
  as this gives the same result.

  In your case (I suppose "path" is a string giving the filename
  (without path component) that can access the file from the
  current context!),
  you could probably use:
  dtml-var "_.get_size(_[path[11:]])"

  If "path[11:]" contains pathname component, you probably
  will need to use "restrictedTraverse" (-- Online API reference).


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] Problem on using nested dtml-ifdtml-in

2001-01-12 Thread Dieter Maurer

angie tel writes:
  ...
  dtml-if ...
dtml-in sql1
  /dtml-if
As you recognized DTML tags must be *properly* nested...

You can do:

  dtml-if ...
dtml-call "REQUEST.set(sql,sql1)"
  /dtml-if
  
  dtml-in sql

  /dtml-in

This way, you get a properly nested DTML structure.


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] How do I get the size of an item ?

2001-01-12 Thread Dimitris Andrakakis

Daniel wrote:
 You don't need the dtml-var inside another dtml-var i.e once you are in
 dtml you are in it. try something like this

 dtml-with files
 dtml-var "_.get_size(_['path[11:]'])"
  /dtml-with

Your advice was truly enlightning ! It didn't work exactly like this,
but this one did exactly as shown (remeber path is like
"06-01-2001/file.pdf"):

dtml-with files
  dtml-with "_[path[:10]]" --- this gets me into the "06-01-2001" dir
dtml-with "_[path[11:]]" --- this gives me the variable space for
file.pdf
  dtml-var size
/dtml-with
  /dtml-with
/dtml-with

I'll write a HOW-TO for this in my page, I think it's worth it. Thanks
for your help all of your guys !

Dimitris
http://atlas.central.ntua.gr:8000


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

2001-01-12 Thread Andy Dustman

On Thu, 11 Jan 2001, Martin Fekete wrote:

 sombody compiled MySQLdb under WIN32 ?

Somebody has. Look for a link at:

http://dustman.net/andy/python/MySQLdb/0.3.0 

-- 
andy dustman  |  programmer  |  comstar.net is part of the Globix network
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage, 
come no further, for death awaits you all, with nasty, big, pointy teeth!"


___
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-12 Thread Andy Dustman

On Wed, 10 Jan 2001 [EMAIL PROTECTED] wrote:

 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

You might also try:

http://www.zope.org/Members/adustman

for MySQLdb-0.3.0 and ZMySQLDA-2.0.1, which includes a transactional DA
for MySQL servers with BDB tables (3.23.30 recommended).

-- 
andy dustman  |  programmer  |  comstar.net is part of the Globix network
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage, 
come no further, for death awaits you all, with nasty, big, pointy teeth!"


___
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] NameError: Zope2.3a2 and LoginManager-0-8-8b1

2001-01-12 Thread Janko Hauser

Hello, I try to install LoginManager on a new Zope2.3. I have made the
before mentioned changes regarding Super and the product shows up fine
in the Product folder.

But I can not add a LoginManager in a normal folder with the attached
error message. I have seen, others have already LoginManager
running. Any ideas, where I can look for a clue?

TIA,
__Janko


Error Type: NameError
Error Value: path


Traceback (innermost last):
  File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line
  222, in publish_module
  File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line
  187, in publish
  File /home/zope/LOCAL/zope/lib/python/Zope/__init__.py, line 221, in
  zpublisher_exception_hook
  File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line
  171, in publish
  File /home/zope/LOCAL/zope/lib/python/ZPublisher/mapply.py, line
  160, in mapply
(Object: addLoginManager)
  File /home/zope/LOCAL/zope/lib/python/ZPublisher/Publish.py, line
  112, in call_object
(Object: addLoginManager)
  File /home/zope/LOCAL/zope/lib/python/App/special_dtml.py, line 127,
  in __call__
(Object: addLoginManager)
  File /home/zope/LOCAL/zope/lib/python/DocumentTemplate/DT_String.py,
  line 538, in __call__
(Object: addLoginManager)
  File /home/zope/LOCAL/zope/lib/python/DocumentTemplate/DT_In.py,
  line 646, in renderwob
(Object: UserSourcesMetaTypes(this()))
  File /home/zope/LOCAL/zope/lib/python/DocumentTemplate/DT_Util.py,
  line 330, in eval
(Object: UserSourcesMetaTypes(this()))
(Info: UserSourcesMetaTypes)
  File /home/zope/LOCAL/zope/lib/python/ZPublisher/HTTPRequest.py,
  line 802, in __getitem__
NameError: (see above)


___
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-12 Thread Ron Bickers

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Dieter Maurer
 Sent: Friday, January 12, 2001 5:00 PM
 To: Chris McDonough
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] hasRole bug or feature in 2.2.?



   However, if previously a protected object
   has been accessed, then your browser may (and usually
   will) send Authentication information with
   all following requests.
   A UserFolder will use this information (if present)
   to authenticate the user, even if no permissions
   are necessary for object access.
   If successful, AUTHENTICATED_USER will not
   be "Anonymous" even though the accessed object
   is unprotected.

I think I understand, but correct me if I'm wrong.  The problem is that my
browser is not even *sending* the authentication information to the other
parts of the site until I first access a protected document at the root
level.  That is, the browser only continues to send auth info on levels at
and below where I've requested a protected document.  If that potected
document is at the root level, I get the auth info everywhere in the site.
Does this also mean that even after authenticating myself on one part of the
site, accessing a protected document on another part of the site may result
in an "unauthroized" response from Zope, to which my browser kindly responds
for me without me realizing it?

If this is true, it explains clearly Zope's behavior.  It's really a browser
"feature" and not a Zope issue at all.

Given that, is it fair to say that I can never really be sure that an
authenticated user (somewhere else on the site) accessing an unprotected
document has a given role?  Or would it be safe to assume that after
accessing a root protected document, hasRole() will return the "right"
answer anywhere in the site?

If I can't safely assume any of the above, would I be better off using a
session product to track a user after log in so I can determine their roles
from an unprotected document?  Any other ways?

My goal, BTW, is to avoid showing certain content on an otherwise public
page unless the authenticated user has the Member role.  If there is a
cleaner way to do this, I'm all ears.

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] Problems with RESPONSE.redirect + SiteAccess

2001-01-12 Thread Andrew Kenneth Milton

I have a weird problem with SiteAccess.

I have a Python Product, that has a method;

def manage_ProductsRedirect(self, RESPONSE, URL2, REQUEST={}):
''' Redirect to the Product Module '''

print URL2
RESPONSE.redirect(URL2+'/Packages')

This code works when simply using the product, adding a bogus empty
return has no effect. print URL2 is printing the correct BASE that I want to
redirect to.

Once I add a SiteRoot, everything else works fine, except the redirect,
it just spins for an eternity before timing out.

This is a Zope-2.2.4 install under FreeBSD.

Anyone have any ideas?
-- 
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] How to call 'inheritedAttribute' in ZClass dtml method

2001-01-12 Thread Dirksen

'testb' subclasses 'testa', and wants to call 'testa.do()' in one of its dtml method. I
found in zope's source codes that zope tackles this with
"testb.inheritedAttribute('do')()". Yet this doesn't work in zclass dtml method. The
system complains not knowing 'testb'. How to refer to its zclass name? Any other ways 
for
a zclass to call its base class's method? Please help!

Dirksen

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[Zope] Has MailHost API changed?

2001-01-12 Thread Timothy Wilson

Hi everyone,

I had a perfectly functioning MailHost object until recently. Site visitors
could email feedback to me from the Web page with no trouble. I can't pin it
down exactly, but the breakage seems to coincide with a upgrade to 2.2.4 a
while ago. The problem also exists in 2.3.0a2. Here's the traceback I get:

!--
Traceback (innermost last):
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /var/lib/zope/2.3.0a2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: sendfeedback)
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: sendfeedback)
  File /var/lib/zope/2.3.0a2/lib/python/OFS/DTMLDocument.py, line 176, in
__call__
(Object: sendfeedback)
  File /var/lib/zope/2.3.0a2/lib/python/DocumentTemplate/DT_String.py, line
538, in __call__
(Object: sendfeedback)
  File /var/lib/zope/2.3.0a2/lib/python/Products/MailHost/SendMailTag.py,
line 182, in render
(Object: MailHost)
KeyError: (see above)

--

Here's the method I use to send email:

dtml-var standard_html_header

dtml-sendmail mailhost="MailHost" 
To: Feedback Recipient [EMAIL PROTECTED] 
From: dtml-var visitor_email 
Subject: Feedback from the web 

Feedback from : dtml-var visitor_name
Comments:
dtml-var comments 
/dtml-sendmail 

table
tr
 dtml-var district_links
 td valign=top
H3Thank you for your input!/H3

Your message has been sent.
BRBR
CENTERa href=http://www.isd197.k12.mn.us/Click here to return to the
home page./a/CENTER

 /td
/tr
/table
dtml-var standard_html_footer

Anybody see a problem?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/



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




[Zope] Newbie question: HTTP variables

2001-01-12 Thread Dean Deb Ekstrand

I'm trying to figure out Zope (on a time crunch, too), and I'm wondering how
to do something.  How can I access HTTP variables in my DTML code?
Specifically, I want to return code specific to the user's browser.  I know
that HTTP has provisions for determing browser version, are those accessible
in DTML and how?  If they are not accessible in DTML, is there a workaround
(without oodles of javascript)?

Another quick question:  I see that Zope 2.3 will have "Script" objects.
What's the closest I can come in Zope 2.2.5?

Thanks,
Michael


___
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] [Skinscript] unable to update property

2001-01-12 Thread Dirksen

Hi Steve,

I ran into a very tricky problem when developing a site with emarket. Here is the
structure of my site:

root
 |--acl_users(Membership product)
 |--emarket
 |--shoppers

The acl_users is an instance of Membership product, which is as a specialist as 
shoppers,
and they both have a WebIC_MemberClass zclass as their rack object class. The 
difference
is that, acl_users stores WebIC_MemberClass persistently, while shoppers just reflects
that storage. Here is the skinscript for shopper's rack:

WITH acl_users.getItem(self.id) COMPUTE
 oo=RESULT

WITH self.oo COMPUTE
 email,
 transCount

WHEN OBJECT CHANGED STORE transCount USING 
 self.oo.propertysheets.webic.manage_changeProperties(transCount=self.transCount)

When emarket trying to increment a shopper's transCount, I ran into a
"ZODB.POSException.ConflictError". The following is the traceback:
Traceback (innermost last):
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 199, in publish
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 195, in publish
  File C:\WebSite\lib\python\Zope\__init__.py, line 188, in zpublisher_exception_hook
(Object: ProviderContainer)
  File C:\WebSite\lib\python\ZPublisher\Publish.py, line 175, in publish
  File C:\WebSite\lib\python\Zope\__init__.py, line 235, in commit
  File C:\WebSite\lib\python\ZODB\Transaction.py, line 251, in commit
  File C:\WebSite\lib\python\ZODB\Connection.py, line 351, in commit
(Info: (('*hdVMVCvgk/wIgJaYf/nkEA==', 'WebIC_MemberClass'),
'\000\000\000\000\000\000d\357', ''))
  File C:\WebSite\lib\python\ZODB\FileStorage.py, line 664, in store
(Object: C:\WebSite/var/Data.fs)
ConflictError: ('\0039\323C4=\266\210', '\0039\323B\375\036\270U')

Is it something wrong with my skinscript?

cheers
Dirksen



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




[Zope] Zope 2.3 and manage_page_style.css unauthorized

2001-01-12 Thread Ron Bickers

Playing with 2.3.0a2, I discovered that if I log in to the management screen
with a Manager user that is not defined in the root folder, I get an
unauthorized error when accessing /manage_page_style.css (401 from detail
log).  If the Manager is defined in the root, everything works fine.

A bug?  How can I fix it?
___

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 )