[Zope] Export/import preserving bobobase_modification_time?

2005-05-12 Thread Marcin Kasperski

Is it possible to somehow export data from Zope instance and import
into another one preserving somehow bobobase_modification_time info?


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


Re: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Marcin Kasperski

 PostgreSQL compiles on Win32, but only under RedHat's(formerly Cygnus')
 Cygwin Unix Compatibility Layer. http://www.postgresql.org
 http://people.freebsd.org/~kevlo/postgres/portNT.html
 MySQL, the newly GPL'd version, was declared stable yesterday.
 http://www.mysql.com
 SapDB is to be open-sourced soon.  http://www.sapdb.org
 

What about InterBase (formerly commercial database for both Windows and
Unix, currently open source)?

--
http://www.mk.w.pl /
 Marcin.Kasperski | Zbir porad dla twrcw serwisw WWW: 
   @softax.com.pl |   http://www.mk.w.pl/porady/porady_www
 @bigfoot.com  \

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




Re: [Zope] zope, xemacs and efs

2001-01-18 Thread Marcin Kasperski

 I'd LOVE to be able to use efs with Zope.  Right now I end up cutting
 and pasting code in and out of browser windows -- which just feels
 kind of unwieldy...
 

What about 'File Upload'?

When I got to know about FTP access mode I liked it but it does not
handle versions so it is unusable for me...


--
http://www.mk.w.pl /
 Marcin.Kasperski | Grupy dyskusyjne w firmie:
   @softax.com.pl |   http://www.mk.w.pl/narzedzia/narzedzia_inn  
 @bigfoot.com  \

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




Re: [Zope] Downloading All Zope products

2001-01-11 Thread Marcin Kasperski

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

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

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

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

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




Re: [Zope] First Project

2001-01-03 Thread Marcin Kasperski

Koch Marc wrote:
 
 Thank you,
 
 ...for your tip with the PARENTS[0].objectValues('File')
 
 Please let me ask your advice on how to realize the following:
 
 I would like to build an application for handling development requests.
 These requests should be submitted by our end-users through our Intranet =
 to
 my team. We then look at each new request and dispatch it to one or more
 development team for approval (or rejection). At this stage:
 - The end-user should be able to see that his request has been dispatched
 - The concerned development team(s) should see that there is a new reques=
 t,
 they could look at it and accept it or reject it and give a comment
 When all the teams have replied, my team would add a summarized comment t=
 o
 the request and the end-user should be able to see this. At this point, t=
 he
 request handling for my team is at its end.
 

Seems you search for the standard enhancement/bug management software

Before you start developing it yourself, take a look at the products
like bugzila, jitterbug or gnats (to mention just a few, open-source
solutions).



--
http://www.mk.w.pl /
 Marcin.Kasperski | Kcik porad dla programistw: 
   @softax.com.pl |   http://www.softax.com.pl/prywatne/marcink/porady
 @bigfoot.com  \

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




Re: [Zope] ZCatalog raises index out of range exception error

2000-12-19 Thread Marcin Kasperski

  I believe I saw this error when
  trying to use the Catalog in a SiteRoot-ed folder...
 
 Me too :-(
 

And me too. The most irritating Zope bug for me. 

  No solution, sorry ;)
 
 :-(
 

Partial solution: at something like 2:00 AM delete your SiteRoot rule,
reindex with ZCatalog and create this rule again. Searching works
(although I needed to edit the paths found a bit in the form responsilbe
for search results presentation).

I can imagine writing the script (XMLRPC?) which would do it from the
cron job - although I have not yet found spare time (I still think
someone will do something with this nasty bug).

--
http://www.mk.w.pl /
 Marcin.Kasperski | Dokumentacj kodu warto wygenerowa:  
   @softax.com.pl |   http://www.mk.w.pl/narzedzia/narzedzia_gendoc   
 @bigfoot.com  \

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




Re: [Zope] Is it Possible 2: Get resolution!

2000-12-08 Thread Marcin Kasperski

Oleg Broytmann wrote:
 
 On Fri, 8 Dec 2000, Stoonsdesign wrote:
  Q: Is it posible to get the current users SCREEN-RESOLUTION (without
  using Javascript!)..?
 
You can't, and you don't need. Even if you get the resolution, you'd
 have hard times generating HTML for that resolution: HTML is very bad
 concerning strict screen positioninig. HTML is not "publishing".

I can imagine webpage which uses some Javascript to append information
about resolution to the request as some parameter. Then you could use
it, but it does not make too much sense. What if some people use your
page through caching proxy, which serves it to a few guys without
refetching it (yes, you can forbid caching). What if someone dynamically
changes resolution (as I do with Ctrl-Alt-+ working on my XWindows
Linux)? What if the client disables JavaScript?

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

2000-12-07 Thread Marcin Kasperski

Brad Clements wrote:
 
 Just announcing this new e-commerce zope based site.
 
 http://www.adirondackcraft.com
 

Hmm. I get:

Zope has encountered an error while publishing this resource. 

Error Type: TransactionError
Error Value: A serious error, which was probably a system error,
occurred in a previous database transaction. This application may be in
an invalid state and must be restarted before database updates can be
allowed. Beware though that if the error was due to a serious system
problem, such as a disk full condition, then the application may not
come up until you deal with the system problem. See your application log
for information on the error that lead to this problem. 

--
http://www.mk.w.pl /
 Marcin.Kasperski | Sztuczki i kruczki w C++: 
   @softax.com.pl |   http://www.mk.w.pl/porady/porady_cplusplus  
 @bigfoot.com  \

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




[Zope] Does 2.2.4 solve Proxy+ZCatalog bugs?

2000-11-28 Thread Marcin Kasperski

The question as in the title. In changes for 2.2.3 I found:

   - Resolved known condition in the Catalog where objects are
 not guaranteed to be unindexed before indexing happens
 again.  Now objects are guaranteed to be unindexed correctly
 first.  This should resolve all outstanding KeyErrors with
 Catalog, although currently broken Catalogs will require a
 reindex to resolve them. 

Has anyone verified whether this in fact corrects the infamous ZCatalog
key errors when one tried to reindex site proxied with Apache?

Regards

--
http://www.mk.w.pl /
 Marcin.Kasperski | Dokumentacj kodu warto wygenerowa:  
   @softax.com.pl |   http://www.mk.w.pl/narzedzia/narzedzia_gendoc   
 @bigfoot.com  \

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




Re: [Zope] Using ProxyPass and SiteRoot

2000-10-16 Thread Marcin Kasperski

"\"Geoffrey L. Wright\"
 
 knight writes:
 
   Timothy,
  
   Without going into too much detail, you are going to want to set up a
   virtual host in apache for the hostname www.isd197.k12.mn.us, and inside
   that virtual host you will want to add your ProxyPass lines similar to my
   example:
 
 [...]
 
 And just for reference, here's another working example with ProxyPass:
 
   NameVirtualHost 172.17.10.13
 
   VirtualHost 172.17.10.13
   ServerName syslog.integritysi.com
   ServerAdmin [EMAIL PROTECTED]
   ProxyPass / http://vishnu.integritysi.com:8080/syslog/
   ProxyPassReverse / http://vishnu.integritysi.com:8080/syslog/
   ProxyPass /misc_ http://vishnu.integritysi.com:8080/misc_
   ProxyPass /p_ http://vishnu.integritysi.com:8080/p_
   ErrorLog logs/syslog.integritysi.com
   TransferLog logs/syslog.integritysi.com
   /VirtualHost
 
 Good luck, and don't forget to enable the ProxyPass module.
 

Some remarks:

1) If you use custom product which contain images, it is useful to add
sth like

