Re: [Zope] Barcodes, magnetic cards, etc.

2000-08-22 Thread Curtis Maloney

On Wed, 23 Aug 2000, Erik Enge wrote:
> Good morning, people.
>
> I was wondering, can Zope interface to barcodes, magnetic cards
> (e.g. credit cards) and other common shop-"accessories"?
>
Well, I have used Zope with a Barcode scanner.  Since the scanner (as do 
most) work via the keyboard, AS a keyboard, there is really nothing special 
to do.

We did include some JavaScript to make the focus change when ENTER is hit, 
since the scanner sends that at then end of a scan.



> Feedback is greatly appretiated :)
>

>From what I can find (working for a company that sells barcode and mag stripe 
scanners) you should have little trouble finding either that will interface 
as a keyboard.

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 )




Re: [Zope] Indirect method lookup? (Update)

2000-08-22 Thread Kapil Thangavelu

Jeff Hoffman wrote:
> 
> Ok, knowing more about what's going on, now, I figured I would send an
> update to the list and hope it jars someone's memory.
> 
> Here's what I am trying to do:
> 
> I have a ZClass, MyTestClass. MyTestClass has two methods: method1, and
> method2. There are two other methods, showMethods and showMethods2, but
> they are only needed for the purpose of demonstration.
> 
> I created an instance of MyTestClass with an id of 'test'.
d> 
> showMethods (a DTMLMethod) is defined as:
> 
>   
>   
>   method1 = 
>   method2 = 
>   nullmethod = 
>   
> 
>   
> 
> and, when invoked on my 'test' instance, returns:
> 
>   method1 = 1
>   method2 = 1
>   nullmethod = 0
> 
> We're cookin'. Now, I need to get the same results with a PythonMethod.
> showMethods2 (a PythonMethod) is defined as:
> 
>   print _.hasattr(self, 'method1')
>   print _.hasattr(self, 'method2')
>   print _.hasattr(self, 'nullmethod')
>   return printed
> 
> which, when invoked on my 'test' instance, returns:
> 
>   0
>   0
>   0
> 
> I have tried every permutation of Python code I can, and none work as the
> DTML Method does. Somebody? Anybody? :-)


hmmm... what are the args to the method and how are you calling it? from
your spelling i assume you mean a web PythonMethod..


if your zclass is an objectmanager why not



anyways, i tried your example and it worked fine for me. i tried it with
a zclass whose only base class was dtml doc.

my pythonmethod 
accepted the object as an arg.

body
return hasattr(ob, 'method1')

returned the correct results. 1


Kapil

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

2000-08-22 Thread Kapil Thangavelu

Erik Enge wrote:
> 
> Good morning, people.
> 
> I was wondering, can Zope interface to barcodes, magnetic cards
> (e.g. credit cards) and other common shop-"accessories"?
> 
> Feedback is greatly appretiated :)
> 

zope is a great integration platform. anything you can touch in python
either through natively, swigged(www.swig.org), or just plain old
intefaced(piped shell call, xml-rpc, etc) you can play with in zope.


kapil

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

2000-08-22 Thread Kapil Thangavelu

"R. David Murray" wrote:
> 
> On Tue, 22 Aug 2000, Marcus Mendes wrote:
> > Is a good idea split Data.fs? (comments)
> 
> I'm sure it depends on your system design and constraints.  In a
> "normal" situation (whatever that is ) it probably doesn't
> matter much.  Some cases where you'd consider it: getting around the
> Linux 2GB limit, putting frequently changed objects in a non-undo
> storage, putting an area of the site with special characteristics
> (eg: the zope.org wiki area) in its own storage.
> 
> > Is there any way to divide or split the Data.fs into some parts?
> 
> Yes, mountable storages.

a caveat emptor, last time i checked, zclasses have problems with
mountable dbs. if they're defined in one zodb storage you can't
instantiate them in another.

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

2000-08-22 Thread Kapil Thangavelu



Scott Shepherd wrote:
> 
> Friends,
> 
> I have an external method that returns a string containing dtml, but
> I want it to evaluate the dtml and return the result. How do I do
> that?
> 
> I noticed in, say,
> /usr/share/zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
> that dtml-containing *files* are used as object methods like this:
> 
> from Globals import HTMLFile
> manage_main = HTMLFile( 'methodEdit', globals() )
> 
> so I figured I could do a similar thing with a dtml-containing string
> and an external method:
> 
> from Globals import HTML
> dtml_string = ''
> external_method = HTML( dtml_string, globals() )
> 
> This in fact works, but if I try to reference anything in the current
> object, like
> 
> dtml_string = ''
> 
> I get KeyError: id.
> 
> Apparently I'm getting dtml evaluation but not in the context of the
> current object. What am I doing wrong, and (for extra credit) why
> doesn't ExternalMethod.py have this problem using HTMLFile?
> 
> TIA,
> Scott
> 
> PS: I know I can get the id with
> 
> def external_method( self, REQUEST = None ):
> return self.id
> 
> but the real dtml_string I need to evaluate is much more complicated
> than ''...
> 

