Re: [Zope-dev] Server Side Trojan Issue really dead?

2000-08-07 Thread Steve Alexander

Steve Alexander wrote:
 
 When I write a product that allows users to edit executable content, I
 have an extra responsibility to collaborate with the new security model.
 
 I reckon that it is up to the ZWiki product to change ownership
 appropriately if the page is edited. The zope security system can't
 possibly know about what constitutes editing executable content and what
 does not. Only a product author can know that.
 
 As a general princliple, executable content should never be editable by
 users with lower permissions than the owner of the content. This is the
 same principle system administrators use on a Unix system to know never
 to have a root-owned file that is executable by root, and also writable
 by others.
 
 The problem with applying this principle in Zope is that the roles and
 permissions system is very expressive, and it is complex to know when
 one user has lower permissions than another.

However... the zope security system could help with this. Here's an ill
thought out idea for your consideration :-)

Have a function that takes two sets of permissions, and returns the
intersection of these sets. Then, use some sort of local permissions
combination to make the wiki page that's been edited have the resultant
lowest-common-denominator permissions, even for the owner.

Make this kind of thing a standard feature of the security system, and
write some guidelines to help out authors of products that allow editing
content that is also executable.

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

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




[Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Shane Hathaway

Chris Withers wrote:
 Will there be any access to the method/object that is being overridden
 from inside the one overriding it? Something like:
 
   'self.__class__.my_method("blah")'

Depends on whether the original method comes from a ZClass or product. 
If so, yes.  But if it's a regular object that's marked as replaceable
and it's replaced, the original will vanish.

 ...but also accessible from DTML?

No.  DTML will never have access to the replaced method.

 Also, will folders have replaceableness for their contents? (so you
 could, for example, have a root index_html which could not be
 over-ridden lower down?

I don't understand your first question, but the answer to the second is
"yes" regardless. :-)  You would set index_html.__replaceable__ =
ObjectManager.UNIQUE .

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] Server Side Trojan Issue really dead?

2000-08-07 Thread KevinL

 Steve Alexander wrote:
 However... the zope security system could help with this. Here's an ill
 thought out idea for your consideration :-)
 
 Have a function that takes two sets of permissions, and returns the
 intersection of these sets. Then, use some sort of local permissions
 combination to make the wiki page that's been edited have the resultant
 lowest-common-denominator permissions, even for the owner.

Correct me if I'm wrong, but wouldn't this have the same problem?  Person of 
high access makes zwiki, person of low access adds evil function to it, person 
of high access views it - unless you're tracking "smallest set of privileges 
held by anyone editing this page" at all times, you're going to intersect 
owner with creator and still allow editor to trojan.

Is that the essential problem, or should I be quiet and go away?  (or both? ;)

KevinL


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




Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Shane Hathaway

Chris Withers wrote:
 
 Shane Hathaway wrote:
   Will there be any access to the method/object that is being overridden
   from inside the one overriding it? Something like:
  
 'self.__class__.my_method("blah")'
 
  Depends on whether the original method comes from a ZClass or product.
  If so, yes.  But if it's a regular object that's marked as replaceable
  and it's replaced, the original will vanish.
 
 Will it re-appear when the replacement is deleted?
 
 That could be confusing...

No, and I think it's really not confusing, since it's quite a strange
and rare thing to set __replaceable__=ObjectManager.REPLACEABLE on a
normal instance.  :-/

Think of it more like Python instances vs. classes.  Setting
__replaceable__=REPLACEABLE on a ZClass method is like setting a class
attribute in Python, then overriding it in an instance is like setting
an instance attribute.  If you set __replaceable__=REPLACEABLE on an
instance attribute, then replace it, it's like setting "foo.a = bar"
then "foo.a = boo".  The reference to "bar" disappears without any
implicit recovery.

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] Acquisition Confusion :S

2000-08-07 Thread Chris Withers

Evan Simpson wrote:
  So, is the working below now correct? (I feel like I'm back in School
  doing maths ;-)
 
 Yes.

Cool :-)

  Where is the order of simplification defined?
 
 In the Acquisition machinery, which simplifies upwards because that's the
 way it constructs the wrappers.

okay...

  Who decided these rules and why are they like they are?
 
 They follow directly from the way the Acquisition machinery works, which was
 set up by Jim Fulton.

Who would be best to ask why it was set up the way it is?

I'm sure there are very good reasons for it but the search order in all
but the simple cases is very confusing and not as useful as it could be.

How much more work would it be to implement the following algorithm,
regardless of how the actual containment is?

A.B.C.D

Look for D in C,
if it's not there, look in B
if it's not there, look in A

I can see it gets hairy in how you check whether B is in A and whether C
is in B or A, but could the wizardry not be re-arranged to give this
effect?

Steve Alexander said he was going to have a think, but I haven't heard
anything since he mentioned it...

Oh well,

It doesn't make Zope any less cool but does make it harder to do
_really_ cool stuff with it...

Any ideas?

cheers,

Chris

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




Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Chris Withers

Shane Hathaway wrote:
  Will it re-appear when the replacement is deleted?
 
  That could be confusing...
 
 No, and I think it's really not confusing, since it's quite a strange
 and rare thing to set __replaceable__=ObjectManager.REPLACEABLE on a
 normal instance.  :-/

Very true :-)

 Think of it more like Python instances vs. classes.  Setting
 __replaceable__=REPLACEABLE on a ZClass method is like setting a class
 attribute in Python, then overriding it in an instance is like setting
 an instance attribute.  If you set __replaceable__=REPLACEABLE on an
 instance attribute, then replace it, it's like setting "foo.a = bar"
 then "foo.a = boo".  The reference to "bar" disappears without any
 implicit recovery.

Hurm, that is a shame...
What happens if you override a method (say Squishdot.render) and then
delete your overriding method?
Does it depend on whether you're talking about python products or
ZClasses?

cheers,

Chris

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




RE: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Brian Lloyd

 
 So, how long before this becomes a project and gets finished?
 
 2.2.1 would be great :-))
 
 thanke for the great work,
 
 Chris

Note that third-dot releases are bug-fix only. New features 
go into second-dot releases.

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



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




Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Steve Alexander

Brian Lloyd wrote:
 
 
  So, how long before this becomes a project and gets finished?
 
  2.2.1 would be great :-))
 
  thanke for the great work,
 
  Chris
 
 Note that third-dot releases are bug-fix only. New features
 go into second-dot releases.

I agree with this policy in principle.

However, because various nice things in PTK and projects using ZPatterns
depend on the replaceable property, I can see quite a lots of patched
2.2.x installations until the 2.3.x series is released :-/

I wonder what other features are planned for 2.3...

--
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] Re: Replaceable Property question

2000-08-07 Thread Shane Hathaway

Chris Withers wrote:
 
 Brian Lloyd wrote:
 
  
   So, how long before this becomes a project and gets finished?
  
   2.2.1 would be great :-))
  
   thanke for the great work,
  
   Chris
 
  Note that third-dot releases are bug-fix only. New features
  go into second-dot releases.
 
 D'oh ;-)
 
 How long is 2.3 likely to be?
 
 IIUC, PTK is going to live off this project a lot...

Actually, PTK will work without it but it won't be secure.  People will
be able to add "portal_xxx" objects without any protection.  This
*should* be okay for now, since we're primarily in development mode,
but Brian and Jim have stated before that should the need arise,
releasing a second-dot version can happen at any time.

OTOH __replaceable__ support has just been checked into the trunk and
if you're working from the CVS repository, just do a "cvs up"!

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] Acquisition Confusion :S

2000-08-07 Thread Steve Alexander

Chris Withers wrote:
 
 Steve Alexander said he was going to have a think, but I haven't heard
 anything since he mentioned it...

I'll have to start running a Kibo-bot soon :-)

I've got as far as defining the difference between the two acquisition
behaviours.

Warning: The following goes into some detail about acquisition algebras.
There are lots of nested parentheses with letters in them.


Let's say we have the following object tree. The upper-case letters
represent names, not identity. The lower-case letters represent
identity.