ProxyPass /Control_Panel/Products/Mycustomproduct
http://localhost:9673/Control_Panel/Products/Mycustomproduct

(otherwise you will not see the images which belong to the product - in
my case I couldn't see the product icons on management screens). Reverse
pass for this purpose is not needed.

2) ZCatalog does not work with SiteRoot. Smaller problem: the URLs
returned are incorrect (you can parse them with dtml). Greater problem:
attempt to find new items fails (the only solution I found is to remove
SiteRoot, find/update ZCatalog, add SiteRoot again).

3) You loose original IP address (you can use mod_proxy_add_forward
custom Apache module to preserve it in the custom X-Forwarded-For
header, so far I have not managed to recover original addresses in zope
log and for logging verification).

--
http://www.mk.w.pl /
 Marcin.Kasperski | Poradnik dla kupujcych mieszkanie:   
   @softax.com.pl |   http://www.kupmieszkanie.prv.pl 
 @bigfoot.com  \

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




Re: [Zope] Easiest way to turn X-Forwarded-For to Remote-IP?

2000-10-12 Thread Marcin Kasperski

   As I finally installed mod_proxy_add_forward, I get original address in
   X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']).
  
   The question is: can I do something easy to automatically perform
if(remote_ip = 127.0.0.1 and X-Forwarded-For exists) then
 set remote_ip = whatever is in X-Forwarded-For
   logic? In particular, I would like changed IP to be used by Zope access
   control and Zope log.
 We have had similar problems.
 
 Friendly people from NIP made a HowTo patch Apache to let the
 information through.
 
 If you do not want to patch Apache, you can use a SiteAccess (-- zope.org)
 AccessRule in your top (logical) folder to modify your
 REQUEST object as you like.
 

Does there exist some sample of such usage? Can such a change be
performed before authorization?

I use SiteRoot to translate addressess between external and internal (in
subdirectories, not in main directory). Can those approaches be merged
one with another?

--
http://www.mk.w.pl /
 Marcin.Kasperski | Sztuczki i kruczki w C++: 
   @softax.com.pl |   http://www.mk.w.pl/porady/porady_cplusplus  
 @bigfoot.com  \

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




[Zope] Easiest way to turn X-Forwarded-For to Remote-IP?

2000-10-11 Thread Marcin Kasperski

I use Zope via Apache proxy, what causes some trouble (all remote IPs
for Zope are equal to 127.0.0.1).

As I finally installed mod_proxy_add_forward, I get original address in
X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']).

The question is: can I do something easy to automatically perform
if(remote_ip = 127.0.0.1 and X-Forwarded-For exists) then
  set remote_ip = whatever is in X-Forwarded-For
logic? In particular, I would like changed IP to be used by Zope access
control and Zope log.

Regards

--
http://www.mk.w.pl /
 Marcin.Kasperski | O kredytach mieszkaniowych:   
   @softax.com.pl |   http://www.kupmieszkanie.w.pl/mieszkanie_kredyt 
 @bigfoot.com  \

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




Re: [Zope] Version Control in Zope / Managing releases

2000-09-27 Thread Marcin Kasperski

Nils Kassube wrote:
 
 The thread at the ZEO list is indeed very interesting.
 
 I wanted to write something like this:
 
 http://lists.zope.org/pipermail/zope-zeo/2000-September/000131.html
 
 Nice to see someone else having the same thoughts.

I strongly commit the thoughts described in the letter cited above. For
the applications I develop, I use CVS to version control, merge changes,
tag important revisions etc. I develop in test environment, create code
distributions based on tags and migrate it to production environment.
Working in teams I use merge functionality sometimes. I can accept the
need to use some other version control tool but it should have the same
features.

ZCVSMixin does not solve the problems. It is not recursive. There is no
way to commit all the changes in the whole folder hierarchy. There is
also no way to import a bunch of changes based on a tag (which gathers
multiple folders). And the solution (exporting everything to filesystem)
is not the natural one.

Until the problem is solved, I will never use Zope to implement
important web application. This is sad - I like Zope, I use it to back
my private webpage and my company information webpage and I like many
Zope features.

I even considered creating everything as a Python products (their code
can be CVS-controlled) but such a method is out of any sense.

It seems to me that it would be easier to implement complete
version-control mechanisms within Zope (there is Undo, there are
versions, there is export/import) than to build better integration with
external VC tools, but this is just an opinion.

Regards
Marcin

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

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




Re: [Zope] Version Control in Zope / Managing releases

2000-09-27 Thread Marcin Kasperski

 That's not to say that Greg's difficulties are unique.  I just don't
 think his solution is appropriate for most.  Synchronization is a major
 need for Zope.  In fact, I have some working code!  But *I need
 feedback*.
 
 http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationTab
 