i'm a bit sleepy so this will be short. i've used the DocumentTemplate
stuff outside of zope and its pretty well done. if you want examples of
how to do it check out the tests in the Document Template directory. to
your questions.

you can pass in explicit named variables in a second arg/call to the
template system. like

HTML("python string")(ob=self.myobject, mylist=self.objectItems())

and access the stuff within dtml.









as for the external method stuff, this is a guess. external methods are
just that. external methods. the global stuff isn't defined, they live
in a different internal namespace than a python product or your zope
objects, you can access zope objects through self which is the only hook
general hook back into zope and pass objects explicitly to the doc
template.

etc.

Kapil

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

2000-08-22 Thread Erik Enge


Good morning, people.

I was wondering, can Zope interface to barcodes, magnetic cards
(e.g. credit cards) and other common shop-"accessories"?

Feedback is greatly appretiated :)


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

2000-08-22 Thread R. David Murray

On Tue, 22 Aug 2000, Andy McKay wrote:
> I havent been able to the find TFM to read on Vocabulary and stop words in ZCatalog. 
>I need to search by stuff such as XML::Parser and I think I need to patch 2.2 to do 
>it. But a FM would help. Can anyone point me that way.

I don't think there is one.  Basically, if you want to search on terms
that include punctuation, you have to write your own Splitter.c.
Have fun .  You don't by the way, have to write it
in C, although not doing so presumably has performance implications
or it wouldn't have been written in C to begin with.  But if all
you want the splitter to do is split at blanks and truncate long
words, you probably don't need C...

You are presumably talking about text indexes if you are worried
about Vocabulary and stop words.  Most of the guts of this stuff
is actually located in a module named SearchIndex.  Reading the
source code there is as close to a FM as I think you'll get right
now.  The current Vocablulary does some appropriate wrapping up
of modules in SearchIndex for use by Catalog; if you want to do
your own thing without touching Zope's default machinery you'll
need to write your own Vocabulary object.  It shouldn't be
too hard if you model it after the existing source.

The current text index *does* try to do something sensible in the
case you cite, however.  Words are indexed after being broken at
punctuation.  When a word containing embedded punctuation is used
as a search term, it is turned into a "near" search (xml near
parser, for example).  I have not tested whether or not this actually
works, but from my reading of the code I *think* what it does is
equivalent to an 'and' search on the two words except that the
nearer the two words are in the document the earlier in the result
set the document appears (assuming you don't sort the result set
yourself).

Note that there was a longstanding bug in the search term parsing
machinery that caused some search terms with embedded punctuation
to fail to return any results.  I submitted a patch for this that
has been incorporated as of 2.2.1b1.  (The bug should not have
affected a search term like XML::Parser.)

In theory, I think that instead of rewriting the splitter module
you could rewrite SearchIndex/ResultList's notion of what 'near'
means to constrain the words to be right next to each other.  You
should even be able to enforce ordering.  If it works, it might be
a easier than rewriting the splitter, since you'd only be changing
one python function.

I've been digging around in the SearchIndex code for a while now,
so if you want to ask me more questions, go ahead.  It doesn't mean
I'll know the answers, but I'm happy to share whatever I *have*
learned.

--RDM

PS: this question is really more into 'zope-dev' terratory than
'zope' terratory, if you want to move it.


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

2000-08-22 Thread R. David Murray

On Tue, 22 Aug 2000, Alexander Chelnokov wrote:
> Just installed Z2.2.1b, successfully imported some products but when
> trying to import QSurvey 0.23 got the message:
> 
> Zope Error
> Zope has encountered an error while publishing this resource. 
> 
> Error Type: Permission mapping error
> Error Value: Attempted to map a permission to a permission, Add
> QSurveyResultsItems, that is not valid. This should never happen. (Waaa). 
> 

I believe I saw a message that said that this bug would be fixed
in 2.2.1 final (which presumably means you can get the fix by
checking out the CVS version of Zope).  Search the archives...

--RDM


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

2000-08-22 Thread R. David Murray

On Tue, 22 Aug 2000, Marcus Mendes wrote:
> Is a good idea split Data.fs? (comments)

I'm sure it depends on your system design and constraints.  In a
"normal" situation (whatever that is ) it probably doesn't
matter much.  Some cases where you'd consider it: getting around the
Linux 2GB limit, putting frequently changed objects in a non-undo
storage, putting an area of the site with special characteristics
(eg: the zope.org wiki area) in its own storage.

> Is there any way to divide or split the Data.fs into some parts?

Yes, mountable storages.

--RDM


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

2000-08-22 Thread R. David Murray

On Tue, 22 Aug 2000, Jean Jordaan wrote:
> How do I generalize this DTML method?
[...]
> 
[...]
> The problem is that 'origin_values' bit. It's a TinyTable.
> I want to make 'makeList' a DTML method on its own, and then
> call it to make lists of:
> 
>   clearance_values  
[...]

You could try

  

where somevar holds the id of the tinytable.  I didn't test it,
so there might be some issues about calling the tinytable to resolve.