/
|-Aa
| |-B  b
|
|-Xx
| |-P  p1
| |-Y  y
|
|-Pp0

Let's consider the path X.Y.A.B.P in both types of acquisition.

Containment first:

  Start at the root.
  Look for X. Find X at x.
  Look for Y in x. Find Y at y.
  Look for A in y.
Not found, so look for A in x.
Not found, so look for A in /. Found as a.
  Look for B in a. Found as b.
  Look for P in b.
Not found, so look for P in a.
Not found, so look for P in /. Found as p0.

Context first

  Start at the root.
  Look for X. Find X at x.
  Look for Y in x. Find Y at y.
  Look for A in y.
Not found, so look for A in x.
Not found, so look for A in /. Found as a.
  Look for B in a. Found as b.
  Look for P in b.
Not found, so look for P in a.
Not found, so look for P in y.
Not found, so look for P in x. Found as p1.


The acquisition algebra is based on the "of" operator: (object of
context).

The difference in algebra is that with containment-first, as you build
up the expression, you add to it using the last object you searched as
the context part of the expression.

With conext-first, you need to add the whole expression so far as the
context part of the expression.

Containment first:

   Start at the root.

(X of /)   
   Look for X. Find X at x.

(Y of X) of (X of /)
   Look for Y in x. Find Y at y.

(A of /) of ((Y of X) of (X of /))
   Look for A in y.
 Not found, so look for A in x.
 Not found, so look for A in /. Found as a.

(B of A) of ((A of /) of ((Y of X) of (X of /)))
   Look for B in a. Found as b.

(P of /) of ((B of A) of ((A of /) of ((Y of X) of (X of /
   Look for P in b.
 Not found, so look for P in a.
 Not found, so look for P in /. Found as p0.


Context first

  Start at the root.

(X of /)
  Look for X. Find X at x.

(Y of (X of /)) of (X of /)
  Look for Y in x. Find Y at y.

(A of (Y of (X of /))) of ((Y of (X of /)) of (X of /))
  Look for A in y.
Not found, so look for A in x.
Not found, so look for A in /. Found as a.

(B of (A of (Y of (X of /))) of ((Y of (X of /)) of (X of /)))
of ((A of (Y of (X of /))) of ((Y of (X of /)) of (X of /)))
  Look for B in a. Found as b.

(P of (B of (A of (Y of (X of /))) of ((Y of (X of /)) of (X of /)))
of ((A of (Y of (X of /))) of ((Y of (X of /)) of (X of /
of (B of (A of (Y of (X of /))) of ((Y of (X of /)) of (X of
/)))
of ((A of (Y of (X of /))) of ((Y of (X of /)) of (X of /)))
  Look for P in b.
Not found, so look for P in a.
Not found, so look for P in y.
Not found, so look for P in x. Found as p1.


I just put that in to give Chris a fright :-)

You can see from this that the algorithm is more complex.

Acrually, it can be rather simplified, because what I've written out in
full above contains many internal repetitions. In C terms, these become
pointers to the same acquisition wrapper.

So the following...

(P of (B of (A of (Y of (X of /))) of ((Y of (X of /)) of (X of /)))
of ((A of (Y of (X of /))) of ((Y of (X of /)) of (X of /
of (B of (A of (Y of (X of /))) of ((Y of (X of /)) of (X of
/)))
of ((A of (Y of (X of /))) of ((Y of (X of /)) of (X of /)))

...is really this:

((P of q) of q)
where q is ((B of r) of r)
where r is ((A of s) of s)
where s is ((Y of t) of t)
where t is (X of /)


I also wonder whether we need the second part of all the context-first
expansions above.
That is, whether (P of q) will do, instead of ((P of q) of q).

To see if the simplification works, let's take the example of acquiring
X.Y in the tree:

  /
  |-X
|-Y

Containment first:

  (X of /)
  (Y of X) of (X of /)

Simplified Context first:

  (X of /)
  (Y of (X of /))


Applying this simplification to my larger example above, we get for the
following:

Simplified Context first

  Start at the root.

(X of /)
  Look for X. Find X at x.

(Y of (X of /))
  Look for Y in x. Find Y at y.

(A of (Y of (X of /)))
  Look for A in y.
Not found, so look for A in x.
Not found, so look for A in /. Found as a.

(B of (A of (Y of (X of /)))
  Look for B in a. Found as b.

(P of (B of (A of (Y of (X of /))) 
  Look for P in b.
Not found, so look for P in a.
Not found, so look for P in y.
Not found, so look for P in x. Found as p1.


The search just proceeds as you read from left to right.
There are no 

Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Chris Withers

Shane Hathaway wrote:
 but Brian and Jim have stated before that should the need arise,
 releasing a second-dot version can happen at any time.

That sounds promising :-)

 OTOH __replaceable__ support has just been checked into the trunk and
 if you're working from the CVS repository, just do a "cvs up"!

Cool...

I'd just like to say a big thanks again to Shane and Phil for making it
happen :-))

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] Python Method question

2000-08-07 Thread entropia

I hava a question regards Python Method: How can I
import a Python Method from a Product module?


___
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] (OT) Re: [Zope] sybase - hmmm

2000-08-07 Thread Bill Anderson

Andrew Kenneth Milton wrote:
 
 +[ Dr. Ross Lazarus ]-
 | I know that zope runs on everything else, but how do we reconcile the
 | DC/Sybase partnership announced late last year
 
 [ snip... ]
 
 | We're becoming a sybase/zope/linux dependent outfit; to whom should I
 | email my concerns - or is it time to move to another SQL backend?
 
 They picked the wrong free UNIX platform. Linux has a whole lot of
 machines installed, but, not too many of them would be deployed in an
 Enterprise environment, where people would be happy to pay money for
 licenses.

Whilst I would ordinarily agree with some ofthis, in the case of Sybase, I have to 
disagree. I work primarily at a
company called Hewlett Packard, not exactly a small company. We have service contracts 
with Sybase on NT and HP-UX
(suprise). After over six months of trying to get sybase to work with us on getting 
the appropriate libraries to us to
compile the SybaseDA on HP-UX, and then being told it must be faulty programming on 
the part of whomever developed the
adapter, we gave up.

This experience has left a real bad taste in my mouth regarding sybase.

The good side of the coin, is that we dumped Sybase for the, and moved to straight 
ZODB. :)


The claim that Linux is not deployed in Enterprise environments is uninformed at best. 
The most recent announcement came
from Google, which claims 4000+ Linux servers. Clearly an enterpise environment. 
( http://www.internetwk.com/lead/lead060100.htm )

HP is migrating many, many Enterprise Servers from NT and even HPUX to Linux boxes, in 
addition to porting Linux to
their hardware (PA-RISC), and their tools to Linux. I am personally aware of over 600 
machines deployed in that
particular enterprise, and the number literally grows weekly.

And, of course, there is IBM.

 An OS heavily promoted by one specific individual who doesn't really believe
 in commercial software doesn't seem like the ultimate platform to aim
 high-priced internet application software at.

While I don't mean any offense, your characterization here is both unwarranted and 
unfounded. ESR and Linus (not sure
exactly whom you refer to) both believe in commercial software just fine. 

In addition, if you look at the largest promoters of Linux, you will not find any one 
individual. Rather, you will find
an array of companies, of all sizes; from ISP's to ol' Big Blue. IBM, for example, is 
in the process of porting most
everything they have to Linux. And they do it for commercial reasons.

 
 I think you'll find that Sybase the DB will still be released for Linux,
 just not their Internet Application Suite, which is a different kettle
 of fish.

IIRC, this is accurate.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Where to find ducument of ZODB

2000-08-07 Thread iap_y2fun.com




Is there anyone can tell me how to "alter table" in 
Zope?
and where to find a tutorial or manualof ZODB.
I am new to POS ,
Is there any stuff that will give me a senerio 
of
working with POS, such as ZODB.

Thanks a lot.

Iap, Singaun





[Zope] is this possible?

2000-08-07 Thread boogie

is it possible to use zope to run a demo program written in c++, online
in a html environment? If it is possible, than how do you do this?

thanks, boogie.

[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] Installing ZOPE on a Digital platform

2000-08-07 Thread Alexandru Cucereanu

Dear Sirs,
I would like to know if it is possible to install and to use
ZOPE on 
a DEC 2100 A 500 MPR system.
The operating system is Compaq(Digital) TrueUnix 4.04E the
RDBMS is
Oracle 8.05 and we use Apache 1.3.3.
Please indicate me an Internet address(URL) to download
theproduct and the documentation.
Thank you in advance for your kind assistance.
Alexandru Cucereanu

___
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] FTP into Zope.org?

2000-08-07 Thread Chris Withers

Hi,

Are the FTP ports into Zope for www.zope.org and dev.zope.org open?

If so, what are they?

Here's hoping...

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] Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem)

2000-08-07 Thread Toby Dickenson

has anybody had bad experience with caching when using ie?  i've done as

For caching, IE is one of the better behaved browsers

Check the content of your "Temporary Internet Files" directory - this
will show when the cached documents expire.

You might find you need to manually purge your browsers cache after
fixing a caching bug, to eliminate all traces of the bug.


what you did, but ie keeps showing old data.  this with a no-cache
header,must-revalidate.


Toby Dickenson
[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] XMLRPC returns error sometimes

2000-08-07 Thread Toby Dickenson

On Sun, 6 Aug 2000 11:56:35 -0400 , Chris McDonough
[EMAIL PROTECTED] wrote:

Only strings, integers, floats, "booleans", dictionaries, tuples, lists,
and special "datetime", base64, and fault objects can be passed via
XML-RPC.   Anything else is too complex.  The spec at
http://www.xml-rpc.com/spec is useful.


Also, xmlrpclib will marshall a class instance as a dictionary, using
it's __dict__.

This applies to instances of python classes, but not extension
classes. Fixing this would be a bad idea: ObjectManager.objectItems
would try to return your whole database.

 -Original Message-
 From: Gijs Reulen [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 06, 2000 6:53 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] XMLRPC returns error sometimes
 
 
 I am experimenting with xml-rpc and Zope. Some Methods from 
 the API work ok,
 but others return an error. A common error is:
 
 Error Value: cannot marshal extension class
 Acquisition.ImplicitAcquirerWrapper at 00C950F0 objects
 
 I receive this error for example when for Zope 2.1.6 I execute:
 ObjectManager.objectValues
 Where as the next Method works ok:
 ObjectManager.objectItems
 
 Maybe the to be returned info is to complex ?
 


Toby Dickenson
[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] [ANN]: ZMailIn 0.3.0 Now Available

2000-08-07 Thread Andy Dawkins

ZMailIn 0.3.0 is now available here:
http://www.zope.org/Members/NIP/ZMailIn/

Major Revisions:
  -- Global ZCatalog to index ZMailIn instances.
  -- Support for Multi-Mime type emails.
  -- Customisable Message handling via DTML-Methods.
  -- CatalogAware + Folderish.


Cheers
-Andy

___
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] Format problem?

2000-08-07 Thread Marko MARKOVIC

hi all,

when I do a insert with a ZSQLMethod in my database, in the SQLMethod I use
for a field fmt=newline_to_br. Now, when I want edit this field and put the
value in a textarea, I get the caracter br, but I don't want this.

How can i do to hide this br when i read this field?


$Regards
MM


___
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] Changing user pwds

2000-08-07 Thread Aaron Williamson

Hello,

I created a form to allow users to change their own passwords.  I
hate the idea of giving them all "Manage Users" permissions, but ok
whatever.  But "acl_users.manage_users('Change', REQUEST, RESPONSE)"
won't work unless the user has "View Management Screens" permissions.
Not only does this make no sense, because the procedure doesn't involve
viewing management screens, but it would be absolute insanity to give
all of my users those permissions, because then they could go in and
delete users at will!  There has to be a way to do this, but can I get
around this problem without additional products (i.e. Login Manager)?

Thanks,

  Aaron


___
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] Sth wrong with ZCatalog?

2000-08-07 Thread Marcin Kasperski

I have some strange problem with ZCatalog: after clicking 'Find items to
catalog' I get Zope error:

Error Type: IndexError
Error Value: list index out of range

Traceback (innermost last):
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /opt/Zope-2.2.0-linux2-x86/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_catalogFoundItems)
  File /opt/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_catalogFoundItems)
  File
/opt/Zope-2.2.0-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py,
line 321, in manage_catalogFoundItems
(Object: ElementWithAttributes)
IndexError: (see above)


I have already working ZCatalog, all I wanted was to add a few new pages
to it.

Maybe the problem has something to do with SiteAccess rule present in my
directory?


By the way: as I need to add only 5 pages, is it possible to add them to
zcatalog manually?


-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| One way to perform analysis is to build models and discuss them with  
| users. But another, very valid way, is to build working increments of 
| the project and have the users examine those slices. (Martin)

___
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] ZPatterns Question