The ideas presented on this page are very interesting. The main things
which can cause problems:
- how can one diff zope objects (diff on XML exports?);
- what about the scenario, in which CVS (or sth. else) repository is not
accessible from production server (I would like to export sth from
repository via tag and import it to production).

I would like to take a look at some working code...

Regards

--
http://www.mk.w.pl /
 Marcin.Kasperski | Kcik porad dla programistw: 
   @softax.com.pl |   http://www.softax.com.pl/prywatne/marcink/porady
 @bigfoot.com  \

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




[Zope] How to preserve context?

2000-09-21 Thread Marcin Kasperski

Within some folder I tried the following standard_html_header:


dtml-with "PARENTS[1]"
dtml-var standard_html_header
/dtml-with

..some standard text I wanted to put on the front of all the
documents...


(and similar method for standard_html_footer)


The intent is obvious: I wanted to preserve the standard look and feel
but to add something more.

Unfortunately it does not work as expected: my standard_html_header uses
bobobase_modification_time and it is read from the parent context, not
from my document context.

What can I do to solve it? 

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

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




[Zope] Re: [Zope-dev] Size of Data.fs - and crypto.

2000-09-11 Thread Marcin Kasperski

 
 Another thing.  Have anyone tried to encrypt all data inside the
 Data.fs file?  I mean, encrypted the data so that not even root can
 access it, only if you have the right passphrase (or whatever) in the
 management interface are you allowed access to the data.
 

You got some suggestions to rewrite pickling routines.

I have another simple idea: what about leaving zope intact and putting
Data.fs on cryptographic filesystem? There are some implementations
freely available within Linux kernel...

By the way: whichever method to encrypt data you would use, you will
face the same problem:
- either you must manually enter some password after each system or zope
startup 
- or you must put the password (key,seed,.. whatever) somewhere on the
filesystem - where it can be easily read at least by the root.

-- Serwis dla programistw, kcik mieszkaniowy: http://www.mk.w.pl
|
| You have the right to see progress in a running system, proven to work
| by passing repeatable tests that you specify. (Ken Beck's Second  
| Customer Right)

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

2000-09-04 Thread Marcin Kasperski

Is it possible to smoothly migrate accounts and passwords from Apache to
Zope? 

More details: I keep Apache accounts in some file of the format

username:encoded_password

where username is plaintext username and encoded_password is the
password encoded in the normal Unix way (via crypt function). I would
like to migrate those accounts to Zope. I do not know the passwords and
I would not like to ask users for them or force them to change the
password.

Is it possible? 

-- Serwis dla programistw, kcik mieszkaniowy: http://www.mk.w.pl
|
| Working overtime sucks the spirit and motivation out of a team.   
| Projects that require overtime to be finished on time will be late no 
| matter what you do.  (Wells)

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

2000-08-28 Thread Marcin Kasperski

Marcus Mendes wrote:
 
 Hello,
 
 How can I rotate my Z2.log??  It's very large !
 

Using the same method as for rotating Apache logs. For instance, on my
Debian Linux I created the file
/etc/cron.daily/zope_daily
(made via copying and editing equivalent file for Apache), which rotates
logs. Examine the attachement...



-- Serwis dla programistw, kcik mieszkaniowy: http://www.mk.w.pl 
|
| The only way to truly control a software project is to continuously   
| measure its progress, compare that  to the plan, and then adjust the  
| development  parameters to correct any deviation. Simple. (Martin)

#!/bin/sh
#
# Rotowanie logw zope

cd /opt/Zope-var/var

LOGS=/opt/Zope-var/var/Z2.log
USR=www-data
GRP=www-data

[ -f $LOGS ] || exit 0

APACHE_OLD_LOGS=35
APACHE_DAYS_TO_RUN=all
APACHE_DAY_TO_RUN=any
APACHE_POST_SCRIPT=
APACHE_CHOWN_LOGFILES=1

umask 022

RUNTODAY=0

if [ "$APACHE_DAY_TO_RUN" = "any" ] ; then

# Get today's day and convert to lowercase.
TODAY=$(date +%a | tr 'A-Z' 'a-z')
# Convert days_to_run to lowercase.
APACHE_DAYS_TO_RUN=$(echo $APACHE_DAYS_TO_RUN | tr 'A-Z' 'a-z')
echo "$APACHE_DAYS_TO_RUN" | grep -q "$TODAY"  RUNTODAY=1
[ "$APACHE_DAYS_TO_RUN" = "all" ]  RUNTODAY=1

else

# Get today's day: 01 .. 31
TODAY=$(date +%d | cat)
if [ $APACHE_DAY_TO_RUN = "$TODAY" ] ; then RUNTODAY=1; fi

# Get today's day: 001 .. 366
TODAY=$(date +%j | cat)
if [ $APACHE_DAY_TO_RUN = "$TODAY" ] ; then RUNTODAY=1; fi

fi

if [ "$RUNTODAY" = "1" ] ; then

for LOG in $LOGS
do
if [ -f $LOG ]
then
if [ "$APACHE_CHOWN_LOGFILES" = "1" ]
then
savelog -c $APACHE_OLD_LOGS -m 664 -u $USR -g $GRP \
$LOG  /dev/null
else
savelog -c $APACHE_OLD_LOGS -m 644 -u root -g root \
$LOG  /dev/null
fi
fi
done

/etc/init.d/zope restart

## Send a reload signal to the e server.
#/etc/init.d/apache reload  /dev/null

# Run apache post processing script if executable.
if [ -x "$APACHE_POST_SCRIPT" ]
then
$APACHE_POST_SCRIPT
fi

fi



Re: [Zope] Corruption caused by 'Pack'?

2000-08-24 Thread Marcin Kasperski

Dieter Maurer wrote:
 
 Marcin Kasperski writes:
    pack corrupts Data.fs 
  
   Has anyone notified similar problems? What could be going on?
 An officially announced and fully described bug...
 
 You know by now where you find the searchable archive?
 

I tried it. I found numerous posts about problems with packing, but I do
not know which one do you mean - some mention errors in older zope
versions (even with comments like 'the fix is done and scheduled for
2.2.0'), others mention, that packing does not work in scenario 'pack
for 0 days' then 'pack for 10 days' (when one packs for more days than
previously). AFAIR I have never packed my database - an attempt to pack
for 10 days, which caused critical errors, was the first one!