Or you could write an external method, which could take the table
as an argument.  I'd recommend that for this case, since this method
is pure logic and not presentation at all.

Or I think you could wrap the call to the dtml-method in, eg:

  


and just use  inside your method.

--RDM



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Yihaw on 2.2.1b1, boolean properties

2000-08-22 Thread R. David Murray

On Tue, 22 Aug 2000, Wolfgang Strobl wrote:
> 9. Uncheck "Highlight" and push Save Changes.
> 
> Result: The boolean Highlight property checkbox is still checked. 
> There is no way of making it unchecked, again.

This *sounds* like the boolean property bug that appeared in 2.2 (I
think) and was supposedly fixed in 2.2.1.

By any chance does Yihaw use manage_changeProperties instead of
manage_editProperties in its propertysheet edit method?  That would
lead to the observed behavior since unchecked boolean check
boxes do not appear in REQUEST and thus are not affected by
a manage_changeProperties call.

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Re: [Zope] zope2.2.0 and what is high load

2000-08-22 Thread Bak @ kedai





conclusion (sort of)

> > > I suggest that you:
> > >
> > > 1) Monitor your Zope clients' thread usages by using their debug
> > > facilities.

did this and saw that a lot of connections spent on getting images.  when the
images were moved so that apache serve them, the server is more responsive,
now, i seldom encounter more than 100 simultaneous httpd connection.  it's as
if zope is responding slowly that connections to apache accumulate.

all the images are small in size (<20k).  i still don't have the answers to
why that will affect response time.  anybody?  and i'm sure i never did any
other changes to the setup.  only moving images to apache.

thanks

---

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

2000-08-22 Thread Andy McKay



I havent been able to the find TFM to read on 
Vocabulary and stop words in ZCatalog. I need to search by stuff such as 
XML::Parser and I think I need to patch 2.2 to do it. But a FM would help. Can 
anyone point me that way.


[Zope] copy / paste support

2000-08-22 Thread Andy McKay

I know some people have helped me on this thread before but Ive had chance
to look at this again and Im still stumped on this.

Newly created 2.2 objects still have a problem. Using custom class in Zope
2.2.0.

Thanks.

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 11:05 AM
Subject: [Zope] copy / paste support


> When trying to copy an item I get the following item on paste:
>
> One or more items referred to in the clipboard data was not found. The
item
> may have been moved or deleted after you copied it.
>
> This is a custom python class which is catalogued. Ive no idea why this is
> happening. Any ideas?
>
> --
>  Andy McKay, Developer, ActiveState
>  http://www.ActiveState.com
>  Programming for the People
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

2000-08-22 Thread Evan Simpson

From: "George Osvald" <[EMAIL PROTECTED]>


> I am using ProxyPass configuration with Apache and SiteAccess.
[snip]
> The subdirectory of my web site is 'okstudio'.
[snip]
> I was trying to use SiteAccess on my home machine
> but could not get it working. It would not work for http://localhost or
> http://localhost:8080 ..and so and so.

I'm going to guess at your configuration; please correct me where I miss:

1. Apache with "ProxyPass / http://localhost:8080/okstudio "

2. SiteRoot in "/okstudio" with Base == "http://www.okstudio.com" and Path
== "/"

You want to be able to run a copy at home, connect directly to Zope, and
browse the site.

At home, set the Base=="" and add the following Access Rule in your root:







This way, requests to http://localhost:8080 will get rewritten to
http://localhost:8080/okstudio without affecting URLs (thanks to the
Path=="/" in the SiteRoot).

Cheers,

Evan @ 4-am & digicool


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

2000-08-22 Thread jon

This example here :-
http://www.zope.org/Members/anthony/tree-coding-tricks

with the external method

class _dummy:
def __init__(self, name):
self.name=name

def child_lookup(parent):
c = []
for i in range(0,5):
c.append(_dummy("%s.%d"%(parent, i)))
 return c


and dtml method








appears not to work on zope 2.2.0 or 2.1.6 on RH 6.2 with netscape
4.7x, python 1.5.2

Every node gets the label "0" and then stops expanding.

I also tried a simple example starting with a root of 1 and
computing leaves of 2x and 2x+1 but that also fails.


Any ideas what is goind on? 


Jon



  

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

2000-08-22 Thread Scott Shepherd

Friends,

I have an external method that returns a string containing dtml, but 
I want it to evaluate the dtml and return the result. How do I do 
that?

I noticed in, say, 
/usr/share/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, 
that dtml-containing *files* are used as object methods like this:

from Globals import HTMLFile
manage_main = HTMLFile( 'methodEdit', globals() )

so I figured I could do a similar thing with a dtml-containing string 
and an external method:

from Globals import HTML
dtml_string = ''
external_method = HTML( dtml_string, globals() )

This in fact works, but if I try to reference anything in the current 
object, like

dtml_string = ''

I get KeyError: id.

Apparently I'm getting dtml evaluation but not in the context of the 
current object. What am I doing wrong, and (for extra credit) why 
doesn't ExternalMethod.py have this problem using HTMLFile?

