[Zope] case insensitive search?

2001-01-02 Thread Robin Becker

Is there an easy way to make the Find tab case insensitive. It seems
like a very common need, but I see that FindSupport.py is calling
string.find which makes it seem as though this is harder than it should
be.
-- 
Robin Becker

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

2001-01-02 Thread Chris McDonough

Bob,

Responding to both of your messages in this one...

Actually, in the current implementation, session data objects are not
acquirers, so the syntax you're advocating won't do what you think it might.
Currently, nothing would be acquired, and the  call will fail
inside of a "with sessiondatamanager" even if we did have a __getattr__
interface to session data objects.  This could be changed.  We could make
data objects acquirers.  I can see the rationale for something like this,
where you want to "fall through" to a default acquired value.   Session data
object interaction with acquisition was something I didn't think about at
all.  I'm glad you've brought it up.


Note that it's also possible to do something like:


  

  

  


Which will return the rendering of bar (which is itself the result of
'amethodcall') if a value for 'foo' cannot be found.  This is way more
verbose than just acquiring 'amethodcall', but it's very understandable.

Currently, I'm leaning towards leaving it explicit both in syntax (explicit
set and get methods) and semantics (no acquisition), because we've gotten in
a lot of trouble in the past when attempting to do likeminded magical
things -- like making all common Zope objects acquisition-implicit.  And
although acquisition isn't that magical, it can sure blow up on you when you
don't know what you're doing.  Murphy's law says that this will happen to
every newbie, and I'll be left holding the bag.  ;-)

As for some of your other points:  The current interface is very verbose.
I'm just not sure that's such a bad thing.  :-)  You can do something like:



... if you don't want to do all the s and -lets.

God help me though, I am thinking of aliasing the __call__ method of a
session data manager to getSessionData, so that this would work:


   


or this:



This might be explainable.  It reminds me however of a similar feature of
the catalog that is very hard to explain (the aliasing of searchResults to
__call__), and it makes me want to not do it.  If I do do it, getSessionData
will disappear from the interface, and there will only be one way to do it
(via a session data manager's __call__).

I'm not sure I understand your desire to do:



I particularly don't understand what would end up getting rendered if (as
per your syntax) you subsequently did:



I sympathize with the need to convert all your scripts over to use
sessioning from hidden form-field encoding and the like... I'd really
appreciate some input as to what kinds of problems you're trying to solve
with sessioning, because this implementation was done sort of clean-room
style and thus may lack real-world practicality.  I haven't used it as a
component in any development personally.  Having some real examples of
conversion work or initial implementation work to chew on might help me
markedly improve the implementation.  Some of my arguments may be an
overreaction to past problems, and you may need to straighten me out with
some examples of how making session data objects acquirers and making the
interface less verbose could help more than it could hurt in a real-world
app.

Thanks much for all the input!

- C


- Original Message -
From: "Bob Sidebotham" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 11:55 PM
Subject: Re: [Zope] Core Session Tracking kudos & namespaces


> The advantage of the last form (below), is that you can use
> acquisition, and don't need to know whether the variable came from the
> session or from elsewhere. If you *really* want it to come from the
> session only, you can always add the "only" tag to the dtml-with call.
>
> In conjunction with this, it might be nice to have a special call that
> sets the variable, if defined by acquisition, in the session. Something
> like  would set "a"
> to the acquired value for "a", leave it undefined if not defined, and
> not change it if it was not acquirable elsewhere (the acquired value
> would take precedence over the session value).
>
> Even better would be if I could just say  "SESSION.set('a')">.
>
> Bob
>
> --- Chris McDonough <[EMAIL PROTECTED]> wrote:
>
> > A potential rhythm, however, might look like:
> >
> >   
> > 
> >   
> > 
> >   
> >
> >and
> >
> >   
> > 
> >   
> > 
> >   
> >
> > I sorta like it the original way now that I've written that down.
> > :-)  It's
> > easier to explain, AFAICS.
> >
> >
>
>
> __
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/
>


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




RE: [Zope] Advice on searching/indexing Word documents?

2001-01-02 Thread Bjorn Stabell

This is something I've been longing for a long time.  Wvare is cool, and
it should also be able to access properties of many Windows (OLE)
documents, not just Word documents.

I've been thinking about extending the File class so that it becomes
aware of the different file types and allows access to (read/write) meta
data and indexing of the files' content.  If we can setup a nice
framework for it, I'm sure a lot of people could contribute code for
specific file formats.

Bye,
-- 
Bjorn

-Original Message-
From: Jens Vagelpohl [mailto:[EMAIL PROTECTED]]
Posted At: Wednesday, January 03, 2001 11:28
Posted To: Zope List
Conversation: [Zope] Advice on searching/indexing Word documents?
Subject: Re: [Zope] Advice on searching/indexing Word documents?


if you're on linux check out WVWare:

http://www.wvware.com

it's a C library that handles all word doc formats since 6.0 or so

jens


On Tue, 02 Jan 2001, Bowyer, Alex wrote:
> Our company has a repository of staff CVs (Resumes) as Word Documents
and I
> am about to embark on creating a new feature for our Zope Intranet to
allow
> project managers to search those documents for keywords such as
particular
> skills or projects.
>
> I am thinking about several possibilities such as a skills/CVs
database
> linked in via ODBC, or some task that converts the Word documents to
text
> files which can then be searched by Zope (I think Zope can do this,
and I
> assume it can't search Word format directly?).
>
> Has anyone ever approached a similar problem, does anyone have any
tips on
> how to index/search a load of documents in Zope?
>
> Any tips/suggestions/comments would be most welcome.
>
> Thanks,
>
> Alex


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

2001-01-02 Thread Bob Sidebotham

And as I've just figured out by trying to convert some stuff to
sessions, a not unconsequential result of allowing session variables to
be acquired (if only for read purposes), is that existing code is
easier to adapt. I might now call a script without burying form
variables or parameters in the URL. If I use implicit acquisition
(where the posted form data and URL data is read FIRST), then I can
gracefully upgrade these scripts without changing anything. With the
current scheme I have to go and search out all occurences of variables
like "customer_id" and change them to session syntax.

So I guess I'm arguing that the read case and write cases are
fundamentally different, that you basically want to support the
introduction of session variables into the namespace for read purposes
through acquisition, and it's (marginally) OK if read/write don't share
the same syntax.

Bob

Bob Sidebotham wrote:
> The advantage of the last form (below), is that you can use
> acquisition, and don't need to know whether the variable came from
the
> session or from elsewhere. If you *really* want it to come from the
> session only, you can always add the "only" tag to the dtml-with call.

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

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




Re: [Zope] Core Session Tracking kudos & namespaces

2001-01-02 Thread Bob Sidebotham

The advantage of the last form (below), is that you can use
acquisition, and don't need to know whether the variable came from the
session or from elsewhere. If you *really* want it to come from the
session only, you can always add the "only" tag to the dtml-with call.

In conjunction with this, it might be nice to have a special call that
sets the variable, if defined by acquisition, in the session. Something
like  would set "a"
to the acquired value for "a", leave it undefined if not defined, and
not change it if it was not acquirable elsewhere (the acquired value
would take precedence over the session value).

Even better would be if I could just say .

Bob

--- Chris McDonough <[EMAIL PROTECTED]> wrote:

> A potential rhythm, however, might look like:
> 
>   
> 
>   
> 
>   
> 
>and
> 
>   
> 
>   
> 
>   
> 
> I sorta like it the original way now that I've written that down. 
> :-)  It's
> easier to explain, AFAICS.
> 
> 


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

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