2000-08-07 Thread RC Compaan

I created a ZClass called "Product" with Dataskin as baseclass.

I also added a specialist called ProductManager containing a default rack.
Under storage for the rack I selected the newly created Product ZClass.

My product ZClass needs to query both a RDBMS and the ZODB for
attributevalues.  At this point I get lost.
I guess i should add an attributeprovider plug-in???

What should go into the fromexpr and attrsexprs properties of the
attributeprovider?  Should one add an attributeprovider for each attribute
of the product?

Roché



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




[Zope] ZClass authorization problem (You are not authorized to access manage_changeProperties)

2000-08-07 Thread Gaspard, Bradley S

I have created a new ZClass which contains a dtml method that first clones
an object and then edits it's properties:

dtml-with manage_clone(News, REQUEST['new_id'], REQUEST)"
dtml-call manage_changeProperties(
title=REQUEST['new_title'],
blah blah blah,
 )"
/dtml-with

When I fill out the 'add' form and try to create a new instance I am
presented with the error message (as a user with
a manager role):

You are not authorized to access manage_changeProperties

I am able to successfully create an instance if I am the superuser.

How do I fix this??

Brad




___
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] Python Method question

2000-08-07 Thread Chris McDonough

Do you mean you want to use a Python Method (in the sense of a methodish
object instantiated from Evan Simpson's Python Method Product) from a
Python Product?  You *should* be able to call it by getting a hold of it
through acquisition or by otherwise getting a hold of an object in the
ZODB and traversing from it.

 -Original Message-
 From: entropia [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 07, 2000 3:20 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Python Method question
 
 
 I hava a question regards Python Method: How can I
 import a Python Method from a Product module?
 
 
 ___
 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] threading

2000-08-07 Thread Nicholas Lo

Just a simple question.
According to Amos' How-To: Thread Safety in Zope 2, what is mutable
global or shared variables?? What is the scope of such global variables?
Zope wide? module wide?
If global variable is not permitted, how can I approach thread
programming in Zope? Without global variables, how can I control
threads?
Please kindly help

Regards,
Nicholas Lo

begin:vcard 
n:Lo;Nicholas
tel;pager:+852 7475 5330
tel;cell:+852 9225 0555
tel;fax:+852 2610 2225
tel;work:+852 7111 9353
x-mozilla-html:FALSE
url:http://www.siliconcreation.com
org:Silicon Creation
version:2.1
email;internet:[EMAIL PROTECTED]
title:Technical Director
adr;quoted-printable:;;18/F=0D=0ATower 2=0D=0AMetroPlaza;Kwai Fong;;;Hong Kong
x-mozilla-cpt:;0
fn:Nicholas Lo
end:vcard



[Zope] Zope is slow on a windows 2000 server

2000-08-07 Thread Meeting Maker Webmaster

Hello,

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

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

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

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

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

Thank you for your help.

Best regards,

Gérard Métrailler Jr.

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

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


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




Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters

On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic Internet Solutions 
wrote:
 I am writing a python product and want to display a GIF file in some of the
 manage_pages. It is not meant to be the "icon" property of the class, just
 an image to be included in DTML. I included it in my class as follows:
 
   chooser = ImageFile('images/chooser.gif',globals()),
 
 but when I call it in DTML (dtml-var chooser) I get the following:
 
 ImageFile instance at 014F1D90
 
 I thought maybe I could use an instance of the Image class:
 
   chooser = OFS.Image('images/chooser.gif',globals()),
 
 but this doesn't seem to work.
 
 How do you create an instance of an Image in a Python Product?

ImageFile objects do not (like ZODB stored Image objects) generate an IMG tag
when called. Image object, when called, generate an IMG tag that points the
browser to the correct address to retrieve tha actual image.

With an ImageFile object, you need to construct the tag yourself. If this
class has an instance foo, with this ImageFile attribute chooser, and the
instance foo is stored in the root of your Zope ZODB, you need to point the
browser to http://yoursever/foo/chooser. So your DTML needs to generate the
following HTML:

  img src="http://yoursever/foo/chooser"

I don't know enough about your DTML, but if it is another attribute of the
same class, you could use one of the URLx REQUEST variables or something to
construct the URL for the image. Also, absolute_url() called on the foo
instance may also work for a base URL.

Hope this helps.

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

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

2000-08-07 Thread Chris Withers

Hi,

Small niggle...

Isn't it time the QuickStart bit the dust?
It's quite strange seeing references to Principia and Acqueduct in Zope
2.2 ;-)