TIA,
Scott

PS: I know I can get the id with

def external_method( self, REQUEST = None ):
return self.id

but the real dtml_string I need to evaluate is much more complicated 
than ''...

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] (my) faulty ZClass constructor

2000-08-22 Thread Dieter Maurer

Jean Jordaan writes:
 >  further testing shows that this works::
 > 
 > DestinationURL()+'/manage_workspace')">
 > 
 > but this::
 > 
 >   
 > DestinationURL()+'/manage_workspace')">
 >   
 > 
 > generates a::
 > 
 >   Error Type: TypeError
 >   Error Value: call of non-function (type string)

I am not sure, but in the DTML User Guide I read
that "dtml-if" is caching its variable (to save time,
in case the variable is a costly method call).

I would expect, it works as follows:

  like any DTML tag, "dtml-if" calls its name parameter
  (if it is callable). I expect that the result of this
  call is bound to the variable name.

  This means, "DestinationURL" which formerly was bound to
  a method, is now bound to the result of calling this
  method, i.e. to a string.



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] RE: [Zope-dev] Fighting with ZServer

2000-08-22 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > To your image in properites add a string property called
 > 
 > Last-Modified 
 > 
 > with value
 > 
 > Wed, 15 Mar 2002 19:02:17 GMT
 > 
 > And your broken image problem will disappear.  
That may be possible.

However, this avoids browser caching of the images (at
least until 2002-3-15). I think, disabling the caching
is not a good thing.

Furthermore, it does not explain, why netscape displays
the image as broken. It should get a nice 304 response
which is usually handles correctly.

By the way, Zope should cope with rounding problems
for the "If-Modified-Since" headers.


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] QSurvey 0.23 and Zope 2.2.1b

2000-08-22 Thread Jim Washington

Hi, Alexander

I have not worked with 2.2.1b yet and have not seen this.

But it sounds like the import is expecting things to be in a different
order than the export, which does not help much for a solution. Thus I
agree with the error message: 

(Waaa).

If it wasn't for the b I would possibly:

1.  Upgrade a test zope to 2.2.1b that has the QSurvey working
2.  Export that Product
3.  See if the new export works with the new 2.2.1b ZODB in a different
install.



I would also submit a bug report to the Collector.

-- Jim Washington


> 
> Just installed Z2.2.1b, successfully imported some products but when
> trying to import QSurvey 0.23 got the message:
> 
> Zope Error
> Zope has encountered an error while publishing this resource.
> 
> Error Type: Permission mapping error
> Error Value: Attempted to map a permission to a permission, Add
> QSurveyResultsItems, that is not valid. This should never happen. (Waaa).
> 
> Any suggestions?
>

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

2000-08-22 Thread R. David Murray

On Tue, 22 Aug 2000, Jean Jordaan wrote:
>## njj: change (changes to login code for GUF) ##
[...]
> I mean, the Manager role *does* have the 'Change ZWiki Pages'
> permission, and does *not* have the 'Anonymous' roles. 

Actually, in at least some versions of GUF, all users also have
the Anonymous role.

--RDM



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Xron and Security [was ZScheduler and Pack]

2000-08-22 Thread Loren Stafford

From: "Marcus Mendes" <[EMAIL PROTECTED]>


> Is it a security risk to leave the Zscheduler pack my Data.fs?

I don't have an answer, but I can clarify the risk. We can use packing
Data.fs as an example application, but the question about security is more
general.

Xron (formerly ZScheduler) does not currently provide any features that deal
with security. Scheduled methods are called thru the Client.py interface
(i.e. by handing a URL to Zope as if it had come from a browser client).

For example, suppose you have a scheduled method "Packer" in the root folder
that calls the management method that packs your database. The URL that the
Dispatcher of Xron uses to execute that method is simply:

   http://www.mysite.com/Packer/trigger

Client.py is capable of passing authentication information in the request;
but because Xron does not (yet) supply authentication information, a
scheduled method must be executable by an unauthenticated user.

If the scheduled method performs any privileged functions, then the method
must have proxy roles that give it sufficient privilege. (I'm not sure what
role is required for manage_pack, but there must be one.)

Therefore, any user (who happens to know about your method and about Xron's
calling convention) can pack your Data.fs simply by keying
http://www.mysite.com/Packer/trigger into a browser.

Suppose an unscrupulous person (who happens to know about your method and
about Xron's calling convention) created a program that would make a request
to http://www.mysite.com/Packer/trigger once every N seconds (easy to do
with Xron!). Could that bring your system to its knees? ...any worse so than
any other repeated request? I don't know the answer. If I were you I'd try
it out.

Can anyone see any other security vulnerabilities here?

I'd be glad to listen to well considered proposals for how Xron should
handle security.

-- Thanks
-- Loren



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

Hello everyone!

My ISP where I have my web page, is running freeBSD 4.0. I do not know a lot
about it. I know how to use crontab to start ZOPE at certain time how ever
how do I use crontab to check on the script that is already running?
Starting ZOPE again when it's running produces an error message and I do not
know if that was a healthy solution.