Re: [Zope] Core Session Tracking kudos & namespaces

2001-01-02 Thread Chris McDonough

> 1. The Core Session Tracking looks like it will be really helpful. I AM
> BLOWN AWAY BY THE QUALITY OF THE DOCUMENTATION. Congratulations for
> making really readable, easy to use installation and use instructions.
> Part of the reason I'm so blown away, of course, is that the quality of
> this documentation is so very much superior to most of the existing
> documentation. The author obviously put himself in the position of
> someone who didn't know anything about the topic, and wrote the
> documentation to satisfy this person (i.e. me). Thanks!

Thanks for the kudos!

> 2. Question. The interface to the session data object, requiring
> set/get calls to get key/value pairs seems a little inconsistent with
> the very simple existing interfaces for other zope namespaces. As a
> newbie, I admit to being very confused about namespaces in zope, and
> the GOOD THING about the core session tracking is that it is very clear
> that you're accessing a variable from that scope. There's no way you
> can accidently acquire something else. On the other hand, the ability
> to access the session variables with simple variable references seems
> like it would be a win (especially if they were safely qualified by the
> session object). I really just want to do something like
> "SESSION.varname". Is this something that can be wrapped on top of the
> existing interface?

Yes.  I will think about this, because I'm not very happy about the current
data object interface.  It definitely needs work.

I had orignally intended to use a straight mapping (dictionary) interface,
but we've got a lot of DTML code that looks like "_[[['']]]" already, so I
didn't want to perpetuate the problem by encouraging __getitem__ and
__setitem__ access in DTML.  :-)  That's why you can't do SESSION['varname']
right now, and instead you need to use SESSION.get('varname').  This lends
itself better to things like:

  

  

  

  which potentially has the same rhythm as

  

  

  

  as opposed to the following combination

  

  

  

  vs

  

  

  

The enforced parity in the former set of DTML snippets between get and set
methods makes the data object a little easier to explain to non-Python
people.  And it's easier to explain to Python people that the data object
isn't a mapping than to explain to non-Python people what a mapping is in
the first place and how and why they need to do all the funny quoting and
bracketing.  :-)

The __getattr__ interface for retrieval and .set() for insertion might work
better, however, because it doesn't require quoting at all.  It still has
the problem that you may want to use an indirect variable name, in which
case you'd need to use something like "_.getattr(sessiondataobject, aname)",
which is just as evil.  You also can't do assignments in DTML, so you'd
still need a 'set' method.

A potential rhythm, however, might look like:

  

  

  

   and

  

  

  

I sorta like it the original way now that I've written that down.  :-)  It's
easier to explain, AFAICS.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Advice on searching/indexing Word documents?

2001-01-02 Thread Jens Vagelpohl

if you're on linux check out WVWare:

http://www.wvware.com

it's a C library that handles all word doc formats since 6.0 or so

jens


On Tue, 02 Jan 2001, Bowyer, Alex wrote:
> Our company has a repository of staff CVs (Resumes) as Word Documents and I
> am about to embark on creating a new feature for our Zope Intranet to allow
> project managers to search those documents for keywords such as particular
> skills or projects.
>
> I am thinking about several possibilities such as a skills/CVs database
> linked in via ODBC, or some task that converts the Word documents to text
> files which can then be searched by Zope (I think Zope can do this, and I
> assume it can't search Word format directly?).
>
> Has anyone ever approached a similar problem, does anyone have any tips on
> how to index/search a load of documents in Zope?
>
> Any tips/suggestions/comments would be most welcome.
>
> Thanks,
>
> Alex


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

2001-01-02 Thread Bob Sidebotham

1. The Core Session Tracking looks like it will be really helpful. I AM
BLOWN AWAY BY THE QUALITY OF THE DOCUMENTATION. Congratulations for
making really readable, easy to use installation and use instructions.
Part of the reason I'm so blown away, of course, is that the quality of
this documentation is so very much superior to most of the existing
documentation. The author obviously put himself in the position of
someone who didn't know anything about the topic, and wrote the
documentation to satisfy this person (i.e. me). Thanks!

2. Question. The interface to the session data object, requiring
set/get calls to get key/value pairs seems a little inconsistent with
the very simple existing interfaces for other zope namespaces. As a
newbie, I admit to being very confused about namespaces in zope, and
the GOOD THING about the core session tracking is that it is very clear
that you're accessing a variable from that scope. There's no way you
can accidently acquire something else. On the other hand, the ability
to access the session variables with simple variable references seems
like it would be a win (especially if they were safely qualified by the
session object). I really just want to do something like
"SESSION.varname". Is this something that can be wrapped on top of the
existing interface?

Bob Sidebotham
[EMAIL PROTECTED]


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

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




Re: [Zope] Zope Projects in NL/Europe?

2001-01-02 Thread Henny van der Linde

Hi,

>From the Netherlands,

- Original Message -
From: "Jonathan" <[EMAIL PROTECTED]>
To: "Zope Mailinglist" <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 12:43 AM
Subject: [Zope] Zope Projects in NL/Europe?


> Just wondering: are there any Zope projects are available in the
> Netherlands/Benelux/Europe?

What do you mean by 'available'?

> We did one last year but they seem hard to
> find.

What do you mean by 'hard to find' ? Where did you look?
I'ts a matter of analyzing your clients needs/wishes etc. and matching the
outcome of this process with the right tools, platform etc.
When in comes down to interactive, database driven web applications in
combination with decentralized content management we think Zope is the best
platform around
(btw it's our firm believe that these kind of websites will be very much in
demand, so there is money to be made). It's a matter of convincing the
client. Basically your client has to find Zope with your aid.

> Are there commercial projects available or is Zope mostly used on
> internal projects?

I guess you mean projects developed inhouse versus outhouse. It's my
impression that most Zope projects are at this moment developed inhouse
(BeNeLux). That doesn't mean that there isn't room for commercial
enterprises. It has more to do with 'playing safe', and lack of creativity
from the commercial perspective.

> Is there any demand for Zope expertise around here?

You have to create the demand (based on ... see above).

> Reason I'm asking is that I'd love to continue working with Zope, but
> it's hard to justify in a company focused on Microsoft and Oracle,
> especially if there is no money to be made.

I think there is (lots of) money to make, but if your company has no
strategy for Zope (only a, short sighted, strategy based, only on the major
brand names) you are going nowhere with your Zope expertise within your
company. Btw, if you have Zope knowledge you know that  Zope has no problems
with Microsoft and Oracle.

>I can learn Perl on company
> time and Linux is our internet server OS of choice, but JSP/Java and
> .NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't
> find a use for our Zope expertise.

(Repeat myself) What did you do to find it? Btw Zope can be integrated with
JSP/Java, SOAP/XML-RPC and Perl.

My background,
I''m co-president/owner of a Dutch based ICT consultancy firm (founded in
1987). Our strategy is now focussed on Zope webapplications based on our
'crystal ball' (content management is the keyword) and input from our
clients.
Besides that I'm one of the keymembers of a small team that developes
webapplications, with Zope, for the Faculty of Social Sciences of the Leiden
University. Part of this system is an advanced webbased learning system.


>
> Thnx
> Jonathan
>

regards,

Henny van der Linde



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

2001-01-02 Thread Morten W. Petersen

[Morten W. Petersen]

| Se her dah..

Sorry guys.

-Morten

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] browser window as canvas for configurable objects?