The newest message on zope-dev mentioned that the bug is fixed and will
be removed in 2.2.0. I use 2.2.0 and have never used older version.

Nevertheless, it seems strange to me, that the function containing so
critical error is described in detail in Zope Content Manager Guide -
short intro for beginners.



-- Serwis dla programistw z kcikiem mieszkaniowym: http://www.mk.w.pl 
|
| Teams do not make linear progress through analysis.  They don't start 
| with requirement 1 and analyze it, then move to requirement 2 and 
| analyze it. (...) Analysis tends to be revolutionary. (Martin)

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




[Zope] Corruption caused by 'Pack'?

2000-08-23 Thread Marcin Kasperski

After using succesfully zope for some time I decided to cut a bit the
database size. So I went to Control Panel/Database and clicked "Pack"
for objects older than 10 days. At first everything seemed to work (I
returned to the management screen seeing new - smaller - Data.fs size),
but when I tried to preview my pages, terrible things happened - most
pages turned to be not available, instead of seeing them I saw zope
errors with useless descriptions like 'Zope error: error' etc
(restarting browser and zope did not helped).

Happily, during the process, the Data.fs.old file was created - stopping
Zope, removing all Data.fs.sth and overwritting Data.fs with
Data.fs.old returned zope instance to the previous state. So I will not
click 'Pack' anymore.

Has anyone notified similar problems? What could be going on?

I use binary zope 2.2.0 distribution for Linux. The database has been
created and always used with this distribution (just a few weeks ago)
and has never been packed. The time on the machine seem to be correct
(although IIRC there happened a moment a few weeks ago when it was for
the short time incorrect). I use some custom ZClasses installed as a
product developed within 'this' Control Panel/Products.

By the way: to decrease database size I consider:
- creating new Data.fs served via another (temporary) Zope instance (via
just copying Data.fs.in)
- exporting everything important from my current instance
- importing those files into new instance
- copying new Data.fs over the old one
(of course each Data.fs copying is performed while both Zope's are shut
down).
Will it work as expected? Will I loose anything apart
bobobase_modification_time?

-- Serwis dla programistw z kcikiem mieszkaniowym: http://www.mk.w.pl 
|
| You have the right to change your mind, to substitute functionality,  
| and to change priorities. (Ken Beck's Third Customer Right)   
|

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] HOWTO (but to be improved) - linking to neighbours

2000-08-18 Thread Marcin Kasperski

Dieter Maurer wrote:
 
 Marcin Kasperski writes:
   * Problem
  
   The problem: while presenting some page, I would like to automagically
   add links to 'previous' and 'next' page in the same directory. Say you
   organize a bunch of HOWTOS and you would like to let the people navigate
   via 'next' links - without going back go table of contents.
 You could use:
 
 dtml-in "PARENTS[0].objectValues()" sort=id size=1 orphan=0
!-- Navigation --
dtml-var sequence-item !-- header/footer should be disabled --
 /dtml-in
 

Not exactly. I want my individual pages to be accessible via URL (i.e.
bookmarkable, searchable via ZCatalog and external search engines etc).
And I want previous and next links even if someone finds the page
via its full URL - without going through any table of contents.

Or I miss something.

BTW: I use dtml-in to imlement table of contents.

-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| If information is written down two ways, one of the versions will soon
| be out of date. Therefore: Write everything once  and only once. (XP  
| practice)

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




Re: [Zope] Python function within a ZClass...

2000-08-17 Thread Marcin Kasperski

Vincent wrote:
 
 Is it possible to access Python function within a ZClass ?
 
 If yes, how should I do that ?
 

Two methods

1) create External Method (python code in separate file placed in
Extensions directory + information which file should be called in Zope
management interface)

2) create Python Method (you must install non-standard product providing
Python Methods) - then you edit Python code just via Zope management
interface (like DTML Documents)



-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| You have the right to accept your responsibilites instead of having   
| them assigned to you. (Ken Beck's Third Developer Right)  
|

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Best way to subclass DTML Document and some other ZClassesquestions

2000-08-16 Thread Marcin Kasperski

"R. David Murray" wrote:
 
 On Mon, 14 Aug 2000, Marcin Kasperski wrote:
  1) How can I set standard DTML Document properties (title!) from my
  constructor? I created constructor form and constructor method, I
  succesfully prompt for and set all my properties but I do not know how
  to set properties belonging to DTML Document.
 
 Pass it as an argument to the call that creates the DTML Document.

How? 
Currently my constructor method contains
the following (mk_dtml_document is my custom class which subclasses DTML
Document, Extra is the name of my custom propertysheet):

dtml-with
"mk_dtml_document.createInObjectManager(REQUEST['id'],REQUEST)"

  dtml-call "propertysheets.Extra.manage_editProperties(REQUEST)"
  dtml-comment How can I change original title? /dtml-comment
  dtml-call reindex_object

/dtml-with

title is present in REQUEST and is not set in created document.

 
  2) Can I do anything to have single property screen which would behave
  as original DTML Document property screen but present both original
  properties and properties belonging to my custom property sheet?
 
 Yep.  You should be able to replicate everything the original
 constructor code does in your own code.  Read The Source, Luke grin.
 

I hate replicating code. I love calling it. Couldn't it be done this
way?


  4) Can I do something to have ZCatalog PrincipiaSearch (i.e. full text
  search) to scan some property of my custom ZClass (say property body
  from propertysheet Basic)?
 
 You can add that property name as an index, and construct your
 search form so the search string is submitted to it (see the Advanced
 ZCatalog Searching HowTo).  Or, you could define your own
 PrincipiaSearchSource method and return whatever value is appropriate.
 I *think* you should be able to define this as a method of your
 ZClass, but I've never tried that.  I know it works from python grin.

I tried defining DTML Method with name PrincipiaSearchSource and
contents

dtml-var body