to start it I would be using something like:

5   *   *   *   *   root./start

This would start the script every five minutes. Now how do I check if the
script is running after it's been started and if it wasn't to restart it
again. Can anyone help?

Regards,

George Osvald

Ps: I know about z2.pid. Neverthless I find ZOPE down quite often everytime
they do something at the ISP. I asked them what to do and they told me to
use crontab to check the script and restart it.




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

2000-08-22 Thread ryon


I would like to run Zope from my commercial host.  I definitely can not get root, and 
they do not allow cgi scripts from anywhere other than cgi-bin.  Therefore Gldnspud's 
"third-party" installation notes do not apply.  Errors when I try.

I can unzip and install successfully in the cgi-bin, but Zope instructions say not to 
do this.  Is there a good reason?

Does this mean I can't use Zope with this hosting service?





Get your free email from AltaVista at http://altavista.iname.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] instead of SiteAccess

2000-08-22 Thread George Osvald

I am using ProxyPass configuration with Apache and SiteAccess. My web-site
is located on ISP's server in my user directory. Because I can't stay on
line for too long during a day(I have a phone on the same line) I tend to do
all editing off line and then at night upload the lot. The subdirectory of
my web site is 'okstudio'. Because I am using SiteAccess(with 'base' in the
folder 'okstudio'), none of the relative links worked on my local machine. I
like my links nice and short that do not include '/okstudio/'. It looks too
long in the address window of my browser. Before each upload to the server I
had to change the links.  I was trying to use SiteAccess on my home machine
but could not get it working. It would not work for http://localhost or
http://localhost:8080 ..and so and so. I tried several times without a
success. Then I decided to use a different approach. I created a property
'base' in the root folder of my site. The string is: http://localhost:8080/okstudio/">. Then I put  in my
standard_html_header and all the alternative headers I use (JavaScript and
stuff). All I have to do now is change the 'base' property to http://www.myserver.com.au/"> before each upload and all the links can
stay the same. I would not even have to use SiteAccess at all if I had a
little redirection method in my root directory. It is all OK but I would
like to know if there is a way how to make SiteAccess working on the local
machine so I can have almost identical setup locally. Can you help anyone?

I am also serving local files located in my original public_html directory
from ZOPE going directly to my user directory. The links look like this:
http://123.45.678.9/~username . Would that be considered a security risk
exposing my user directory like that?
George Osvald


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

2000-08-22 Thread Erik Enge

[Erik Enge]

| Anybody who know which doc string I'm missing?

Yes.  I know, you lowlife.  You see, the misc_ isn't a tuple, it's a
dictionary - repeat after me: d i c t i o n a r y.  Got that now?

Sheesh...

;-)

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

2000-08-22 Thread Marcus Mendes

Hi,

Is it a security risk to leave the Zscheduler pack my Data.fs?

Thanks.

Marcus Mendes


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

2000-08-22 Thread Marcus Mendes

Hello,

Is a good idea split Data.fs? (comments)
Is there any way to divide or split the Data.fs into some parts?

Thanks.

Marcus Mendes


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

2000-08-22 Thread technology

Houston zope users:

Please email me at [EMAIL PROTECTED] . Lets talk about zope.


-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] Extended expression syntax for 'sort' attribute of dtml-in tag (sort-python="...").

2000-08-22 Thread Adam Karpierz

Very please for discussion and acceptance:

http://classic.zope.org:8080/Collector/1542/view

Regards
--
Adam Karpierz
[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] Patch for extended expression syntax of dtml-tag attributes.

2000-08-22 Thread Adam Karpierz

Very please for discussion and acceptance:

http://classic.zope.org:8080/Collector/1541/view

Regards
--
Adam Karpierz
[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] that weird "manage" role ..

2000-08-22 Thread Jean Jordaan

Seeing that 'manage' isn't defined as a role 
(looking at http://localhost:8080/manage_access ), I was 
confused about where it came from. Turns out that the 
superuser (the one entered when installing Zope) has that
role, and managers defined "inside" Zope have the role
'Manager'. 

Is this documented somewhere?

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] (my) faulty ZClass constructor

2000-08-22 Thread Jean Jordaan

Hi all

I realize it's probably going to turn out to be my mistake
all along .. anyway, further testing shows that this works::



but this::

  

  

generates a::

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

with traceback ending::

  File C:\programs\ZopeDev\lib\python\DocumentTemplate\DT_Util.py, line 335,
in eval
(Object: RESPONSE.redirect(
 DestinationURL()+'/index_html'))
(Info: DestinationURL)
  File , line 0, in ?
  TypeError: (see above)

What difference does the  make to DestinationURL?

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

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

2000-08-22 Thread Adam Karpierz

>Okay, firstly, I notice dtml-tree doesn't support the standard
>abbreviation:
>
> -> 
>
>As the following:
>
>
>
>gives me:
>
>Error Type: KeyError
>Error Value: "_.getitem('sequence-item',0)"

There is a patch for it:
http://classic.zope.org:8080/Collector/1540/view