2001-01-02 Thread Bob Sidebotham

I'm new to zope, so maybe these questions are naive.

I have several objects that I want to display on my browser screen
simultaneously. Each object lives in its own zope directory, and I can
trivially include them in a bigger canvas using a table and dtml-with
and dtml-var. So far so good.

Each of the sub objects can put up its own links for configuration,
etc. Some of the sub objects might be pageable (e.g. have links to next
10 items, previous 10), or they might be configurable (you could go to
a screen to establish filtering parameters for that object).

What I'm looking for is the simplest possible effective way to manage
these links so that after the customization operation or the next page
oeration, or whatever is handled, the original page is displayed (and
of course any affected objects are updated). In some cases there may be
a side-excursion made before the page is re-displayed (e.g. for "next
10 items", there is no side excursion), for "update filtering
parameters" or update object, a separate form will be brought up).

I should mention that the same objects may appear in the same or
different forms on different pages, i.e. there isn't just one main
page.

Some alternatives I can see are:

1. Use javascript, and do a history.go(-1) or -2, as the case may be to
go back to the original page. Disadvantage: requires an extra
round-trip, probably would have to make sure page wasn't cached, may
break user's model of how navigation works (if he made a mistake in the
configuration, he'd have to go forward, rather than backward, to
retrieve the configuration form, for example).

2. Use a pop-up window. Redraw the original when done. Advantage: by
labelling the main window "main" or whatever, it's easy for unrelated
objects to "return" to the main application by (1) causing "main" to
reload and (2) deleting their own window.

3. Use frames. Seems overly complex. But maybe this is just a general
aversion to hacking to much html.

4. Use existing zope infrastructure to finesse this. I'm not sure how
to do this--my main confusion centers around how much state to I have
to preserve (and where?) to re-create exactly the same request that I
had at a previous level--in a totally generic fashion.

5. Build some sort of Product that represents this model directly. This
seems the most promising, if not the easiest. Can someone point me to
any prior art on this, or offer any suggestions?

It seems to me that since zope is supposed to be about "object
publishing", then this application should (ideally) be dead-easy. But
at the moment I'm scratching my head.

Any help would be greatly appreciated.

Thanks!

P.S. Does anyone else think this facility would be useful?

Bob Sidebotham
[EMAIL PROTECTED]


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

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




RE: [Zope] Advice on searching/indexing Word documents?

2001-01-02 Thread sean . upton

Cool.  I'll have to take a look at this.  Does anyone know if there is any
effort aimed at writing document filters for use with Zope?  A lot of
commercial products used for knowledge management (like NextPage
LivePublish, some Intranet search engines, etc) already have features like
this, and I would think that a project for document filters would be a good
idea, if something like this doesn't already exist.

Possible things that could be filtered for input:
- The IPTC header data from a JPG/TIF image - comtains a few things like the
caption (the same one that you can edit in photoshop) - This would be a good
addition to various Image classes.
- Office documents (word, excel, powerpoint, wordperfect, staroffice, etc)
- PDF and Postscript documents
- Illustration files (Illustrator, CorelDraw)

The value of such filters to Zope for use in knowledge-management and
digital asset management would be great; I'm wondering if anyone is working
on anything like this?

Sean

-Original Message-
From: Jonothan Farr [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 4:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] Advice on searching/indexing Word documents?


>I used to
> write text filters in C and Lex for my previous employer - one of these
days
> I will figure out how to extend python with C and do this.  

Here's one that's written entirely in Python:
http://www.cosc.canterbury.ac.nz/~greg/python/Plex/

I've seen a couple of other implementations out there.

--jfarr


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Advice on searching/indexing Word documents?

2001-01-02 Thread Phil Harris

Alex,

If your running Zope on Win32 you could use COM to snatch the text fairly 
easily and quickly.