Doesn't the Tutorial replace this quite comfortably?

Just a thought,

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] Accessing .gif on disk with Python Product?

2000-08-07 Thread Performance.net Strategic Internet Solutions

- Original Message -
From: "Martijn Pieters" [EMAIL PROTECTED]
To: "Performance.net Strategic Internet Solutions"
[EMAIL PROTECTED]
Cc: "ZOPE Mailing List" [EMAIL PROTECTED]
Sent: Monday, August 07, 2000 12:19 PM
Subject: Re: [Zope] Accessing .gif on disk with Python Product?



 On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic
Internet Solutions wrote:
  I am writing a python product and want to display a GIF file in some of
the
  manage_pages. It is not meant to be the "icon" property of the class,
just
  an image to be included in DTML. I included it in my class as follows:
 
chooser = ImageFile('images/chooser.gif',globals()),
 
  but when I call it in DTML (dtml-var chooser) I get the following:
 
  ImageFile instance at 014F1D90
 
  I thought maybe I could use an instance of the Image class:
 
chooser = OFS.Image('images/chooser.gif',globals()),
 
  but this doesn't seem to work.
 
  How do you create an instance of an Image in a Python Product?

 ImageFile objects do not (like ZODB stored Image objects) generate an IMG
tag
 when called. Image object, when called, generate an IMG tag that points
the
 browser to the correct address to retrieve tha actual image.

 With an ImageFile object, you need to construct the tag yourself. If this
 class has an instance foo, with this ImageFile attribute chooser, and the
 instance foo is stored in the root of your Zope ZODB, you need to point
the
 browser to http://yoursever/foo/chooser. So your DTML needs to generate
the
 following HTML:

   img src="http://yoursever/foo/chooser"

 I don't know enough about your DTML, but if it is another attribute of the
 same class, you could use one of the URLx REQUEST variables or something
to
 construct the URL for the image. Also, absolute_url() called on the foo
 instance may also work for a base URL.

 Hope this helps.

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

Okay, I've done the following:

# Create the method in the .py Class File
chooserIcon=ImageFile('images/chooserIcon.gif',globals()),

# Call from the .dtml File
img src="dtml-var absolute_url/chooserIcon" border=0

absolute_url() works and the URL points correctly to
http://myserver/foo/chooserIcon, but  if I type in that URL directly, I get
a "Not Found" error as though the method does not exist. I've double-checked
that the image is there and named correctly, so it's not a syntax thing.

Perhaps I need to convert it to an "Image" object something like below?

# this doesn't work but illustrates the idea
chooserIcon = Image( ImageFile('images/chooserIcon.gif',globals() )

Help! =:)

Kevin




___
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] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney

2000-08-07 Thread Administrator


Send Zope maillist submissions to
[EMAIL PROTECTED]

To subscribe or unsubscribe via the web, visit
http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney 
(Administrator)
  2. cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney 
(Administrator)
  3. Re: server instability: ZODB corruption? (Dieter Maurer)
  4. sybase - hmmm (Dr. Ross Lazarus)
  5. Re: sybase - hmmm (Andrew Kenneth Milton)
  6. Re: Problem with proxy role... (Aleksander Salwa)
  7. Python Method question (entropia)
  8. (OT) Re: [Zope] sybase - hmmm (Bill Anderson)
  9. Where to find ducument of ZODB (iap_y2fun.com)
  10. Re: (OT) Re: [Zope] sybase - hmmm (Andrew Kenneth Milton)
  11. Installing ZOPE on a Digital platform (Alexandru Cucereanu)
  12. is this possible? (boogie)
  13. FTP into Zope.org? (Chris Withers)
  14. Re: Caching How-To (was Cache concerns (waszope/proxy_pass configuration 
problem) configuration problem) (Toby Dickenson)
  15. Re: XMLRPC returns error sometimes (Toby Dickenson)
  16. [ANN]: ZMailIn 0.3.0 Now Available (Andy Dawkins)
  17. Format problem? (Marko MARKOVIC)
  18. Changing user pwds (Aaron Williamson)
  19. Re: is this possible? (=?iso-8859-1?Q?Maik=2ER=F6der?=)
  20. Sth wrong with ZCatalog? (Marcin Kasperski)
  21. ZPatterns Question (RC Compaan)
  22. ZClass authorization problem (You are not authorized to access 
manage_changeProperties) (Gaspard, Bradley S)
  23. edit_propertiesForm traceback (Jean Jordaan)
  24. Newbie question: referring to dtml-call documents (David Loeffler)
  25. RE: Python Method question (Chris McDonough)
  26. RE: Installing ZOPE on a Digital platform (Chris McDonough)
  27. Accessing .gif on disk with Python Product? (Performance.net Strategic Internet 
Solutions)
  28. threading (Nicholas Lo)
  29. Re: Python Method question (entropia)
  29. SQL Result (Tom Deprez)
  29. Zope is slow on a windows 2000 server (Meeting Maker Webmaster)
  30. Re: Accessing .gif on disk with Python Product? (Martijn Pieters)

--__--__--

Message: 1
Date: Sun, 06 Aug 2000 15:20:21 -0400
To: [EMAIL PROTECTED]
From: "Administrator" [EMAIL PROTECTED]
Reply-To: "Administrator" [EMAIL PROTECTED]
Subject: [Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin 
Kiffney


Send Zope maillist submissions to
[EMAIL PROTECTED]

To subscribe or unsubscribe via the web, visit
http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. New Zope classes announced for San Diego, California  Denver, Co
 lorado (Gary Graham)
  2. New Zope Training Dates Announced for San Diego, California and Denver, Colorado 
(Gary Graham)
  3. Re: dtml-calendar question (I GOT IT) (R. David Murray)
  4. Re: Zope with two platforms. (R. David Murray)
  5. Zope on old hardware?? (Steve Nicholson)
  6. Re: Precondition (R. David Murray)
  7. Re: Vocabulary?? (R. David Murray)
  8. Zope in single thread mode during DTML rendering (Dieter Maurer)
  9. Confusing "sqlvar" error message (Dieter Maurer)
  10. Re: ZCatalog attachments? (Dieter Maurer)
  11. Re: Pluggable brains aren't seen by first-nnn in dtml-in? (Dieter Maurer)
  12. Re: Solution Suggestions? (Dieter Maurer)
  13. Re: Less than helpful traceback (Dieter Maurer)
  14. Re: REPOST: README.txt Tab (Erik Enge)
  15. Re: Python Product Tutorial (Erik Enge)
  16. server instability: ZODB corruption? (Guido A.J. Stevens)
  17. Using MailHost with an SMTP server that wants authentication (Jean Jordaan)
  18. riddle me this Batman, coded copy/paste syntax? (Darran Edmundson)
  19. Troubles with ZOracleDA successfully resolved (Pedro Vega)
  20. Python Class trickyness (Erik Enge)
  21. Re: ZCatalog attachments? (Phil Harris)
  22. (Fwd) Re: [Zope] Pluggable brains aren't seen by first-nnn in  - SOLUTION (Brad 
Clements)
  23. Problems adding Properties to ZClass (Erich Seifert)