Regards
--
Adam Karpierz
[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] Yihaw on 2.2.1b1, boolean properties

2000-08-22 Thread Wolfgang Strobl

On 22 Aug 2000, 11:15  Soren Roug wrote:

> I don't know why your boolean properties are "sticky". What version of
> Zope have you installed Yihaw on?

Various, starting with 2.1.6.  On what version of Zope doesn't 
doesn't it display this behaviour, IYO?

Anyway. 

1. Install Zope 2.2.0 on Windows 2000, create user id with 
manager role.

2. Copy yhawdirectory.zexp into import folder

3. log in, go to product folder

4 import yihawdirectory.zexp

5. create "Catalog" in root folder

6. Add "Yihaw folder" to root folder

7. Add "Yihaw News Item" to that folder, fill in some test data, into 
Title and Description,  display it. 

8. Now check "Highlight" , push Save Changes and display it 
again. The Highlight checkbox is checked now. So far so good.

9. Uncheck "Highlight" and push Save Changes.

Result: The boolean Highlight property checkbox is still checked. 
There is no way of making it unchecked, again.


[...]

> > I'm still looking for a way to get rid of the "checked" state of
> > some boolean properties, i.e. "toplevel" or "highlight" and such.
> > Once it is set, it sticks.

--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_<===  Schloss Birlinghoven, 
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

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

2000-08-22 Thread Brad Mabe

Thanks,
I did follow the instructions for patching ZOPE (added import crypt to
DT_Util.py).  Any other ideas on what I should look for in my ZOPE
installation?  Is there a specific crypt (crypt.py?) file that I might be
missing?

 -=Brad=-

-Original Message-
From: Stuart Bishop [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 3:04 AM
To: Brad Mabe
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] GUF and crypt


On Mon, 21 Aug 2000, Brad Mabe wrote:

> Greetings,
> I am following the directions in hippy's GenericUserFolder with an SQL
> database how to, and ran into a snag.  When I call crypt, zope returns the
> following:
>
> Error Type: AttributeError
> Error Value: crypt

I think you need to hack your Zope installation to allow access to the
crypt function directly from DTML (it should be in the earlier part of
the doc). This, and a great many other functions, probably should be
available from DTML without hacking but no one has pushed hard enough
to get them added to the Zope distribution yet.

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] followup question (faulty default ZClass constructor)

2000-08-22 Thread Jean Jordaan

so should I change::

  

to::

  

too? (Obviously not grokking it all yet .. )

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Faulty default ZClass constructor method?

2000-08-22 Thread Jean Jordaan

Hi all

If I add a product from ' /Control_Panel / Products ', and
then add a ZClass in there with 'Create constructor objects'
checked, I end up with a ' /Control_Panel / Products / ccTest 
/ testClass_add ' method containing::

  



  


  

This generates::

  Error Type: TypeError
  Error Value: bad operand type(s) for +

  File C:\programs\ZopeDev\lib\python\DocumentTemplate\DT_Util.py, line 335,
in eval
(Object: RESPONSE.redirect(
 DestinationURL+'/manage_workspace'))
(Info: DestinationURL)
  File , line 0, in ?
  TypeError: (see above)

Adding a () to the DestinationURL above made it work::



Shouldn't this be fixed somewhere?

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

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

2000-08-22 Thread Tino Wildenhain

Hi,

"Williamson, Aaron" wrote:
> 
> Peter,
> 
> Try this bit of mojo here:
> 
> 

# actually, it schould be:

> 

# to produce 'month_01' to 'month_12'

>   
> 
> 

Regards
Tino Wildenhain

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

2000-08-22 Thread Aleksander Salwa


On Mon, 21 Aug 2000, Brad Mabe wrote:

> Greetings,
> I am following the directions in hippy's GenericUserFolder with an SQL
> database how to, and ran into a snag.  When I call crypt, zope returns the
> following:
> 
> Error Type: AttributeError
> Error Value: crypt

Maybe you don't have this module ('crypt') in your python instalation.
It's not present in 2.2.0 binary distribution for Linux-x86. Check if you
have file lib/python1.5/lib-dynload/cryptmodule.so.
If not, then you can copy it from RPM package 'python'
(/usr/lib/python1.5/lib-dynload/cryptmodule.so).
(If you work on Linux, of course).


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




[Zope] Missing doc string

2000-08-22 Thread Erik Enge


G'day, fellow Zopistas.

I get

Missing doc string at: http://localhost/misc_/TravelAgent 

When I call

http://localhost/misc_/TravelAgent/Folder_icon.gif>

Anybody who know which doc string I'm missing?


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

2000-08-22 Thread Alexander Chelnokov

Hello,

Just installed Z2.2.1b, successfully imported some products but when
trying to import QSurvey 0.23 got the message:

Zope Error
Zope has encountered an error while publishing this resource. 

Error Type: Permission mapping error
Error Value: Attempted to map a permission to a permission, Add
QSurveyResultsItems, that is not valid. This should never happen. (Waaa). 

Any suggestions?

Best regards,
 Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