The COM interface to Word is well documented in the help files (if they're 
not installed, you'll find them on the CD).

I used this technique to create XML from Word in the past and it works (was 
too slow for my needs tho, YMMV)

hth

Phil
[EMAIL PROTECTED]

On Tue, 02 Jan 2001, Bowyer, Alex wrote:
> Our company has a repository of staff CVs (Resumes) as Word Documents and I
> am about to embark on creating a new feature for our Zope Intranet to allow
> project managers to search those documents for keywords such as particular
> skills or projects.
>
> I am thinking about several possibilities such as a skills/CVs database
> linked in via ODBC, or some task that converts the Word documents to text
> files which can then be searched by Zope (I think Zope can do this, and I
> assume it can't search Word format directly?).
>
> Has anyone ever approached a similar problem, does anyone have any tips on
> how to index/search a load of documents in Zope?
>
> Any tips/suggestions/comments would be most welcome.
>
> Thanks,
>
> Alex
>
> ==
> Alex Bowyer
> IT Consultant, Logica Australasia
> Tel: +61 2 9202 8130
> Fax: +61 2 9922 7466
> E-mail : [EMAIL PROTECTED]
> WWW: http://www.logica.com.au/
> ==
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Advice on searching/indexing Word documents?

2001-01-02 Thread Jonothan Farr

>I used to
> write text filters in C and Lex for my previous employer - one of these days
> I will figure out how to extend python with C and do this.  

Here's one that's written entirely in Python:
http://www.cosc.canterbury.ac.nz/~greg/python/Plex/

I've seen a couple of other implementations out there.

--jfarr



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

2001-01-02 Thread Chris McDonough

Hello,

A new development release of the "Core Session Tracking" product (0.4) is
available at http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking

This release makes substantial interface and feature changes including using
an internal mounted storage to provide an "internal" session data container
to each session data manager, autoexpiring session data objects, as well as
vastly improved documentation.

Please check it out!

Thanks,

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] Logica bruker Zope (...)

2001-01-02 Thread Morten W. Petersen

Se her dah..

-Morten

[Alex Bowyer]
| Our company has a repository of staff CVs (Resumes) as Word Documents and I
| am about to embark on creating a new feature for our Zope Intranet to allow
| project managers to search those documents for keywords such as particular
| skills or projects.
| 
| I am thinking about several possibilities such as a skills/CVs database
| linked in via ODBC, or some task that converts the Word documents to text
| files which can then be searched by Zope (I think Zope can do this, and I
| assume it can't search Word format directly?).
| 
| Has anyone ever approached a similar problem, does anyone have any tips on
| how to index/search a load of documents in Zope?
| 
| Any tips/suggestions/comments would be most welcome.
| 
| Thanks,
| 
| Alex
| 
| ==
| Alex Bowyer
| IT Consultant, Logica Australasia
| Tel: +61 2 9202 8130
| Fax: +61 2 9922 7466
| E-mail : [EMAIL PROTECTED]
| WWW: http://www.logica.com.au/
| ==
| 
| ___
| Zope maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope
| **   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] Zope Projects in NL/Europe?

2001-01-02 Thread Jonathan

Hi all,

Just wondering: are there any Zope projects are available in the
Netherlands/Benelux/Europe? We did one last year but they seem hard to
find. Are there commercial projects available or is Zope mostly used on
internal projects? Is there any demand for Zope expertise around here?

Reason I'm asking is that I'd love to continue working with Zope, but
it's hard to justify in a company focused on Microsoft and Oracle,
especially if there is no money to be made. I can learn Perl on company
time and Linux is our internet server OS of choice, but JSP/Java and
.NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't
find a use for our Zope expertise.

Thnx
Jonathan


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




RE: [Zope] Advice on searching/indexing Word documents?

2001-01-02 Thread sean . upton

I've been thinking about doing this. I wonder if there are any C filter
libraries that read word docs. The word 2000 docs are supposedly non-binary,
so you could proabaly write a parser of sorts in python or C/Lex; I used to
write text filters in C and Lex for my previous employer - one of these days
I will figure out how to extend python with C and do this.  I'm thinking
about doing this type of thing in order to make PDFs searchable (as well as
IPTC catopn data in JPG files).

Perhaps in the mean time, one could set up a macro in normal.dat template
file that ftps the doc to zope on every save and updates properties
containing the full text for the document.  Sort of kludgy, but I assume it
would work, if you were familiar with VBA coding, and had access to a http
client component.

Doing it this way would make it so you would likely have to manually reindex
the catalog.  There might be a way around that though, to automate it...

Sean

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


-Original Message-
From: Bowyer, Alex [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 2:45 PM
To: '[EMAIL PROTECTED]'
Subject: [Zope] Advice on searching/indexing Word documents?


Our company has a repository of staff CVs (Resumes) as Word Documents and I
am about to embark on creating a new feature for our Zope Intranet to allow
project managers to search those documents for keywords such as particular
skills or projects.

I am thinking about several possibilities such as a skills/CVs database
linked in via ODBC, or some task that converts the Word documents to text
files which can then be searched by Zope (I think Zope can do this, and I
assume it can't search Word format directly?).

Has anyone ever approached a similar problem, does anyone have any tips on
how to index/search a load of documents in Zope?

Any tips/suggestions/comments would be most welcome.

Thanks,

Alex

==
Alex Bowyer
IT Consultant, Logica Australasia
Tel: +61 2 9202 8130
Fax: +61 2 9922 7466
E-mail : [EMAIL PROTECTED]
WWW: http://www.logica.com.au/
==

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Advice on searching/indexing Word documents?

2001-01-02 Thread Bowyer, Alex

Our company has a repository of staff CVs (Resumes) as Word Documents and I
am about to embark on creating a new feature for our Zope Intranet to allow
project managers to search those documents for keywords such as particular
skills or projects.

I am thinking about several possibilities such as a skills/CVs database
linked in via ODBC, or some task that converts the Word documents to text
files which can then be searched by Zope (I think Zope can do this, and I
assume it can't search Word format directly?).

Has anyone ever approached a similar problem, does anyone have any tips on
how to index/search a load of documents in Zope?

Any tips/suggestions/comments would be most welcome.

Thanks,

Alex

==
Alex Bowyer
IT Consultant, Logica Australasia
Tel: +61 2 9202 8130
Fax: +61 2 9922 7466
E-mail : [EMAIL PROTECTED]
WWW: http://www.logica.com.au/
==

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




Re: [Zope] HELP re: MailHost and Hotfix 2000_-12-08

2001-01-02 Thread Shane Hathaway

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

Two solutions:

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

2) Upgrade to Zope 2.2.5b1.

Shane

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




Re: [Zope] manage_users( ) method

2001-01-02 Thread Aleksander Salwa

On Tue, 2 Jan 2001, Mohan Baro wrote:
> Where can I get the specifications for acl_users.manage_users()?

I know it's not the best answer, but you can read the
source: ZOPE_DIR/lib/python/AccessControl/User.py


[EMAIL PROTECTED], [EMAIL PROTECTED]

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



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




[Zope] Problem installing zope products

2001-01-02 Thread Darrin Nova

Hello,

I am having problems installing zope products (*.zexp files) using the import 
function.

I have tried several products including TimeTracker-0.0.3.zexp, 
EvTracker.zexp, ZPhotoAlbum-1.0.zexp and others. I get the same error when 
trying to install these three.

For example with Time Tracker I get...

The object TimeTracker does not support this operation
   
Traceback (innermost last):
  File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /opt/zope/Zope-2.2.4-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/mapply.py, line 160, in 
mapply
(Object: manage_importObject)
  File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: manage_importObject)
  File /opt/zope/Zope-2.2.4-src/lib/python/OFS/ObjectManager.py, line 537, in 
manage_importObject
(Object: ApplicationDefaultPermissions)
  File /opt/zope/Zope-2.2.4-src/lib/python/OFS/CopySupport.py, line 406, in 
_verifyObjectPaste
(Object: ApplicationDefaultPermissions)
Copy Error: (see above)


I am running zope 2.2.4 on Debian Linux (Potato). I installed this from source 
instead of from the .deb in the /opt/zope/Zope-2.2.4-src/ directory as you can 
see from the error mesages.

I can't understand why these errors occur. The scripts under zope are all 
owned by the user nobody.

Some help or guidance would be greatly appreciated since these products seem 
quite powerfull and usefull.

Thanks.

Darrin


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

2001-01-02 Thread Jonothan Farr



- Original Message - 
From: "Edwin Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 7:23 AM
Subject: [Zope] dtml-in: total??


> Hello,
> 
> I'm making a generic DTML-method which shows a bar like
> AltaVista does:
> 
> [ < previous] [1] [2] [3] [4] [next > ]
> 
> I need to know the number of rows the database returned.
> 
> In appendix A of the Zope book, I see I can use total-name etc.
> 
> How can I get the total number of rows, independent of
> column names?
> 
> Can I do it without rewriting the SQL-queries?
> 
> Bye,
> Edwin Martin.
> 
> ---
> The world is moving so fast these days that the person who says
> it can't be done is generally interrupted by someone doing it.
>   -- Harry Emerson Fosdick
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] HELP re: MailHost and Hotfix 2000_-12-08

2001-01-02 Thread Norman Khine

Hello,
I am having difficulty in setting up the MailHost on the Zope Server.
Every time I try I get an error:

Zope has encountered an error while publishing this resource.

Debugging Notice

Zope has encountered a problem publishing your object.
Cannot locate object at: zope/manage_addProduct/MailHost/manage_addMailHost

I am having the same problem as a post I found on the eGroups list

Hello,

after the installation of the 12-08 fix you can't add MailHost anymore. I
see
that the product use a "legacy" method. Any solution?

Thank you in advance.

--
Best regards,
 Salvatore Sciacco

I too have installed this Hotfix_2000-12-08

Thanks for all your help

Norman


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

2001-01-02 Thread Andy McKay

I did actually start toying with this on the holidays for the hell of it.
But then got bored and started relaxing instead. Basically my first task was
putting basic product info in a more friendly xml format...
http://zope.agmweb.ca/Zope/products

--
  Andy McKay, Developer.
  ActiveState.


- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "Jonathan (Listserv Account)" <[EMAIL PROTECTED]>; "zope-misc"
<[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 9:58 AM
Subject: Re: [Zope] CZAN Anyone?


> > Lots of reasons, mainly motivated by laziness^H^H^H^H^H^H^H^H me not
> > having the time to keep up with everything, I want to be informed
> > automatically :)
> >
> > Cya
> > Jonathan
>
> :) laziness is good, otherwise people would just keep doing things the
hard
> 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Selection and Lines Properties for DTML Docs