(body is my custom property name).
Next I clicked 'Update Catalog' in ZCatalog screen. Seems my attempt has
been ignored - the amount of objects indexed via PrincipiaSearchSource
(according to ZCatalog status screen) has not changed (those object are
succesfully indexed on title etc).


 
  5) Can I write index_html method of my custom class so it interpret DTML
  tags (like dtml-var substitution)?
 
 I'm sure you can, but I don't know how grin.  But if you are doing
 that, why not just subclass DTML-Method (or document)?

Because I have not done it previously and now I have about 100 objects
of this type and do not know how to perform such a change.


 
  6) What you, Zope gurus, would do if you were to find all the DTML
  Documents in some directory tree and remove them, creating instead 
  Documents (where  Document is some subclass of DTML Document) - and
  keeping the document id, title, contents and properties without change?
 
 Write an external method to do all the object creation, property
 copying, and old object deletion.
 

What about some sample code?


Regards

-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| The cost of a few uncorrected non-critical human errors is less then  
| the cost imposed by a process that tries to prevent them. 
| (Booch,Martin,Newkirk)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] HOWTO (but to be improved) - linking to neighbours

2000-08-16 Thread Marcin Kasperski

[ Below I describe my solution to the problem which seems to me to be
fairly frequent. Maybe someone is interested, maybe someone can show me
better (faster, shorter) solution ]

* Problem 

The problem: while presenting some page, I would like to automagically
add links to 'previous' and 'next' page in the same directory. Say you
organize a bunch of HOWTOS and you would like to let the people navigate
via 'next' links - without going back go table of contents.

* Idea

What I really need is to calculate identifiers of 'neighbours' of my
page in its container. I do have id of the current page, I can easily
got list of all identifiers in the container. So I can just scan this
list, find my id and read previous and next element. Transforming it
into hyperlink is natural.

* Code

First I create the following Python Method (could be External Method as
well). The method returns tuple (previous_id, next_id) substituting ''
if there is no such element (we are at the start or at the end).

--
Name: neighbours
Parameters: self,myId,allIds
Contents:

position = 0
for x in range(0, len(allIds)):
if allIds[x] == myId:
position = x
break
else:
raise 'Internal inconsistency: id ' + str(myId) + ' does not belong
to list ' + str(allIds)

left = ''
right = ''

if position  0:
left = allIds[position - 1]
if position  len(allIds) - 1:
right = allIds[position + 1]

return (left, right)
--

Then I add standard_html_footer DTML Method to the directory with my
iterated items. I put there sth like that (of course presentation can
vary, 'MyHowto' is the metatype of objects I iterate over, as you can
see I call original footer after writting my navigational details):

-
p
dtml-let allIds="PARENTS[0].objectIds(['MyHowto'])"
 myId=id
 neigh="neighbours(myId,allIds)"

  table border="0" width="90%" align="center"tr
td width="33%" align="left"
   dtml-if "neigh[0] != ''"
  a href="dtml-var "neigh[0]""Previous/a
   dtml-else
  nbsp;
   /dtml-if
/td
td width="33%" align="center"
   a href="dtml-var howto_index url"Table of Contents/a
/td
td width="33%" align="right"
   dtml-if "neigh[1] != ''"
  a href="dtml-var "neigh[1]""Next/a
   dtml-else
  nbsp;
   /dtml-if
/td
  /tr/table

/dtml-let

dtml-with "PARENTS[1]"
dtml-var standard_html_footer
/dtml-with

--

(by the way I do not know why I need 'myId=id' in let - but removing
it and putting id on the neighbours parameters list does not work)

* Unsolved problems

There are two important unsolved problems:
- efficiency - I perform linear scan which can be expensive if my
directory contains a lot of objects (I do not know good method to solve
it - I would need some help from Folder class)
- order - if I need to present my objects in some order other than
default, I would need to sort allIds in some way (probably I would need
youse objectValues instead of objectIds)

* Minor tricks

The python method I wrote is generic, I use the same method for two
different folders.

In fact I worked around the order problem for the very simple case -
presenting everything in reverse order. I just exchanged neigh[0] and
neigh[1] in standard_html_footer.



-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| You have the right to say how long each requirement will take you to  
| implement, and to revise estimates given experience. (Ken Beck's  
| Second Developer Right)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Best way to subclass DTML Document and some other ZClasses questions

2000-08-14 Thread Marcin Kasperski

I decided to subclass DTML Document and (using ZClass) create my own
document class (in fact I wanted all my documents to possess some
standard properties and prompt for them on initialization and also to be
CatalogAware). I succeeded (everything more-or-less works), but I still
have some doubts:

1) How can I set standard DTML Document properties (title!) from my
constructor? I created constructor form and constructor method, I
succesfully prompt for and set all my properties but I do not know how
to set properties belonging to DTML Document.

2) Can I do anything to have single property screen which would behave
as original DTML Document property screen but present both original
properties and properties belonging to my custom property sheet?

3) Can I influence property editing screens (what I want is to increase
some edit boxes)?

I created also some classes which do not inherit DTML Document or DTM
method. I have questions about such a configuration:

4) Can I do something to have ZCatalog PrincipiaSearch (i.e. full text
search) to scan some property of my custom ZClass (say property body
from propertysheet Basic)?

5) Can I write index_html method of my custom class so it interpret DTML
tags (like dtml-var substitution)?

And one question after the whole mess. I migrated my (fairly small so
far) website from DTML Documents to my custom document class - and I did
it manually. But I would not like to perform similar operation manually
if the site contained 500 or 5000 pages. 

6) What you, Zope gurus, would do if you were to find all the DTML
Documents in some directory tree and remove them, creating instead 
Documents (where  Document is some subclass of DTML Document) - and
keeping the document id, title, contents and properties without change? 

7) And what if you were to change something a little - say detect that
some property belongs to custom propertysheet and put it there instead
on putting on standard DTML Document propertysheet?

Regards and thanks in advance for any hints and references
Marcin


-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| Osoba jest omegalizacj ewolucji uniwersalnej na  okrelonym odcinku  
| etapowym (Teilhard de Chardin)
|

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

2000-08-14 Thread Marcin Kasperski

Does there exist any simple method to add 'Create and Start Working In'
button on 'Add Version' page? I still repeat simple mistake with adding
version and forgetting to start working in it?

-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| We want to know as early as possible whether or not this project will 
| succeed. Thus we attack the high-risk areas first. (Martin)   
|

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