str.Bankovsky, 7. Ekaterinburg 620014 Russia 
ICQ: 25640913



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

2000-08-22 Thread Michael Arndt

Two for me very important issues for ownership:
a) a non privileged user could see date for which he was not allowed !
b) how do i change the ownership of a folder in the Unix sense of chown
?

I don't understand the new concept. My Problems are:
a) we were able to log in as a non privileged user and view a Folder,
for which acess
was only allowed for the owner of this folder and no one else.
How come and what did i do wrong ?
Zope installation was new 2.2 and the folders and users were newly
generated.


c) When i want to change the ownership of a folder like chown in Unix:
Superuser is not allowed, anyone else can only take, user can not give
away

so in my view
1. Both useres havbe to have access
2. User B takes ownership
3. USER B modifies acces so that user A can not anymore acess ?

thanks for any help
Micha

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

2000-08-22 Thread Uwe_Kluge



Hi all,

I am running the Z ODBC database adapter to connect to ORACLE databases.
To using a ODBC data source, you have to type in datasource name, database user
and
password (it's impossible to use variables at this point).

Is there any way to change the database user and password at runtime,
so that every user can login with his own database user?

Thank you in advance for any kind of help.



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

2000-08-22 Thread Jean Jordaan

Hi Zopers

How do I generalize this DTML method?

...



 



...

The problem is that 'origin_values' bit. It's a TinyTable.
I want to make 'makeList' a DTML method on its own, and then
call it to make lists of:

  clearance_values  
  docs_values  
  origin_values  
  products_values  
  series_values  

-- 
jean

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

2000-08-22 Thread Soren Roug

I too need thread-support in HPUX and have been unsuccessfull in getting
it to work. According to the DejaNews newsgroups, threads under 10.20
are DCE threads, so maybe if you configure python with
--with-dec-threads ... That avenue is not open to me, as the HPUX i have
access to does not have the optional threads package installed, and
nobody knows how to install it. (At least I got them to type 'shutdown'
before they remove power :-)

What I need is a threads-package I can install in /usr/local/lib. Does
anyone have one? 

Bill Anderson wrote:
> 
> "R. David Murray" wrote:
> >
> > On Mon, 21 Aug 2000, Michael Maul wrote:
> > > Does any one have zope running on hpux 10.20?
> > > It needs a thread enabled python, which I have not been able to build
> > > (Using pthread 1.3.7)
> > > each time I try to run the python Interpeter it core dumps..with..
> > > pthread_mutex_init: Invalid argument
> >
> > For help on getting an HPux thread enabled python, you might try
> > www.python.org and/or the Python specific mailing lists and newsgroups.
> 
> And once you have done that, yes Zope runs fine on it.
> 
> :)
>

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




Re: [Zope] Zope.Org Style Developers Portal Question

2000-08-22 Thread Peter Bengtsson

>
> Hi. One of my clients needs to build a portal for developers
> to share information.  Showed them www.zope.org and they
> liked it.  Home much time would it take for a novice to
> go from a raw zope distribution to put in place the core
> functionality/look/feel of the zope.org portal?

As an example
I created a complete Timesheet tracking system for my (not so big) company
yesterday, using cabbie's TimeTracker (Timesheet) product.
It works fine, but I need to to some minor tweaks to it.
The kewl thing is that I spent 25 mins on it totally. 15 of those 25 mins
was spent on adding some style to the site. Nice colors and goodlooking
fonts.

If you have more than 25 mins to spend, do so on additional stuff and extra
features such as style and design.
Simple. Why do stuff you don't have to do, when some1 else's done it for
you?

Credits to all Zope Product Authors and the Zope team itself!

>
> -Tim
>
> Tim Bass, Silk Road
> http://www.silkroad.com/
>
> Network-Centric Subject Matter Expert, AFCIC/SYN
> Network-Centric Subject Matter Expert, DOE/CIO
>
> http://calendar.yahoo.com/public/timothy_james_bass
>
> Voice: 703 222 4243
> Fax:   703 222 7320
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Permissions / roles question

2000-08-22 Thread Jean Jordaan

Hi all

If "I'm jean with role(s) manage.", then why does this code in 
'standard_wiki_footer' not offer to log me out?::


  Edit this
page 
   ## njj: change (changes to login code for GUF) ##

  
Login 
  
Logout 
  

  Login to
edit


I mean, the Manager role *does* have the 'Change ZWiki Pages'
permission, and does *not* have the 'Anonymous' roles. 

What kind of a role is 'manage' anyway?? Roles in my Zope
are: 'Anonymous Manager Owner ZWikiApprover ZWikiManager' and 
'ZWikiUser', so where does 'manage' come from? It gets printed
by the following from 'DTML Method at /debugging_info', which
is referenced from 'standard_html_footer'::

  
with role(s) 
  

 , 
  
.
  

To try and answer my own question: '/wiki' access is governed by 
'/wiki/acl_users', (Generic User Folder), where 'jean' does *not* 
feature. Hmm, so 'DTML Method at /debugging_info' doesn't show 
the roles of 'jean' in the context of 'this()'? But surely this 
doesn't change the fact that 'jean' *does* have the 'Change ZWiki 
Pages' permission, and does *not* have the 'Anonymous' role. 