2001-01-02 Thread Tim Cook

Steve McMahon wrote:
> 
> I'm new to Zope and am interested in the use of document properties
> for separating content and design in documents (i.e., using  prop_name> in the "edit" tab to insert properties defined on
> the "properties" tab>.
> 
> I've had success with simple text properties and would like to be
> able to present the user with selection properties (choice 1, choice
> 2, ...). That works well when I first define a "lines" property, then
> a "selection" property. But, what I'd really like to do is hide the
> lines property from the user. I've tried putting a lines property in
> another document, then setting the selection value
> to 'source_doc.lines_prop'. That yields an error "No select variable
> source_doc.lines_prop."
> 
> Any ideas on the right way to do this? Please feel free to point me
> to good documentation!


In order to give users a set of configurable options throughout
the application this is what I did.

In the root folder of the application I defined a lines type
property for each option. For example, telephone number types
(home, work, cell etc.) 

The selection looks like this:
Phone Type: 

  

   



The DTML Method valid_phone_types just returns a list of what it
found in the phone_types property:


  
 
   
 
   






This is the form entry for the user to edit the lines property.
Note it is in a table with others but the key thing to look at is
the way the line break is in the middle of the 'dtml-var'. If you
don't do this you will end up with extra/empty lines in your
property.


Phone Types:









HTH,

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com
Office: (901) 884-4126
Censorship: The reaction of the ignorant to freedom.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Selection and Lines Properties for DTML Docs

2001-01-02 Thread Andy McKay

Because acquistion can't find it. It can find all the objects in the folder
and all the properties on a folder, but it doesn't go into each object and
look at its properties...

--
  Andy McKay, Developer.
  ActiveState.


- Original Message -
From: "Steve McMahon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 10:26 AM
Subject: Re: [Zope] Selection and Lines Properties for DTML Docs


> At 10:08 AM 1/2/01, Andy McKay wrote:
> > > Im not sure what you mean by "hide it from the user", it all depends
upon
> > > the rights you give your user.
>
> In this case, I just meant that it shouldn't appear in the properties list
> for the particular page. I want to give the editor of the particular
page's
> properties the ability to make a selection, but not the ability to change
> the list of possible selections.
>
> > > If I create a lines property on my root folder called selection_list,
I
> >can
> > > then in folder /test/ make a property test_selection, type selection,
> >value
> > > selection_list. The problem you
> >may have is that you are trying to put it on another document, rather
than
> >on a folder in the acquistion path.
>
> You're diagnosis is dead-on. I added my lines property to the containing
> folder and it worked perfectly. I'm still mystified, though, as to why I
> couldn't put the lines property in another document in the same folder and
> use the notation 'doc_id.lines_id' to refer to the lines property in the
> other document.
>
> Thanks, Steve
>
>
>
> > > --
> > >   Andy McKay, Developer.
> > >   ActiveState.
> > >
> > >
> > > - Original Message -
> > > From: "Steve McMahon" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, January 02, 2001 9:36 AM
> > > Subject: [Zope] Selection and Lines Properties for DTML Docs
> > >
> > >
> > > > I'm new to Zope and am interested in the use of document properties
> > > > for separating content and design in documents (i.e., using  > > > prop_name> in the "edit" tab to insert properties defined on
> > > > the "properties" tab>.
> > > >
> > > > I've had success with simple text properties and would like to be
> > > > able to present the user with selection properties (choice 1, choice
> > > > 2, ...). That works well when I first define a "lines" property,
then
> > > > a "selection" property. But, what I'd really like to do is hide the
> > > > lines property from the user. I've tried putting a lines property in
> > > > another document, then setting the selection value
> > > > to 'source_doc.lines_prop'. That yields an error "No select variable
> > > > source_doc.lines_prop."
> > > >
> > > > Any ideas on the right way to do this? Please feel free to point me
> > > > to good documentation!
> > > > _
> > > > Steve McMahon, SunType Publishing Systems
> > > > [EMAIL PROTECTED]
> > > > voice & fax: (530) 757-7682
> > > > http://www.suntype.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 )
> > > >
> > >
>
> _
> Steve McMahon, SunType Publishing Systems
> [EMAIL PROTECTED]
> voice & fax: (530) 757-7682
> http://www.suntype.com
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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




Re: [Zope] Selection and Lines Properties for DTML Docs

2001-01-02 Thread Steve McMahon

At 10:08 AM 1/2/01, Andy McKay wrote:
> > Im not sure what you mean by "hide it from the user", it all depends upon
> > the rights you give your user.

In this case, I just meant that it shouldn't appear in the properties list 
for the particular page. I want to give the editor of the particular page's 
properties the ability to make a selection, but not the ability to change 
the list of possible selections.

> > If I create a lines property on my root folder called selection_list, I
>can
> > then in folder /test/ make a property test_selection, type selection,
>value
> > selection_list. The problem you
>may have is that you are trying to put it on another document, rather than
>on a folder in the acquistion path.

You're diagnosis is dead-on. I added my lines property to the containing 
folder and it worked perfectly. I'm still mystified, though, as to why I 
couldn't put the lines property in another document in the same folder and 
use the notation 'doc_id.lines_id' to refer to the lines property in the 
other document.

Thanks, Steve



> > --
> >   Andy McKay, Developer.
> >   ActiveState.
> >
> >
> > - Original Message -
> > From: "Steve McMahon" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 02, 2001 9:36 AM
> > Subject: [Zope] Selection and Lines Properties for DTML Docs
> >
> >
> > > I'm new to Zope and am interested in the use of document properties
> > > for separating content and design in documents (i.e., using  > > prop_name> in the "edit" tab to insert properties defined on
> > > the "properties" tab>.
> > >
> > > I've had success with simple text properties and would like to be
> > > able to present the user with selection properties (choice 1, choice
> > > 2, ...). That works well when I first define a "lines" property, then
> > > a "selection" property. But, what I'd really like to do is hide the
> > > lines property from the user. I've tried putting a lines property in
> > > another document, then setting the selection value
> > > to 'source_doc.lines_prop'. That yields an error "No select variable
> > > source_doc.lines_prop."
> > >
> > > Any ideas on the right way to do this? Please feel free to point me
> > > to good documentation!
> > > _
> > > Steve McMahon, SunType Publishing Systems
> > > [EMAIL PROTECTED]
> > > voice & fax: (530) 757-7682
> > > http://www.suntype.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 )
> > >
> >

_
Steve McMahon, SunType Publishing Systems
[EMAIL PROTECTED]
voice & fax: (530) 757-7682
http://www.suntype.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] Selection and Lines Properties for DTML Docs

2001-01-02 Thread Andy McKay

> Im not sure what you mean by "hide it from the user", it all depends upon
> the rights you give your user.
>
> If I create a lines property on my root folder called selection_list, I
can
> then in folder /test/ make a property test_selection, type selection,
value
> selection_list. The problem you

may have is that you are trying to put it on another document, rather than
on a folder in the acquistion path.

> --
>   Andy McKay, Developer.
>   ActiveState.
>
>
> - Original Message -
> From: "Steve McMahon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 02, 2001 9:36 AM
> Subject: [Zope] Selection and Lines Properties for DTML Docs
>
>
> > I'm new to Zope and am interested in the use of document properties
> > for separating content and design in documents (i.e., using  > prop_name> in the "edit" tab to insert properties defined on
> > the "properties" tab>.
> >
> > I've had success with simple text properties and would like to be
> > able to present the user with selection properties (choice 1, choice
> > 2, ...). That works well when I first define a "lines" property, then
> > a "selection" property. But, what I'd really like to do is hide the
> > lines property from the user. I've tried putting a lines property in
> > another document, then setting the selection value
> > to 'source_doc.lines_prop'. That yields an error "No select variable
> > source_doc.lines_prop."
> >
> > Any ideas on the right way to do this? Please feel free to point me
> > to good documentation!
> > _
> > Steve McMahon, SunType Publishing Systems
> > [EMAIL PROTECTED]
> > voice & fax: (530) 757-7682
> > http://www.suntype.com
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>


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




Re: [Zope] Selection and Lines Properties for DTML Docs

2001-01-02 Thread Andy McKay

Im not sure what you mean by "hide it from the user", it all depends upon
the rights you give your user.

If I create a lines property on my root folder called selection_list, I can
then in folder /test/ make a property test_selection, type selection, value
selection_list. The problem you
--
  Andy McKay, Developer.
  ActiveState.


- Original Message -
From: "Steve McMahon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 9:36 AM
Subject: [Zope] Selection and Lines Properties for DTML Docs


> I'm new to Zope and am interested in the use of document properties
> for separating content and design in documents (i.e., using  prop_name> in the "edit" tab to insert properties defined on
> the "properties" tab>.
>
> I've had success with simple text properties and would like to be
> able to present the user with selection properties (choice 1, choice
> 2, ...). That works well when I first define a "lines" property, then
> a "selection" property. But, what I'd really like to do is hide the
> lines property from the user. I've tried putting a lines property in
> another document, then setting the selection value
> to 'source_doc.lines_prop'. That yields an error "No select variable
> source_doc.lines_prop."
>
> Any ideas on the right way to do this? Please feel free to point me
> to good documentation!
> _
> Steve McMahon, SunType Publishing Systems
> [EMAIL PROTECTED]
> voice & fax: (530) 757-7682
> http://www.suntype.com
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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




Re: [Zope] CZAN Anyone?

2001-01-02 Thread Andy McKay

> Lots of reasons, mainly motivated by laziness^H^H^H^H^H^H^H^H me not
> having the time to keep up with everything, I want to be informed
> automatically :)
>
> Cya
> Jonathan

:) laziness is good, otherwise people would just keep doing things the hard
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 )




Re: [Zope] Sendmail examples

2001-01-02 Thread Marcus Mendes

steve smith wrote:
> 
> Anyone have any good, real-world examples using DTML-Sendmail tags? Would
> especially appreciate examples integrating SQL queries.
> 
> Ta!
> 
> Steve
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


Hello,

I've an example here. I'm using sql to find and check passwd/user. If
this sql_check_passwd is true, i'll find in another table, the user's
e_mail. Then i'll send an e-mail for him.

Here is:


  
   


 

to: 
from: [EMAIL PROTECTED]
subject: 

->> here, you put the message


alert("Your message was send successfully")


  
 

  


  alert("User/Passwd incorrect.")


[]'s


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 )




Re: [Zope] html_quote in python methods?

2001-01-02 Thread Andy McKay

Can you do an import in python methods? Still have to install and play with
them. If so you can:

from DT_Util import html_quote

Theres probably a better way... as per DT_var.py

--
  Andy McKay, Developer.
  ActiveState.


- Original Message -
From: "Jim Washington" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 6:32 AM
Subject: [Zope] html_quote in python methods?


> I am using Python Methods a lot now.
>
> Good:
> no more  to get to the objects I need. Yay!
> no more worrying about closing blocks. Yay!
>
> OK, when I make a syntax error, there is no help in the traceback.  My
> Python is getting better and better as a result.
>
> To give something back, I have a hint that took me a while to figure
> out:
>
> print '%s' % (self.thevariable)
> will not work.  The first % needs to be escaped like so:
>
> print '%s' % (self.thevariable)
>
> Now, can I use html_quote in a Python Method?  I am letting people enter
> data for redisplay, and I know some Bozo (TM) will somehow put in
> ""
> and break the page.
>
> Can I keep this from happening?  html_quote does not seem to be in the
> Python Method namespace.
>
> Regards,
>
> -- Jim Washington
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Selection and Lines Properties for DTML Docs

2001-01-02 Thread Steve McMahon

I'm new to Zope and am interested in the use of document properties
for separating content and design in documents (i.e., using  in the "edit" tab to insert properties defined on
the "properties" tab>.

I've had success with simple text properties and would like to be
able to present the user with selection properties (choice 1, choice
2, ...). That works well when I first define a "lines" property, then
a "selection" property. But, what I'd really like to do is hide the
lines property from the user. I've tried putting a lines property in
another document, then setting the selection value
to 'source_doc.lines_prop'. That yields an error "No select variable
source_doc.lines_prop."

Any ideas on the right way to do this? Please feel free to point me
to good documentation!
_
Steve McMahon, SunType Publishing Systems
[EMAIL PROTECTED]
voice & fax: (530) 757-7682
http://www.suntype.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] Re: decline description (KMM493282C0KM)

2001-01-02 Thread Download.com Support

Hi there,


Thanks for writing to CNET.

Regards,
CNET Support Services
http://home.cnet.com/?tag=st.cn.support.2

*Please include original message in your reply*




Original Message Follows: 
-
Subject: Sub: U | Zope.org | Zope | Cross-platform | PC:Internet:Site
Management | cat10070
---
DOWNLOAD.COM Registration Form: 
---
Title (Update of an existing title): 

Zope

Version:

2.2.2

Release date:
---
18-09-2000

URLs:

http://www.zope.org/Products/Zope/Products/Zope/2.2.2



Size:
--
3952206

License:
---
Free

Code License:
---
Open source/free

Uninstaller:

Yes

Expiration:
---
--

Publisher:
---
Zope.org

Contact:
---
Zope Community

E-Mail:
-
[EMAIL PROTECTED]

phone:
-


Publisher URL:

http://www.zope.org/

Developer support link:
---
http://

Price:
---


Price type:
---


Keywords:
-
internet,content management,application server,web development, python

Description:
-
http://www.zope.org/Products/Zope/Products/Zope/2.2.2/CHANGES.txt

Functionality limitations:
--
n/a

Platform:
-
Cross-platform

Program Type:
-


Specific OS:
-
cross-platform

Other requirements:
---


Category:
-
PC:Internet:Site Management | cat10070

Optimized:



On RegNow.com:
---


RegNow.com link:
---
http://



==


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




Re: [Zope] Zope vs. Enhydra

2001-01-02 Thread Luciano Ramalho

You may be interested to know that the HiperDOM project, currently in
development by DC and my company, aims ot bring to Zope a template
system similar to the XMLC of Enhydra. Check it out:

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

In my opinion, you really can't compare Enhydra with Zope. Enhydra is
exclusively a programmers tool. Zope, through it's friendly UI, enables
you to delegate many maintenance activities to end-users, where they
belong.

Regards,

Luciano Ramalho
Hiperlogica
Sao Paulo - Brazil

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

2001-01-02 Thread Stephane Bortzmeyer

On Friday 22 December 2000, at 18 h 56, the keyboard of Michael Bernstein 
<[EMAIL PROTECTED]> wrote:

> Umm, even if *everything* else fails, you can still manually
> truncate the Data.fs file to remove the last transaction

Well, this file is not human-readable so I do not really see how to truncate it 
properly?



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

2001-01-02 Thread Edwin Martin

Hello,

I'm making a generic DTML-method which shows a bar like
AltaVista does:

[ < previous] [1] [2] [3] [4] [next > ]

I need to know the number of rows the database returned.

In appendix A of the Zope book, I see I can use total-name etc.

How can I get the total number of rows, independent of
column names?

Can I do it without rewriting the SQL-queries?

Bye,
Edwin Martin.

---
The world is moving so fast these days that the person who says
it can't be done is generally interrupted by someone doing it.
  -- Harry Emerson Fosdick


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Can't import objects ... is transparent folder still the reason ?

2001-01-02 Thread Shane Hathaway

Didier Georgieff wrote:
> 
> I have a problem importing objects (Yihaw Folder derived from Object Manager) on
> 2.2.4 and Transparent Folder (see traceback at the end).
> 
> Some months ago i had some similar problem with the first/removed Transparent
> Folder version.
> Is this same problem still there on Transparent Folder 0.3, or do i have to search 
>the
> problem elsewhere for a workaround ?

I wonder if you might consider installing ZDebug, which might give you a
little more info.  Zope 2.2.5b1 also has some modified code that may
affect the results.

BTW the idea of hooking traversal to implement TF didn't work out.  But
the latest version, 0.3, solves the acquisition problems, meaning that
Zope's security policies should work correctly now for transparent
objects.

Shane

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




[Zope] manage_users( ) method

2001-01-02 Thread Mohan Baro

Happy new year everyone, all the best.

Question:
Where can I get the specifications for acl_users.manage_users()?

Mohan.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kyler
B. Laird
Sent: Monday, January 01, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: [Zope] terrible kludge to set password



I was unsuccessful at finding any examples of
changing a user's password from DTML, but I
did see a few requests for such functionality.
I bumped around quite awhile today trying to
figure out how to do it.  I didn't come up
with a good way, but I did find something that
works.

So, although it's terribly ugly, I thought I'd
throw my example out.  Perhaps it'll save
someone else some time.






--kyler

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

2001-01-02 Thread Pierre-Julien Grizel

Dieter Maurer wrote:
> 
> While trying to understand, what the "bself= self.aq_explicit"
> in "OFS.DTMLMethod.__call__" should do, I detected an unexpected
> behaviour:
> 
> usually, this "bself" acquires implicitly from
> its container (though not from its context)
> 
> More precisely:
> 
> if "bself.aq_self" is itself an implicit acquisition
> wrapper, the "bself.aq_explicit" acquires implicitly
> from "bself.aq_self.aq_parent".
> 
> The following Python module demonstrates the behaviour:
> 
> ---
> from Acquisition import Implicit
> 
> class C(Implicit): pass
> 
> b= C()
> b.i= 0
> b.d= C()
> b.h= C()
> 
> e_bd= b.d.aq_explicit
> try:
> e_bd.i
> print 'e_bd implicitly acquired i'
> except AttributeError: pass
> 
> e_bhd= b.h.d.aq_explicit
> try:
> e_bhd.i
> print 'e_bhd implicitly acquired i'
> except AttributeError: pass
> ---
> 
> At first, I thought this were a bug.
> At second thought, however, it appears to be quite
> natural, though unexpected:
> 
> if o is self.__of__(parent), then
> getattr(o.aq_explicit,k) = getattr(self,k).__of__(o)
> 
> If "self" is an implicit wrapper itself,
> then acquisition may be used to look up "k".
> 
> This implies, that the idiom
> 
> 
> 
> cannot be used safely to test, whether "o" has attribute
>  itself (rather than acquired it).
> We probably should have a standard function for this kind
> of test.



Mhhh  Something like "" ?




P.-J.



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

-- 
If the only tool you have is a hammer, 
you tend to see every problem as a nail.
Si le seul outil dont vous disposez est un marteau, 
vous avez tendance à voir chaque problème comme un clou. 
   --Abraham Maslow

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

2001-01-02 Thread Evan Simpson

From: Curtis Maloney <[EMAIL PROTECTED]>
> What I want to know is, why can't Python Methods refer to anything not
> explicitly passed to them?  I don't want to have to make everything that
> invokes the method have to know to pass it half a dozen objects.
>
> Isn't the idea of a method to be executed in the namespace of it's parent?
I
> want my method to be able to access objects in it's own folder...

Yep.  You just need to make the first parameter of your method 'self', and
not have any parameters with default values.  For example, method plusX::

  self, x
  return len(self.objectIds()) + x

...can be called like 'folder.plusX(3)'.  You can also acquire objects that
your method needs from 'self'.

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] html_quote in python methods?

2001-01-02 Thread Jim Washington

I am using Python Methods a lot now.

Good:
no more  to get to the objects I need. Yay!
no more worrying about closing blocks. Yay!

OK, when I make a syntax error, there is no help in the traceback.  My
Python is getting better and better as a result.

To give something back, I have a hint that took me a while to figure
out:

print '%s' % (self.thevariable)
will not work.  The first % needs to be escaped like so:

print '%s' % (self.thevariable)

Now, can I use html_quote in a Python Method?  I am letting people enter
data for redisplay, and I know some Bozo (TM) will somehow put in 
""
and break the page.

Can I keep this from happening?  html_quote does not seem to be in the
Python Method namespace.

Regards,

-- Jim Washington

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

2001-01-02 Thread Pierre-Julien Grizel


Hi, Curtis...


You're right for the word "method"... But that's in fact why they are
not called "methods" anymore ! :-))