Re: [Zope] SiteAccess-Apache: passing HOST header

2000-08-09 Thread Marcin Kasperski

"Dr. Dieter Maurer" wrote:
 
 Does anybody know how to convince Apache to pass
 the information from the HTTP HOST header down to ZServer.
 
 This would be very useful for SiteAccess Access Rules.
 

I asked similar question about week ago. Someone advised me to use
non-standard apache module mod_proxy_and_forward. I must admit, I has
not tried it yet (I use binary apache distribution and I still have no
time to find apache sources and compile them).

-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| A complex system that works is invariably found to have evolved from a
| simple system that worked. A complex system designed from scratch 
| never works and cannot be patched to make it work. (Booch)

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




[Zope] FTP editing in version?

2000-08-09 Thread Marcin Kasperski

Is it in any way possible to edit via FTP within a version?

FTP editing is very nice (I love XEmacs and EFS, I hate netscape editing
control). But I do not see any way to edit file via FTP within version.
Do I miss something?

-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| Teams do not make linear progress through analysis.  They don't start 
| with requirement 1 and analyze it, then move to requirement 2 and 
| analyze it. (...) Analysis tends to be revolutionary. (Martin)

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




Re: [Zope] Using ZCatalog with SiteAccess in Zope 2.2

2000-08-08 Thread Marcin Kasperski

tav wrote:
 
 ZCatalog does not seem to like Site Access2
 
 i applied the patch from http://www.zope.org/Members/4am//SiteAccess/patch
 
 and then updated Zope with all the patches from CVS
 
 and it still gives me:
 
 
 Error Type: IndexError
 Error Value: list index out of range
 
 
 if i get rid of SiteRoot from the folder, then ZCatalog works, but Z Search
 Interface doesnt :/
 
 any help would be much appreciated
 

I can only say, that I observed the same bug and posted it to this list
yesterday. Could you put it into Bug Collector (my http link to zope is
rather slow today)?

-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| A (cfg. management) tool can perform two functions: (1) Support a well
| defined and understood process. (2) Act as something to blame when
| things don't work out. (Mark Bools)

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




[Zope] Sth wrong with ZCatalog?

2000-08-07 Thread Marcin Kasperski

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

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

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


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

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


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


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

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




[Zope] Powered by Zope in different colors?

2000-08-04 Thread Marcin Kasperski

Has anyone considered preparing some collection of differently colorized
and sized 'Powered by Zope' logos? Recently I wanted to put it on two
different web pages I created and in both situations I needed to change
it. And I am not completely satisfied with the results (you can see them
on http://www.softax.com.pl/prywatne/marcink/ and
http://www.softax.com.pl) - on first of them I finally removed nice Z
letter, on the second I am unhappy with the colors.


-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| You have the right to change your mind, to substitute functionality,  
| and to change priorities. (Ken Beck's Third Customer Right)   
|

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

2000-08-03 Thread Marcin Kasperski

 I started with popen2 and friends.. but that didn't seem to play well
 with Zope... probably mixing processes and threads is a bad idea... I
 dunno. Anyway I'm not sure of the best way to do this in Windows. Of
 course, ulitmately Shane Hathaway's idea of having a separate 'mini
 cvs servelet' process running that zope communicates with via tcp/ip
 could be the best way to add security and platform independence, but
 it sounds like a fair amount of extra complexity to me, esp when I
 don't have a lot of 'free time' to implement such a strategy.
 
 Any thoughts about this?

Just the redirect idea: WinCVS (www.wincvs.org) uses some method of
embedding CVS inside Windows application (IIRC they even separate CVS
access methods into some DLL). The application is open source, maybe
there is some idea to borrow? 

Warning: to say the truth, I have never read WinCVS sources. But I used
WinCVS ;-)

--
 www.mk.maxi.pl  | People resist change, regardless of what it is.  
Marcin.Kasperski | (Michael Reed)   
  @softax.com.pl |  
@bigfoot.com |

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




[Zope-dev] A few words about revision history

2000-08-01 Thread Marcin Kasperski

[ I am Zope user, not Zope developer, I send this article first to zope
users list but people advised me to discuss it on zope-dev ]

The zope Undo mechanics is nice for clearing simple mistakes, but the
screens filled with 'manage_edit by ...' does not provide too much
information. What I would like is some high level website revision
history. Below I discuss some ideas, please comment on them.

Before details, main motivation: as the main zopesite manager (call me
Stan ;-) ), I give my users permissions to edit parts of the website.
But I would like to see their activities from the high level, with
reports like 'at day such and such Johny the Spoiler performed change
which he named "proofing our department pages" and this change touched
the following objects: ...' (looks like info about saving a version
enriched with info about objects saved).

1) I would like to disable the ability to edit anything outside some
version. I guess that specifying some permissions in configuration would
do, but before I spoil sth I would like to ask whether someone performed
such a configuration and how was it defined?

2) Would be great, if attempt to edit outside of version prompted
You are to edit this website outside any version. Choose to either
 join .dropdownlist of existingversions[JOIN]
 create and join new version of name: ...[CREATE]
 cancel edits[CANCEL]

3) Is it at all possible to check, whether some version is currently
empty (no unsaved edits) or not - and if not, what is unsaved?

4) Is it possible (with current zope) to get changes history with manual
edits grouped somehow
(I'd prefer - instead of having 17 times 'manage_edit by tommy' - to
see '17 manage_edit's by tommy')

5) CVS-like tagging mechanizm would be nice. Seems that version control
is completely implemented, the only thing left is a method to add a
comment at some places of database history - and to provide a method of
browsing them.

--
 www.mk.maxi.pl  | Systems built by humans are always subject to human  
Marcin.Kasperski | error. (Parnas)  
  @softax.com.pl |  
@bigfoot.com |

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




Re: [Zope] How can I proxy from apache to zope and keep source host info?

2000-07-31 Thread Marcin Kasperski

Phil Harris wrote:
 
 There is a patch to Apache that you could apply that passes the client IP
 along in a different HTTP header, if that helps.
 
 It's at http://modules.apache.org/search?id=124.
 