-- __--__-- 

Message: 1
From: Gary Graham [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: [Zope] New Zope classes announced for San Diego, California  Denver, Co
lorado
lorado
Date: Fri, 4 Aug 2000 18:42:13 -0400

Digital Creations has scheduled 2 new Zope Training dates and locations.


The dates are September 25-28, 2000 for Zope 101  201 in San Diego,
California and also October 2-5, 2000 for Zope 101  201 in Denver,
Colorado.

See http://www.digicool.com/Solutions/Training/ for 

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters

On Mon, Aug 07, 2000 at 01:12:03PM -0300, Performance.net Strategic Internet Solutions 
wrote:
  On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic
  Internet Solutions wrote:
   I am writing a python product and want to display a GIF file in some of
   the manage_pages. It is not meant to be the "icon" property of the
   class, just an image to be included in DTML. I included it in my class
   as follows:
  
 chooser = ImageFile('images/chooser.gif',globals()),
  
   but when I call it in DTML (dtml-var chooser) I get the following:
  
   ImageFile instance at 014F1D90
  
   I thought maybe I could use an instance of the Image class:
  
 chooser = OFS.Image('images/chooser.gif',globals()),
  
   but this doesn't seem to work.
  
   How do you create an instance of an Image in a Python Product?
 
  ImageFile objects do not (like ZODB stored Image objects) generate an IMG
  tag when called. Image object, when called, generate an IMG tag that
  points the browser to the correct address to retrieve tha actual image.
 
  With an ImageFile object, you need to construct the tag yourself. If this
  class has an instance foo, with this ImageFile attribute chooser, and the
  instance foo is stored in the root of your Zope ZODB, you need to point
  the browser to http://yoursever/foo/chooser. So your DTML needs to
  generate the following HTML:
 
img src="http://yoursever/foo/chooser"
 
  I don't know enough about your DTML, but if it is another attribute of the
  same class, you could use one of the URLx REQUEST variables or something
  to construct the URL for the image. Also, absolute_url() called on the foo
  instance may also work for a base URL.
 
  Hope this helps.
 
 Okay, I've done the following:
 
 # Create the method in the .py Class File
 chooserIcon=ImageFile('images/chooserIcon.gif',globals()),
 
 # Call from the .dtml File img src="dtml-var absolute_url/chooserIcon"
 border=0
 
 absolute_url() works and the URL points correctly to
 http://myserver/foo/chooserIcon, but  if I type in that URL directly, I get
 a "Not Found" error as though the method does not exist. I've double-checked
 that the image is there and named correctly, so it's not a syntax thing.
 
 Perhaps I need to convert it to an "Image" object something like below?
 
 # this doesn't work but illustrates the idea chooserIcon = Image(
 ImageFile('images/chooserIcon.gif',globals() )
 
 Help! =:)

Hmm.. This is how Product Icons are stored, that is, as ImageFile objects. At
product init time, a ImageFile objetcs is created for the Product icon and
stroed in the special misc_ structure for later access.

Have a look through the Product initialisation code, which is started up in
OFS/Application.py::install_products().

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

___
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] Previous Message

2000-08-07 Thread Tom Deprez

Hi all,

Please, forget my previous message!

Next question : Is there an easier way for writing the following?

dtml-let position=sequence-item
  dtml-var expr="position+1"/dtml-var count-CENTRE_NO
dtml-let

This gives the sequence order of every record on the total amount of
retrieved records. So far, this was the only way I could get it to work. Is
there a better way (simpler) ?

Thanks, Tom.

___
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: ZODB documents

2000-08-07 Thread Carlos de la Guardia


There is an old how-to at:
http://www.zope.org/Members/michel/HowTos/ZODB-How-To

There is also a slide presentation at:
http://www.zope.org/Members/jim/zodbhtml/zodb.htm


___
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] Accessing .gif on disk with Python Product?

2000-08-07 Thread Kevin Howe

Right you are, here's how I solved it:

# __init.py__ for myProduct

misc_={
  'chooserIcon': ImageFile('images/chooserIcon.gif',globals()),
  }

# DTML file

img src="dtml-var absolute_url/misc_/myProduct/chooserIcon" border=0


Thanks!
Kevin

- Original Message -
From: "Martijn Pieters" [EMAIL PROTECTED]
To: "Performance.net Strategic Internet Solutions"
[EMAIL PROTECTED]
Cc: "ZOPE Mailing List" [EMAIL PROTECTED]
Sent: Monday, August 07, 2000 1:15 PM
Subject: Re: [Zope] Accessing .gif on disk with Python Product?



 On Mon, Aug 07, 2000 at 01:12:03PM -0300, Performance.net Strategic
Internet Solutions wrote:
   On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic
   Internet Solutions wrote:
I am writing a python product and want to display a GIF file in some
of
the manage_pages. It is not meant to be the "icon" property of the
class, just an image to be included in DTML. I included it in my
class
as follows:
   
  chooser = ImageFile('images/chooser.gif',globals()),
   
but when I call it in DTML (dtml-var chooser) I get the following:
   
ImageFile instance at 014F1D90
   
I thought maybe I could use an instance of the Image class:
   
  chooser = OFS.Image('images/chooser.gif',globals()),
   
but this doesn't seem to work.
   
How do you create an instance of an Image in a Python Product?
  
   ImageFile objects do not (like ZODB stored Image objects) generate an
IMG
   tag when called. Image object, when called, generate an IMG tag that
   points the browser to the correct address to retrieve tha actual
image.
  
   With an ImageFile object, you need to construct the tag yourself. If
this
   class has an instance foo, with this ImageFile attribute chooser, and
the
   instance foo is stored in the root of your Zope ZODB, you need to
point
   the browser to http://yoursever/foo/chooser. So your DTML needs to
   generate the following HTML:
  
 img src="http://yoursever/foo/chooser"
  
   I don't know enough about your DTML, but if it is another attribute of
the
   same class, you could use one of the URLx REQUEST variables or
something
   to construct the URL for the image. Also, absolute_url() called on the
foo
   instance may also work for a base URL.
  
   Hope this helps.
 
  Okay, I've done the following:
 
  # Create the method in the .py Class File
  chooserIcon=ImageFile('images/chooserIcon.gif',globals()),
 
  # Call from the .dtml File img src="dtml-var
absolute_url/chooserIcon"
  border=0
 
  absolute_url() works and the URL points correctly to
  http://myserver/foo/chooserIcon, but  if I type in that URL directly, I
get
  a "Not Found" error as though the method does not exist. I've
double-checked
  that the image is there and named correctly, so it's not a syntax thing.
 
  Perhaps I need to convert it to an "Image" object something like below?
 
  # this doesn't work but illustrates the idea chooserIcon = Image(
  ImageFile('images/chooserIcon.gif',globals() )
 
  Help! =:)

 Hmm.. This is how Product Icons are stored, that is, as ImageFile objects.
At
 product init time, a ImageFile objetcs is created for the Product icon and
 stroed in the special misc_ structure for later access.

 Have a look through the Product initialisation code, which is started up
in
 OFS/Application.py::install_products().

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



___
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] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters

On Mon, Aug 07, 2000 at 01:38:56PM -0300, Kevin Howe wrote:
 Right you are, here's how I solved it:
 
 # __init.py__ for myProduct
 
 misc_={
   'chooserIcon': ImageFile('images/chooserIcon.gif',globals()),
   }
 
 # DTML file
 
 img src="dtml-var absolute_url/misc_/myProduct/chooserIcon" border=0

misc_ is a root level object. Using absolute_url you are acquiring it into
your Instance URL, which is not necessary (and will hamper off-server
caching). Use dtml-SCRIPT_NAME; instead (which will give you the absolute url
of the root object in all cases):

  img src="dtml-SCRIPT_URL;/misc_/myProduct/chooserIcon" border=0  

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

___
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] (no subject)