Don't blame Python Script team : it's a non-trivial problem, both for
security and... feasibility reasons !

I don't know wether it actually works for Python Methods, but you should
try to pass your environment, just as you would for DTML Methods, like
this :




And then you should gain access to Zope environment. But remember this
is not elegant and may lead you to security problems.



Regards,


P.-J.


Curtis Maloney wrote:
> 
> Greetings
> 
> Yeh, yeh.. I know.. I should be using Python Scripts, or whatever... but for
> various reasons, I'm still using 2.1.6...
> 
> What I want to know is, why can't Python Methods refer to anything not
> explicitly passed to them?  I don't want to have to make everything that
> invokes the method have to know to pass it half a dozen objects.
> 
> Isn't the idea of a method to be executed in the namespace of it's parent?  I
> want my method to be able to access objects in it's own folder...
> 
> What am I missing?
> 
> Curtis
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
If the only tool you have is a hammer, 
you tend to see every problem as a nail.
Si le seul outil dont vous disposez est un marteau, 
vous avez tendance à voir chaque problème comme un clou. 
   --Abraham Maslow

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

2001-01-02 Thread Mike Renfro

On Mon, Jan 01, 2001 at 04:29:24PM -0500, Kyler B. Laird wrote:

> I was unsuccessful at finding any examples of changing a user's
> password from DTML, but I did see a few requests for such
> functionality.