Does anyone has this module compiled for apache 1.3 handy (I mean
mod_add_proxy.so file)? I use binary Debian apache distribution and it
will take some time to download and rebuild apache from sources...

--
 www.mk.maxi.pl  | Teams do not make linear progress through analysis.  
Marcin.Kasperski | They don't start with requirement 1 and analyze it,  
  @softax.com.pl | then move to requirement 2 and analyze it. (...) 
@bigfoot.com | Analysis tends to be revolutionary. (Martin)

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




[Zope] Zope and large files strategies?

2000-07-31 Thread Marcin Kasperski

Are there any limitations for placing large (say 15 MB) files inside
zope databases? What people running zope services and having to serve
such a files usually do - place them in zope or serve them with apache
(placing links inside zope web)?

--
 www.mk.maxi.pl  | As a slow-witted human being I have a very small head
Marcin.Kasperski | and I had better learn to live with it and to respect
  @softax.com.pl | my limitations, rather than to try to ignore them.   
@bigfoot.com | (Dijskstra)

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




Re: [Zope] Does 'favicon.ico' sound familiar to anyone?

2000-07-31 Thread Marcin Kasperski

Phil Harris wrote:
 
 favicon.ico is the name of the icon file that MS IE uses to customize
 favorite listings.
 
 Your site must be being added to a few peoples favorites lists.
 (...)

Thank you very very much. I was doing desparate searches including zope
and apache sources grep, mirroring my site and grepping it etc 

My main conclusion: even if something is going strange on Linux,
Microsoft can be the reason ;-)


--
 www.mk.maxi.pl  | You have the right to an overall plan, to know what  
Marcin.Kasperski | can be accomplished, when, and at what cost. (Ken
  @softax.com.pl | Beck's First Customer Right) 
@bigfoot.com |

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




Re: [Zope] How I can find my password ? if I losted it..

2000-07-29 Thread Marcin Kasperski

Jonathan Desp wrote:
 
 Hi,
 
 I'm searching in several mailing list, but I didnot get the answer, I don't
 remember my password, because I have several data.fs and now I'm trying to
 write all my password for each data.fs, do you know how to get the password
 somewhere ? In which file ? If I open the data.fs with for example cutehtml,
 I'll see the source code, anyone here know an important keywords to search
 in the source code of data.fs or something ?
 

What about changing superuser password (via python zpasswd.py run from
command line), logging as superuser and changing your password via web
interface?

--
Marcin.Kasperski | For waterfall, milestones are commitments. For   
  @softax.com.pl | iterative development, they are decision points. 
Marcin.Kasperski | (Martin) 
@bigfoot.com |

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




Re: [Zope] Zope for secure transactions?

2000-07-29 Thread Marcin Kasperski

 1. Can Zope support SSL or https?

AFAIK without support of some other tool not.

 2. Is there some way in Zope through which i can use secure transactions.

I suspect that yes, although I have not done it. You should be able to
use Apache-SSL as frontend to Zope (employing ProxyPass). There is also
another method, which can work and even be simpler: stunnel (generic SSL
encryption wrapper). I have not run it with zope but I saw it running
perfectly as frontend to POP3/IMAP mail server.


--
Marcin.Kasperski | A reusable framework that is developed by itself will
  @softax.com.pl | probably not be very reusable. (Martin)  
Marcin.Kasperski |  
@bigfoot.com |

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




[Zope] Package for annotating pages?

2000-07-29 Thread Marcin Kasperski

Leading small website, I would like to give my users an ability to make
some annotations on those pages

I imagine sth like: somewhere on the page I have small form which client
can fill to comment the page contents.  Client opinion is kept somewhere
- but not yet visible. Some time later, the page administrator have an
option to browse comments and accept or reject them. Accepted notes are
visible as some decorations, which - after being clicked - show small
popup window with the note contents.

I consider implementing something from the scratch, but maybe there
exists some Zope package, which would help me more or less (either by
implementing my idea or by giving some other mechanisms with similar
purpose).

Regards

--
Marcin.Kasperski | A (cfg. management) tool can perform two functions:  
  @softax.com.pl | (1) Support a well defined and understood process.   
Marcin.Kasperski | (2) Act as something to blame when things don't work 
@bigfoot.com | out. (Mark Bools)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Easiest way to possess 'creation_time' attribute?

2000-07-29 Thread Marcin Kasperski

What is the easiest way to force DTML Methods or documents in some
directory to be automatically annotated with 'creation time' attribute?

I got the problem while developing simple website news page (implemented
so the news are taken from dedicated subfolder and sorted via
bobobase_modification_time reverse):
- if I correct spelling in my news item, it gets 'modern' date
- if I export from one zope instance and import into another one, all
objects get the brand new bobobase_modification_time

Regards


--
Marcin.Kasperski | Users typically do not know exactly what they want   
  @softax.com.pl | and are unable to articulate all that they know. 
Marcin.Kasperski | (Parnas) 
@bigfoot.com |

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




[Zope] Talking about revision history

2000-07-29 Thread Marcin Kasperski

The zope Undo mechanics is nice for clearing simple mistakes, but the
screens filled with 'manage_edit by ...' does not provide too much
information. What I would like is some high level website revision
history. Below I discuss some ideas, please comment on them.

Before details, main motivation: as the main zopesite manager (call me
Stan ;-) ), I give my users permissions to edit parts of the website.
But I would like to see their activities from the high level, with
reports like 'at day such and such Johny the Spoiler performed change
which he named "proofing our department pages" and this change touched
the following objects: ...' (looks like info about saving a version
enriched with info about objects saved).

1) I would like to disable the ability to edit anything outside some
version. I guess that specifying some permissions in configuration would
do, but before I spoil sth I would like to ask whether someone performed
such a configuration and how was it defined?

2) Would be great, if attempt to edit outside of version prompted 
You are to edit this website outside any version. Choose to either 
join .dropdownlist of existingversions[JOIN]
create and join new version of name: ...[CREATE]
cancel edits[CANCEL]

3) Is it at all possible to check, whether some version is currently
empty (no unsaved edits) or not - and if not, what is unsaved?