2000-08-07 Thread Casey Duncan

Simon Coles writes:
  We have binary files stored in Zope, for example Word documents (but
  could be any of a variety of document types).
 
  We would like to be able to index and search the contents of these
  files using ZCatalog. So if a Word file contains the word "Fred",
  then any search for "Fred" would include that file in the list of
  documents returned.

I have done something similar. I created a ZClass subclassing CatalogAware
and File. I added a property called text which is text indexed in a catalog.
When a Word document is added, a method I created uses the wvHtml utility to
convert the Word document to text and store it in the text property. It has
kind of a kludgey implementation at the moment, mostly because I want to
create a Python wrapper around the wv library, but it's documentation is
sketchy and I have other priorities at the moment. It does work though and
lets you search Word documents using a ZCatalog quite effectively (although
it only works for Word docs).

Check out wv at http://www.wvware.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] Previous Message

2000-08-07 Thread Chris Withers

Tom Deprez wrote:
 dtml-let position=sequence-item
   dtml-var expr="position+1"/dtml-var count-CENTRE_NO
 dtml-let

how about:

dtml-var "_.getitem('sequence-index',0)+1"/dtml-var count-CENTRE_NO

cheers,

Chris

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




[Zope] Zope installations wordwide

2000-08-07 Thread arno . gross

Are there any figures about the
installtions of zope in Germany, Europe
and the world? Is there a list of
Zope sites?

Arno Gross
email: [EMAIL PROTECTED]



[Zope] Authentification with the SAM of NT (Security Account Manager)

2000-08-07 Thread Vincent

Hi,

Does anyone know if Zope allows authentification of a user with the SAM
(Security Account Manager) of Windows NT ?

I mean :

  - The user types his login/password
  - and then, zope asks the SAM if this user does exists (or not).

Thanks.

Vincent


___
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] Authentification with the SAM of NT (Security Account Manager)

2000-08-07 Thread Chris McDonough

First, there is no such work as authentification.  :-)

OK, now that I got that off my chest, take a look at jcNTUserFolder
(http://www.zope.org/Members/jephte/jcNTUserFolder), smbUserFolder
(http://www.zope.org/Members/mcdonc/smbUserFolder), and Tres Seaver's
Integrating Login Manager with SMB
(http://www.zope.org/Members/tseaver/LoginManager_and_SMB).  Any of
these will work, depending on your situation.  jcNTUserFolder is best if
your Zope server runs on Windows.  smbUserFolder or Tres' howto work
best if your Zope server runs on anything else.

 -Original Message-
 From: Vincent [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 07, 2000 2:10 PM
 To: [Zope Org] (E-mail)
 Subject: [Zope] Authentification with the SAM of NT (Security Account
 Manager)
 
 
 Hi,
 
 Does anyone know if Zope allows authentification of a user 
 with the SAM
 (Security Account Manager) of Windows NT ?
 
 I mean :
 
   - The user types his login/password
   - and then, zope asks the SAM if this user does exists (or not).
 
 Thanks.
 
 Vincent
 
 
 ___
 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] Success! ZPoPyDA 0.6.1 works!

2000-08-07 Thread Stephen Nosal

First, I would like to say thanks to everyone, who gave me a hand with this, 
especially [EMAIL PROTECTED] I learned a lot, and I am more comfortable 
with my system than ever.

Below is a little note and question for Federico, who provided the patch that got the 
whole thing going again.

Thanks again,

- Steve

Federico -

This is the output of my compilation of ZPoPyDA 0.6.1

Two questions:
1) It looks for README before it creates it.
2) Make appears to do nothing.

Just trying to figure it all out.

- Steve

root@fastclose:/opt/src/ZPoPyDA  ./autogen.sh --with-zope-datadir=/opt/fastclose 
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
automake: Makefile.am: installing `./INSTALL'
automake: Makefile.am: required file `./README' not found
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
updating cache ./config.cache
creating ./config.status
creating Makefile
creating README

Now type 'make' to compile ZPoPyDA.
root@fastclose:/opt/src/ZPoPyDA  make
make: Nothing to be done for `all'.
root@fastclose:/opt/src/ZPoPyDA  make install
make[1]: Entering directory `/opt/src/ZPoPyDA'
make[1]: Nothing to be done for `install-exec-am'.
install -d /opt/fastclose/lib/python/Products//ZPoPyDA
/usr/bin/ginstall -c -m 644 ./PoPyconnectionAdd.dtml PoPyconnectionStatus.dtml  
PoPyconnectionEdit.dtml PoPyconnectionTestForm.dtml __init__.py PoPy_db.py DA.py   
README ChangeLog AUTHORS COPYING PoPyconnectionAdd.dtml PoPyconnectionStatus.dtml
PoPyconnectionEdit.dtml PoPyconnectionTestForm.dtml __init__.py PoPy_db.py DA.py   \
/opt/fastclose/lib/python/Products//ZPoPyDA/
make[1]: Leaving directory `/opt/src/ZPoPyDA'
root@fastclose:/opt/src/ZPoPyDA  


__
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!

___
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] PTK Member-Folder Object Properties (phew!)

2000-08-07 Thread David Riggs

For each member in the Portal ToolKit, a folder is created in the folder
'Members', i.e:
ZopeRoot/Portal/Members/member_name

I've created a ZClass called Customize that has several properties, and
I've added an instance of Customize (and called each instance Customize)
in each member's folder. i.e.:
/Portal/Members/member_name/Customize

What I need is a way to access the value of these properties for any
given member that is logged in at the moment. In other words, I can do
this...
dtml-var "_.getattr(Members.member1.Customize, 'some_property')"

and get the value that I need for member1. I want the equivalent of
replacing 'member1' with AUTHENTICATED_USER.getName()...I tried
substuting it in and building a string with it, but that causes  getattr
to complain about strings not having the needed property.

Any ideas on how to make this work, or ideas on how to do it a similar
(or even completely different) way?




___
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] Can't add objects

2000-08-07 Thread Maarten Engelen

I've installed Zope on an account at a hosting company.
Zope runs perfect, but I can't add any new objects. I can edit
existing object without any problems, but adding is impossible
because of the 500 error which the server gives. Does someone
have any idea what could cause this problem?


___
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] Newbie question: referring to dtml-call documents

2000-08-07 Thread Dieter Maurer

David Loeffler writes:
  
  whenever I try to get hold of this with anything like dtml-var 
  "_[objId].getProperty(dest)" (objId is the id of the document) it simply 
  redirects ...


"_[xxx]" executes (calls) the retrieved object, if possible.
In your case, execution calls "RESPONSE.redirect".

You need "_.getitem(xxx)" instead of "_[xxx]".
This only retrieves and does not call the object.


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] Changing user pwds

2000-08-07 Thread Dieter Maurer

Aaron Williamson writes:
  I created a form to allow users to change their own passwords.  I
  hate the idea of giving them all "Manage Users" permissions, but ok
  whatever.  But "acl_users.manage_users('Change', REQUEST, RESPONSE)"
  won't work unless the user has "View Management Screens" permissions.
Look a Proxy Roles.


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 is slow on a windows 2000 server

2000-08-07 Thread Meeting Maker Webmaster

Hello again,

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

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

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

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

This is still an open question.

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

Best regards,

Gérard Métrailler Jr.

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

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


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




Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Evan Simpson

From: Martijn Pieters [EMAIL PROTECTED]
 misc_ is a root level object. Using absolute_url you are acquiring it into
 your Instance URL, which is not necessary (and will hamper off-server
 caching). Use dtml-SCRIPT_NAME; instead (which will give you the absolute
url
 of the root object in all cases):

   img src="dtml-SCRIPT_URL;/misc_/myProduct/chooserIcon" border=0

I sugget using "dtml-BASE1;", since SCRIPT_NAME doesn't work well with
virtual hosting.

Cheers,

Evan @ digicool  4-am


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




[Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney

2000-08-07 Thread Administrator


Send Zope maillist submissions to
[EMAIL PROTECTED]

To subscribe or unsubscribe via the web, visit
http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. Re: Accessing .gif on disk with Python Product? (Martijn Pieters)
  2. Previous Message (Tom Deprez)
  3. Re: ZODB documents (Carlos de la Guardia)
  4. Re: Accessing .gif on disk with Python Product? (Kevin Howe)
  5. Re: Accessing .gif on disk with Python Product? (Martijn Pieters)
  6. (no subject) (Casey Duncan)
  7. Re: Previous Message (Chris Withers)
  8. Zope installations wordwide ([EMAIL PROTECTED])
  9. Authentification with the SAM of NT (Security Account Manager) (Vincent)
  10. Zope Crashes (memory corruption) resolved (Dieter Maurer)
  11. RE: Authentification with the SAM of NT (Security Account
 Manager) (Chris McDonough)
  12. Re: Zope installations wordwide (J. Atwood)
  13. Success! ZPoPyDA 0.6.1 works! (Stephen Nosal)
  14. PTK Member-Folder Object Properties (phew!) (David Riggs)
  15. Can't add objects (Maarten Engelen)

--__--__--

Message: 1
Date: Mon, 7 Aug 2000 18:15:47 +0200
From: Martijn Pieters [EMAIL PROTECTED]
To: "Performance.net Strategic Internet Solutions" [EMAIL PROTECTED]
Cc: ZOPE Mailing List [EMAIL PROTECTED]
Subject: Re: [Zope] Accessing .gif on disk with Python Product?
ZOPE Mailing List [EMAIL PROTECTED]

On Mon, Aug 07, 2000 at 01:12:03PM -0300, Performance.net Strategic Internet Solutions 
wrote:
  On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic
  Internet Solutions wrote:
   I am writing a python product and want to display a GIF file in some of
   the manage_pages. It is not meant to be the "icon" property of the
   class, just an image to be included in DTML. I included it in my class
   as follows:
  
 chooser = ImageFile('images/chooser.gif',globals()),
  
   but when I call it in DTML (dtml-var chooser) I get the following:
  
   ImageFile instance at 014F1D90
  
   I thought maybe I could use an instance of the Image class:
  
 chooser = OFS.Image('images/chooser.gif',globals()),
  
   but this doesn't seem to work.
  
   How do you create an instance of an Image in a Python Product?
 
  ImageFile objects do not (like ZODB stored Image objects) generate an IMG
  tag when called. Image object, when called, generate an IMG tag that
  points the browser to the correct address to retrieve tha actual image.
 
  With an ImageFile object, you need to construct the tag yourself. If this
  class has an instance foo, with this ImageFile attribute chooser, and the
  instance foo is stored in the root of your Zope ZODB, you need to point
  the browser to http://yoursever/foo/chooser. So your DTML needs to
  generate the following HTML:
 
img src="http://yoursever/foo/chooser"
 
  I don't know enough about your DTML, but if it is another attribute of the
  same class, you could use one of the URLx REQUEST variables or something
  to construct the URL for the image. Also, absolute_url() called on the foo
  instance may also work for a base URL.
 
  Hope this helps.
 
 Okay, I've done the following:
 
 # Create the method in the .py Class File
 chooserIcon=ImageFile('images/chooserIcon.gif',globals()),
 
 # Call from the .dtml File img src="dtml-var absolute_url/chooserIcon"
 border=0
 
 absolute_url() works and the URL points correctly to
 http://myserver/foo/chooserIcon, but  if I type in that URL directly, I get
 a "Not Found" error as though the method does not exist. I've double-checked
 that the image is there and named correctly, so it's not a syntax thing.
 
 Perhaps I need to convert it to an "Image" object something like below?
 
 # this doesn't work but illustrates the idea chooserIcon = Image(
 ImageFile('images/chooserIcon.gif',globals() )
 
 Help! =:)

Hmm.. This is how Product Icons are stored, that is, as ImageFile objects. At
product init time, a ImageFile objetcs is created for the Product icon and
stroed in the special misc_ structure for later access.

Have a look through the Product initialisation code, which is started up in
OFS/Application.py::install_products().

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

--__--__--

Message: 2
Date: Mon, 07 Aug 2000 18:23:15 +0200
To: [EMAIL PROTECTED]
From: Tom Deprez [EMAIL PROTECTED]
Subject: [Zope] Previous Message

Hi all,

Please, forget my previous message!

Next question : Is there an easier way for writing the following?

dtml-let position=sequence-item
  dtml-var 

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Chris Withers

Martijn Pieters wrote:
 On Mon, Aug 07, 2000 at 04:23:36PM -0400, Evan Simpson wrote:
  From: Martijn Pieters [EMAIL PROTECTED]
   misc_ is a root level object. Using absolute_url you are acquiring it into
   your Instance URL, which is not necessary (and will hamper off-server
   caching). Use dtml-SCRIPT_NAME; instead (which will give you the absolute
  url
   of the root object in all cases):
  
 img src="dtml-SCRIPT_URL;/misc_/myProduct/chooserIcon" border=0
 
  I sugget using "dtml-BASE1;", since SCRIPT_NAME doesn't work well with
  virtual hosting.
 
 I don't see this would make a difference; Zope is passed the base URL at which
 it takes over the URL. A SiteAccess object may only influence parts of the URL
 that come _after_ this base.
 
 http://zopeintherooturl/foo, where foo is a Zope object, has SCRIPT_NAME='/',
 while http://zopeinasuburl/zope/foo, has SCRIPT_NAME='/zope/'. Zope may remove
 the foo from the URL because of some Virtual Host rule, SCRIPT_NAME will still
 be valid.

Sorry, I'd have to agree with Evan on this one. I'm pretty sure I've had
SiteAccess not play nicely wih SCRIPT_NAME whereas BASE1 works fine...

cheers,

Chris

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




[Zope] string to objectname conversion ?

2000-08-07 Thread Gijs Reulen

Hi

I would like to list all objects in a folder. No problem there. However, I
want to use the function/method universely so I need to pass the name of the
target folder; as a string is the only way I can think of (formatted as a
url).
I tried several things in DTML and studies the DTML Ref, the mailinglist and
the How-To's very hard but did not have the Enlightment yet :-(
Is it possible ?

Example:
dtml-in "PARENTS[0].objectValues()"
dtml-var icon
dtml-var id
dtml-var title
dtml-var meta_type
dtml-var bobobase_modification_time fmt="%m/%d/%Y"
/dtml-in

But then instead of PARENTS[0] some parameter, for example:
/method?folder=foo

Gijs Reulen


___
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] SQL Query - DTML Form with populated values - SQL update example??

2000-08-07 Thread Bill Broadley


I'm fairly new to Zope.  I have various view, search, and insert into a 
SQL database (MySQL) working.

I'm having a problem connecting all the pieces for an update.

Does someone have an example (with DTML or similiar source) that
demonstrates the following:
1.  A search field for record id, or a list with a clickable URL for each
record (that is the result from a SQL select)
2.  Allows updating of the record with a DTML form with values already
populated
3.  An SQL update based on the values from #2.

I checked the ZSQL pdf, and the giant HOWTO collection without
finding a good example.  Any help appreciated (including documentation
references).

Many thanks,

--
Bill Broadley

___
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: string to objectname conversion ?

2000-08-07 Thread Gijs Reulen

Ok, I am very sorry to have cluthered this list. What can I say ? I am
definitely not up to Zen yet, because I was thinking in a very old fashioned
way :-(
The question and the answer were the same message; the example Method I gave
works perfectly when called for whatever object thanks to the wonderfull
world of objects and aquisition :-)