http://www.zope.org/Members/tseaver/user_settable_passwords

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED]

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




Re: [Zope] Zope vs. Enhydra

2001-01-02 Thread Stephane Bortzmeyer

On Friday 29 December 2000, at 18 h 52, the keyboard of [EMAIL PROTECTED] 
wrote:

> But really, has anyone had any experience with the *other*
> open source Web Application Server, Enhydra?

Why, *the* other? There is only one?

http://www.brics.dk/bigwig/




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] downgrading from 2.1.x from 2.2.0 to use NTuser authentication

2001-01-02 Thread Toby Dickenson

On Wed, 20 Dec 2000 13:15:22 -0800, Erik Myllymaki
<[EMAIL PROTECTED]> wrote:

>I would really like to use the jc/ntuserfolder products but see that they
>haven't been brought up to speed with the new 2.2.x security model. Will
>downgrading to 2.1.x render my site inaccessible? What will I have to change
>security wise so I can use these pages from the old version?
>
>Alternatively, I might take a stab at bring the jc/ntuserfolder up to date
>with the new security model - any insight from those in the know
>appreciated(am I underestimating that task?).

[You should be able to find several references to this in the
archives.]

Firstly, these old XXXUserFolder products still work acceptably unless
you are using the PTK (or other similar products). The incompatability
is not with Zope, but rather with these other products.