4) Is it possible (with current zope) to get changes history with manual
edits grouped somehow 
   (I'd prefer - instead of having 17 times 'manage_edit by xaut' - to
see '17 manage_edit's by xaut')

5) CVS-like tagging mechanizm would be nice. Seems that version control
is completely implemented, the only thing left is a method to add a
comment at some places of database history - and to provide a method of
browsing them.

--
 www.mk.maxi.pl  | Even if we could state all of a system's 
Marcin.Kasperski | requirements, there are many details about a system  
  @softax.com.pl | that we can only discover once we are well into its  
@bigfoot.com | implementation. (Parnas)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] What is the best method to enter more attributes about DTL Document?

2000-07-29 Thread Marcin Kasperski

Short and probably obvious problem: what can I do to be asked for more
properties while creating DTML Document (say I wanna be asked about
description and keywords which I use in meta tags)?

--
 www.mk.maxi.pl  | Even if we could state all of a system's 
Marcin.Kasperski | requirements, there are many details about a system  
  @softax.com.pl | that we can only discover once we are well into its  
@bigfoot.com | implementation. (Parnas)

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

2000-07-27 Thread Marcin Kasperski

What should I do to backup Zope (read further...):

1) Can I just backup Data.fs file (and expect that in case of failure I
can install zope as usual, copy backed up Data.fs over the installed
version, run and be happy)?

2) What can I do in case I wish to backup only part of Zope database
contents? In fact, I would like to run usual export on some folder - but
I want to do it from cron or sth. similar without employing web
interface.

Thanks in advance for replies.

--
Marcin.Kasperski | Teams do not make linear progress through analysis.  
  @softax.com.pl | They don't start with requirement 1 and analyze it,  
Marcin.Kasperski | then move to requirement 2 and analyze it. (...) 
@bigfoot.com | Analysis tends to be revolutionary. (Martin)

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




Re: [Zope] Zope and Tuxedo?

2000-07-27 Thread Marcin Kasperski

Cary O'Brien wrote:
 
 Has anyone used Zope to act as a Tuxedo client?
 
 Is anyone interested in doing this?
 
 Mostly it means creating a python extension that acts as a Tuxedo
 client, and then integrating that into Zope as a ZClass or Product or
 something.
 

Writing python extension should not be hard, but Tuxedo used to have
problems in multithreaded environment. Check whether Tuxedo client works
in multithreaded program before further attempts (I do not know how does
it look now, I used Tuxedo ~ 2 years ago).

--
Marcin.Kasperski | Most of the bad things that can happen to a project  
  @softax.com.pl | are the result of miscommunication.  
Marcin.Kasperski | (Booch,Martin,Newkirk)   
@bigfoot.com |

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




[Zope] Downloadable Zope reference and products?

2000-07-27 Thread Marcin Kasperski

Is it possible to download in some way complete zope reference and zope
products?

In case anyone is interested why do I need it: I have fast internet link
at work. I have time to study Zope at home.

--
Marcin.Kasperski | Users typically do not know exactly what they want   
  @softax.com.pl | and are unable to articulate all that they know. 
Marcin.Kasperski | (Parnas) 
@bigfoot.com |

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




[Zope] Problem with ZCatalog output and SiteAccess (with workaround)

2000-07-26 Thread Marcin Kasperski

In short: ZCatalog getpath method returns sth. like
'/public/the/path/to/found/object'
It causes the problem when one uses SiteAccess to modify URL paths
(let's say I use Apache mod_proxy to redirect http://my.host/zope to
http://my.host:8080/public and set SiteAccess in public zope dir to
return http://my.host/zope). URL's generated from ZCatalog searches via
'tutorial way':

a href="dtml-var "catalog.getpath(data_record_id_)""

does not work. I get sth like
http://my.host/public/the/path/to/found/object (and Apache claims no
/public directory on server).

The problem can be solved via via converting fully specified link
returned by getpath to relative link (in most cases it is enough to
split this string on slash, remove 2 leading items and join it again) -
then I get correct URL without SiteAccess intervention.

Code snippet from zcatalog search result form:

dtml-comment
   This does not work with SiteAccess/proxying
  a href="dtml-var "catalog.getpath(data_record_id_)""
/dtml-comment
dtml-let page_path="catalog.getpath(data_record_id_)"
  page_split="_.string.split(page_path,'/')" 
  final_path="_.string.join(page_split[2:],'/')" 
 a href="dtml-var "final_path""
/dtml-let
 dtml-var title/a

This is rather workaround than clean solution. I can imagine two 'true'
solutions:
- patching ZCatalog to return relative URLs only
- patching SiteAccess to do something with '/such/urls' (is it
possible?)

--
Marcin.Kasperski | You have the right to change your mind, to substitute
  @softax.com.pl | functionality, and to change priorities. (Ken Beck's 
Marcin.Kasperski | Third Customer Right)
@bigfoot.com |

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




[Zope] How can I proxy from apache to zope and keep source host info?

2000-07-26 Thread Marcin Kasperski

I configure 'apache as frontent do zope'. Most things work as expected
but I found serious limitation: if I pass request from apache to zope
via mod_proxy (or mod_rewrite [P]), zope sees all requests as coming
from localhost (I specified http://localhost:8080/ as zope address, in
case I specify http://my.host:8080 I would get my.host as source address
- the problem would be the same).

Does there exist any solution to this problem different than using
zope.cgi?


--
Marcin.Kasperski | Communication takes place between people, documents  
  @softax.com.pl | are secondary.  (Booch,Martin,Newkirk)   
Marcin.Kasperski |  
@bigfoot.com |

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




[Zope] Extra info: Can not import XML export

2000-07-24 Thread Marcin Kasperski

I made some experiments and found, that removing from the generated XML
file all tags named klass, state and object (together with their
contents) changes something - loading takes longer and is finished with
different error:

Error Type: AttributeError
Error Value: 'string' object has no attribute '__dict__'

I can not find word __dict__ anywhere in my xml file, maybe some of
Base64 encoded object contain such a thing...

My main suspicion is that I have problem with importing ZCatalog objects

--
Marcin.Kasperski | As a slow-witted human being I have a very small head
  @softax.com.pl | and I had better learn to live with it and to respect
Marcin.Kasperski | my limitations, rather than to try to ignore them.   
@bigfoot.com | (Dijskstra)

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