Enlightenment needed!

Regards,
-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

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

2000-08-22 Thread Geir Bækholt

on Tuesday, August 22, 2000 Jean Jordaan wrote :
JJ> Hi all 

JJ> Looks like I'm running into a cookie hassle with Opera 4.01

JJ> I copy everything in '/docs/tmp' and paste to '/docs'. Lo
JJ> and behold, '/docs' contains not the items copied from 
JJ> '/docs/tmp', but the stuff that was on the clipboard end 
JJ> of yesterday. IE 5.5 did it right. 

JJ> Has anyone else encountered anything similar using Opera?


Had some problems with Opera3.6 and cookies, but it seems to
work with v4.01

I still rather use IE for my Zope-management (athough i use
Opera for everything else) , because opera has some slight
problems with frames and the history/back-button..


--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.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] Yihaw on 2.2.1b1, boolean properties

2000-08-22 Thread Soren Roug

I (the Yihaw developer) get the same problem with 2.2.1b1. I guess
that's why Digital Creations call it a beta version.

I don't know why your boolean properties are "sticky". What version of
Zope have you installed Yihaw on?

Wolfgang Strobl wrote:
> 
> I just tried installing a freshly downloaded copy of
> YihawDirectory.zexp into a relatively new 2.2.1b1, but in vain.
> 
> 
> Error Type: Permission mapping error
> Error Value: Attempted to map a permission to a permission,
> Add Yihaw Objects, that is not valid. This should never happen. (Waaa).
> 
> 
> I'm still looking for a way to get rid of the "checked" state of
> some boolean properties, i.e. "toplevel" or "highlight" and such.
> Once it is set, it sticks.
>

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

2000-08-22 Thread Jean Jordaan

Hi all 

Looks like I'm running into a cookie hassle with Opera 4.01

I copy everything in '/docs/tmp' and paste to '/docs'. Lo
and behold, '/docs' contains not the items copied from 
'/docs/tmp', but the stuff that was on the clipboard end 
of yesterday. IE 5.5 did it right. 

Has anyone else encountered anything similar using Opera?

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] anyone got a foolproof 2.1.6 -> 2.2.0 via import schema?

2000-08-22 Thread Tony . McDonald

On Mon, 21-Aug-2000, you wrote:

>Tony McDonald wrote:
>> 
>> I get KeyErrors from 2.2.0 with an Error value of a rubbish character
>> when trying to import a folder of various objects. This also happens
>> when trying to import the XML version, except the Error Value is 'id'
>> (but with no idea of where the error is in the XML file ...
>> irritating).
>> 
>> any ideas? this is driving me up the bloody wall.
>> ta
>> tone
>
>Hi, Tony.  2.2.0 had some problems with the ZDOM that prevented XML
>documents from functioning properly.  This should be fixed in more
>recent versions.
>
>Hope that helps,
>

Thanks for the info Ethan. I managed to fix things (read: hack) to get me out

of that bind, but I'll wait for the newer version of Zope as well..

cheers
tone.


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




Re: [Zope] Zope.Org Style Developers Portal Question

2000-08-22 Thread Chris Withers

Tim Bass wrote:
> 
> Hi. One of my clients needs to build a portal for developers
> to share information.  Showed them www.zope.org and they
> liked it.  Home much time would it take for a novice to
> go from a raw zope distribution to put in place the core
> functionality/look/feel of the zope.org portal?

Check out the PTK

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] Sizing questions

2000-08-22 Thread Lucas Hofman

This message is cross-posted to both the zope and the PTK mailing lists.
The restrictions I hope to hear about might be in both products.

1. The ZODB database we are using has passed 500 MB in Size (Yes, it is
packed). It is about 50/50 populated with small news items and files of
1-4Mb in size. I expect it to pass 1 GB in 6-12 months. At present
response is very good, both in retrieving items and in accessing the
catalog. Does anyone has experience with much larger databases? Are
there any build in limits that I should take into account.

2. The portal user administrion is based on a ACL-users folder. 70 users
at present, expected to reach 500-1000 after we disallow anonymous
viewing. Will that still work?

Regards, Lucas
-- 
Lucas Hofman
PGS Serestel: +47 67514059
PO Box 354   fax: +47 67526640
N-1324 Lysaker, Norway



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

2000-08-22 Thread Stuart Bishop

On Mon, 21 Aug 2000, Brad Mabe wrote:

> Greetings,
> I am following the directions in hippy's GenericUserFolder with an SQL
> database how to, and ran into a snag.  When I call crypt, zope returns the
> following:
> 
> Error Type: AttributeError
> Error Value: crypt

I think you need to hack your Zope installation to allow access to the
crypt function directly from DTML (it should be in the earlier part of
the doc). This, and a great many other functions, probably should be
available from DTML without hacking but no one has pushed hard enough
to get them added to the Zope distribution yet.

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


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