Good night
Gijs Reulen

 -Oorspronkelijk bericht-
 Van: Gijs Reulen [mailto:[EMAIL PROTECTED]]
 Verzonden: dinsdag 8 augustus 2000 0:54
 Aan: Mailinglist Zope
 Onderwerp: string to objectname conversion ?


 Hi

 I would like to list all objects in a folder. No problem there.
 However, I want to use the function/method universely so I need
 to pass the name of the target folder; as a string is the only
 way I can think of (formatted as a url).
 I tried several things in DTML and studies the DTML Ref, the
 mailinglist and the How-To's very hard but did not have the
 Enlightment yet :-(
 Is it possible ?

 Example:
 dtml-in "PARENTS[0].objectValues()"
 dtml-var icon
 dtml-var id
 dtml-var title
 dtml-var meta_type
 dtml-var bobobase_modification_time fmt="%m/%d/%Y"
 /dtml-in

 But then instead of PARENTS[0] some parameter, for example:
 /method?folder=foo

 Gijs Reulen



___
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: (OT) Re: sybase - hmmm

2000-08-07 Thread Bill Anderson

Andrew Kenneth Milton wrote:
 
 +[ Bill Anderson ]-
 | Andrew Kenneth Milton wrote:
 | 
 |  +[ Dr. Ross Lazarus ]-
 |  | I know that zope runs on everything else, but how do we reconcile the
 |  | DC/Sybase partnership announced late last year
 | 
 |  [ snip... ]
 | 
 |  | We're becoming a sybase/zope/linux dependent outfit; to whom should I
 |  | email my concerns - or is it time to move to another SQL backend?
 | 
 |  They picked the wrong free UNIX platform. Linux has a whole lot of
 |  machines installed, but, not too many of them would be deployed in an
 |  Enterprise environment, where people would be happy to pay money for
 |  licenses.
 |
 | The claim that Linux is not deployed in Enterprise environments is uninformed at 
best. The most recent announcement came
 | from Google, which claims 4000+ Linux servers. Clearly an enterpise environment.
 | ( http://www.internetwk.com/lead/lead060100.htm )
 
 err no. Read again... "not deployed in Enterprise environment, where people
 would be happy to pay money for..." as opposed to deployed where people
 want stuff for free - or as free as they can get it.

You may want to re-read the article. They _did_  pay for Redhat, even though they 
didn't _have_ to; though they didn't
have to pay for licenses for all 4K+ machines. In fact, even at HP, many of my users 
prefer to go buy a RedHat boxed
set, rather than use one of my CDs or install over the network.

I would say people _wanting_ to pay for a product they can get for free trumps those 
who 'have to' pay for it. :^)


BTW, most people in enterprise situations are not _happy_ to pay large licensing fees, 
it is just that they can afford
it, and have in the past accepted it as mandatory.

 Face it if you're
 doing web stuff using Zope (or anything else), you're not looking to go and
 pay Sybase for something just as good, with a hefty price-tag.


I use Zope not because it is free, but because it is _good_. I use it because I like 
it, it gets the job done, and does
it well. Given that in my case we _have_ Sybase (IOW, it cost me nothing more for 
Sybase), and I use Zope instead your
argument falls short. I have customers and clients who have paid for [Oracle, 
Informix, Sybase] Licenses, and some of
them have dropped it and now use Zope/ZODB.

 You still
 have to pay developers, and 'commercial' stuff usually attracts people at
 twice the rate of the going Open Source developers.

Not anymore, but I think we are using different terminology.

 
 PHP is firmly entrenched as the ASP of Linux at this stage and it's going
 to take a very long stick and a very firm place to stand to shift it.
 
 | And, of course, there is IBM.
 
 Who do a lot of open stuff, with FreeBSD as well. But marketing requires
 a Linux presence these days... mustn't let that share price slip.. :-)

Yes, but that stil ldoesn't change the fact that they are doing _lots_ of Linux stuff. 
:^) Do yhey offer enterprise
level 24x7 technical support for FreeBSD? :)

 
 |  An OS heavily promoted by one specific individual who doesn't really believe
 |  in commercial software doesn't seem like the ultimate platform to aim
 |  high-priced internet application software at.
 |
 | While I don't mean any offense, your characterization here is both unwarranted and 
unfounded. ESR and Linus (not sure
 | exactly whom you refer to) both believe in commercial software just fine.
 
 Actually referring to RMS...

My experience with RMS is that he promotes FSF more than Linux. He actually has an 
issue with Linux :)
 
 | In addition, if you look at the largest promoters of Linux, you will not find any 
one individual. Rather, you will find
 | an array of companies, of all sizes; from ISP's to ol' Big Blue. IBM, for example, 
is in the process of porting most
 | everything they have to Linux. And they do it for commercial reasons.
 
 One wonders if Oracle's Linux product has actually recouped them the
 development costs. Most of the larger Linux promoters are trying to get a
 leg into the 'smaller' market that was dominated by NT. If they can offer
 their products on hardware that doesn't cost more than a house, then they
 have opened a new market. Linux is obviously a means to an end here. They're
 trying to make a sale, they don't particularly care about Linux.

Which is, of course, irrelevant. If they support it, they support it. I consider it a 
given that any of the commercial
outfits are getting into Linux for financial/commercial reasons.

Now, I'll leave the  list alone on this subject, I'm sure they'll appreciate it. 

{:^)=

Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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

Re: [Zope] string to objectname conversion ?

2000-08-07 Thread Curtis Maloney

On Tue, 08 Aug 2000, Gijs Reulen wrote:
 Hi

 I would like to list all objects in a folder. No problem there. However, I
 want to use the function/method universely so I need to pass the name of
 the target folder; as a string is the only way I can think of (formatted as
 a url).
 I tried several things in DTML and studies the DTML Ref, the mailinglist
 and the How-To's very hard but did not have the Enlightment yet :-(
 Is it possible ?

You looked in almost all the right references.  (o8
The one more that you will find indispensible from now on is the Zope Quick 
Reference.  Go now, read it, save it, love it. (o8


 Example:
 dtml-in "PARENTS[0].objectValues()"
 dtml-var icon
 dtml-var id
 dtml-var title
 dtml-var meta_type
 dtml-var bobobase_modification_time fmt="%m/%d/%Y"
 /dtml-in

 But then instead of PARENTS[0] some parameter, for example:
 /method?folder=foo

You want the getitem method of _

dtml-in "_.getitem(sObjectName).objectValues()"
...
/dtml-it

 Gijs Reulen


Have a better one,
Curtis Maloney

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




[Zope] sync?

2000-08-07 Thread nicklo



Another simple question.How to use the 
Synchronized class from the Sync module?As far as I know, Sync is a .so 
file.Nicholas Lo
Nicholas LoTechnical Director

Silicon Creation Limited18/F, Tower 
IIMetroPlazaKwai Fong, NTHong Kong

Tel : 7111 9350Fax : 2610 
2225


[Zope] How can you get Zope console messages running as NT service?

2000-08-07 Thread Matthew Wilbert

This must be in the archives someplace, but searching
didn't turn it up.

I'm running ZServer as an NT service, and I'd like to
be able to see the usual console debug messages that I 
would get if I were running it from a command window, 
but I don't know how.  I tried setting the -D flag in the service startup parameters, 
but if that works, I don't know where the output is going.

If anyone knows how to do this, or that it is impossible,
I'd like to know too.

Thanks,

Matt Wilbert




___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


___
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] threading cont ...

2000-08-07 Thread Nicholas Lo

First, thanks to Dieter :)

Well, I have written a simple test products, which I have attached to
this message as a .tgz file. This product does vert little things. When
B1 is pressed, two new threads will start, one will update column of the
database table, while the other will prompt the current time. When B2 is
pressed, all threads will terminate. When B3 is pressed, it will show
the database table.

For this product, I used the SybaseDAv2 to connect to the local Sybase
11.9.2. The problem is,  I can always see the results by pressing B3.
However, when I looked into the database using isql, nothing has ever
changed :(

What's wrong? I really have no clue.
Please kindly help.

Regards,
Nicholas Lo
 boring.tgz

begin:vcard 
n:Lo;Nicholas
tel;pager:+852 7475 5330
tel;cell:+852 9225 0555
tel;fax:+852 2610 2225
tel;work:+852 7111 9353
x-mozilla-html:FALSE
url:http://www.siliconcreation.com
org:Silicon Creation
version:2.1
email;internet:[EMAIL PROTECTED]
title:Technical Director
adr;quoted-printable:;;18/F=0D=0ATower 2=0D=0AMetroPlaza;Kwai Fong;;;Hong Kong
x-mozilla-cpt:;0
fn:Nicholas Lo
end:vcard