Adding to NUserFolder to keep up with API changes is probably not the
best solution, because the User Folder API has been significantly
extened. A better approach is to use a customisable User Folder
product like LoginManager.

It should be possible to transplant the authentication functions from
NTUserFolder. Ive not tried this, but it looks easy enough.

I hope this helps,

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] Squishdot 0.7.3 Released

2001-01-02 Thread Chris Withers

Squishdot 0.7.3 is now available to download from
http://www.zope.org/Members/chrisw/Squishdot/

The following major changes were made:

   - Fixed TinyTable detection that got broken in 0.7.2.

   - Fixed problems with moderated Squishdot sites and searching.

   - Fixed the behaviour of Squishdot's ZCatalog when Squishdot Sites 
 were moved, copied or renamed.

There were some other small changes and improvements.

If you run into problems, remember Squishdot has a mailing list at
eGroups and a bug collector on SourceForge.

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] A subclass from PortalMember of Membership Product and ObjectManager won't list contained objects

2001-01-02 Thread Dirksen

My site is installed with the Membership system. I want to store some photos in each
member. So I create a new member ZClass, subclassing PortalMember and ObjectManager, 
and
set the 'manage_main' as the main view. Under the instance of this new member ZClass, I
can add images, but I can't find them! 'objectItems' always return None. Yet the image
file is there. I can edit their properties as in
'/test/acl_users/jay/photo1/manage_main', but '/test/acl_users/jay/manage_main' just
won't show a thing!

Please help!

Dirksen

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

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




Re: [Zope] standard_error_message woes!

2001-01-02 Thread Chris Withers

John Chandler wrote:
> 
> As already mentioned, not all errors (unfortunately) get handled by
> standard_error_message - authorisation being the main culprit. In addition, if
> an error occurs in a standard_error_message it'll also cause the plain, default
> error page to be displayed.

Hurm... I would have thought/it would be nice if an error occurs in
standard_error_message then, the next standard_error_message up the
acquisition path would get used, resorting to the hard coded one only if
there isn't anything else...

Is that the case?

cheers,

Chris

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




Re: [Zope] standard_error_message woes!

2001-01-02 Thread John Chandler

Just catching up on my mail...

> Gaaah!  I'm totally miffed/pissed/confused/sad about this.
> 
> I have Zope 2.2.4, and if I go to:
> http://docwhat.gerf.org:9673/fish  (an non-existant object)
> I get the HTTPResponse.py _error_html() function as called by
> notFoundError().

As already mentioned, not all errors (unfortunately) get handled by
standard_error_message - authorisation being the main culprit. In addition, if
an error occurs in a standard_error_message it'll also cause the plain, default
error page to be displayed.

Looks like you're handling a 404 (Not Found) so I'd advise checking your custom
page is correct first as an error there could be causing the custom error
message to be superceded.

All good fun :-/

Hope that's a useful starter...


John


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

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

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




Re: [Zope] How to store a dictionary in propert sheet?

2001-01-02 Thread chas

At 12:08 AM 01/02/2001 -0800, Dirksen wrote:
>Please give me a hint.

Get the product TinyTablesPlus.

You could create a "lines" property with something like:
key1:value1
key2:value2
Then string split it and create the dictionary just before
you need to use it. But I've found TinyTablesPlus to be 
very very handy.

chas

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