[Zope] IndexError

2007-07-23 Thread kamal hamzat
Hi,

I am having IndexError in some of my folders when i tried to view the content 
of Zcatalog created in these folders, but to my surprise this is not happening 
in other folders with similar Zcatalog. I am also not experiencing the same 
problem with objects of the old Zcatalog that I have catalog before this error. 
In an attempt to correct this error, i had duplicated the old Zcatalog and 
renamed it. But once i catalog the objects and try to view it, it will show the 
IndexError again.

Traceback (innermost last): 
  a.. Module ZPublisher.Publish, line 119, in publish 
  b.. Module ZPublisher.mapply, line 88, in mapply 
  c.. Module ZPublisher.Publish, line 42, in call_object 
  d.. Module OFS.DTMLMethod, line 143, in __call__
  
  URL: http://www.news-online.com/politics/test/manage_main
  Physical Path:/news/politics/test 
  e.. Module DocumentTemplate.DT_String, line 476, in __call__ 
  f.. Module DocumentTemplate.DT_In, line 676, in renderwob 
  g.. Module AccessControl.ImplPython, line 191, in guarded_getitem 
  h.. Module AccessControl.ZopeGuards, line 67, in guarded_getitem 
  i.. Module Products.ZCatalog.Lazy, line 162, in __getitem__ 
IndexError: 1 



Kamal
___
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] folders show with firefox but not IE7

2007-07-23 Thread Jonathan


- Original Message - 
From: "Tim Nash" <[EMAIL PROTECTED]>

To: 
Sent: Monday, July 23, 2007 2:02 PM
Subject: [Zope] folders show with firefox but not IE7



Anyone experiencing weird behavior with IE 7? I was creating folders
into a folder that had exiting folders and the new folders wouldn't
show up (old ones did show)until I did a paste of a different folder.
Then all the folders showed up. I removed the user folder and a
catalog from that folder and still saw the same problem. Then I
switched to firefox and everything was back to normal. All the folders
appeared upon creation.


I use IE7.0 with Zope 2.9.4 without any problems.  You could be encountering 
a caching problem...



Jonathan 


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


[Zope] folders show with firefox but not IE7

2007-07-23 Thread Tim Nash

Anyone experiencing weird behavior with IE 7? I was creating folders
into a folder that had exiting folders and the new folders wouldn't
show up (old ones did show)until I did a paste of a different folder.
Then all the folders showed up. I removed the user folder and a
catalog from that folder and still saw the same problem. Then I
switched to firefox and everything was back to normal. All the folders
appeared upon creation.

Any thoughts?

Tim

IE7
firefox 1.5
zope 2.9
___
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 )


[Zope] Re: Virtual host monster question

2007-07-23 Thread Garito

Hi, again!
Please forget my previous question in this threat

The problem was the rewrite rule but now is solved

Sorry!

2007/7/23, Garito <[EMAIL PROTECTED]>:


Hi!
I create a website in development environment that works fine

But when I try to put it on the production server links stop working

Why? Seems is a question of VHM misconfiguration

I have a domain www.example.com who host the server but the website (at
www.example.com/Webs/myclient) is on www.myclient.com

When I visit www.myclient.com seems to work ok but If I put the mouse over
a link the url is not translated by VHM

I spect for: www.myclient.com/Page1
The reality is I have: www.example.com/Webs/myclient/Page1

Can you see what is happening?

Need some more information?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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 )


[Zope] Virtual host monster question

2007-07-23 Thread Garito

Hi!
I create a website in development environment that works fine

But when I try to put it on the production server links stop working

Why? Seems is a question of VHM misconfiguration

I have a domain www.example.com who host the server but the website (at
www.example.com/Webs/myclient) is on www.myclient.com

When I visit www.myclient.com seems to work ok but If I put the mouse over a
link the url is not translated by VHM

I spect for: www.myclient.com/Page1
The reality is I have: www.example.com/Webs/myclient/Page1

Can you see what is happening?

Need some more information?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito
___
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 )


[Zope] HELP! Will PAY YOU to Fix This Problem!

2007-07-23 Thread tonylabarbara
Hi;
I just built out a new server according to a formulary I´ve worked before 
without any problems. Now, however, I have a bug in ALL of my Zope sites that 
throws a strange attribute error for various attributes that have always worked 
in the past (see thread "AttributeError: Can´t Pin It Down!"). I built 
everything from *.zexp files when my sites were working fine on my old server. 
I can send you the exact formulary I used to build the server (on FBSD). I have 
lost a couple of weeks over this silly problem that no one on the list has been 
able to address. HELP! Write me off list. Give me your hourly rate. 
Thanks,
Tony

AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
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] SiteErrorLog

2007-07-23 Thread Garito

Hehehe, fantastic job, Peter!

2007/7/23, Peter Bengtsson <[EMAIL PROTECTED]>:


RSS feed of error_log

http://www.fry-it.com/oss/BetterSiteErrorLog/BetterSiteErrorLog-0.2.tgz/CHANGES.txt

On 7/23/07, Garito <[EMAIL PROTECTED]> wrote:
> Hi!
> It will be very interessant if this site error log will generate an Rss
url.
> With it we can get notifications if a production web raises an error
>
> Thanks!
>
> 2007/7/11, Peter Bengtsson < [EMAIL PROTECTED]>:
> > I'm not changing the traceback of the actual errors.
> >
> > Jonathan wrote:
> > >
> > > - Original Message - From: "Peter Bengtsson" <
[EMAIL PROTECTED]>
> > > To: "zope user list" < zope@zope.org>
> > > Sent: Wednesday, July 11, 2007 11:16 AM
> > > Subject: [Zope] SiteErrorLog
> > >
> > >
> > >> I've been playing with a new monkey patch product for zope 2.8 (at
> > >> least) and I confidentally call it 'BetterSiteErrorLog'. The only
two
> > >> features I've added so far is to make the error log searchable and
> > >> that it shows the date of errors older than one day.
> > >>
> > >> What other products are there out there already that I should look
at?
> > >>
> > >> What other features have you guys been desiring in the error_log
but
> > >> never had the time to do something about?
> > >
> > > Wish list item:  inclusion of line number where error occurs in a
dtml
> > > method (or code that caused the error)
> > >
> > > Many many thanks if you can make this happen!
> > >
> > > Jonathan
> > >
> > > ___
> > > 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 )
> > >
> >
> > --
> > Peter Bengtsson,
> > work www.fry-it.com
> > home www.peterbe.com
> > hobby www.issuetrackerproduct.com
> > ___
> > 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 )
> >
>
>
>
> --
> Mis Cosas
> http://blogs.sistes.net/Garito
> ___
> 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 )
>
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] AttributeError: Can't Pin It Down!

2007-07-23 Thread tonylabarbara



-Original Message-
From: Dieter Maurer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Sun, 22 Jul 2007 1:51 pm
Subject: Re: [Zope] AttributeError: Can't Pin It Down!



[EMAIL PROTECTED] wrote at 2007-7-21 14:27 -0400:
> > ...
> >Error Type: AttributeError
> >Error Value: masterMarketItems
> >
> >
> >This error shows on a page but not in the error log!!
> 
> Maybe, it comes from your error page (i.e. "standard_error_message").
> Then, you should see the entry in the error log that caused
> the error in the first place.
> 
> 



Nothing in the error log about that :(

> > ...
> >Module Products.PageTemplates.TALES, line 221, in evaluate
> >URL: /example.com/eng/test
> >Line 7, Column 0
> >Expression: 
> > ...
> >Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
> >__traceback_info__: request.contact_us_form.header() 
> >
> >Module Python expression "request.contact_us_form.header()", line 1, in 
>  
> >
> >Module ZPublisher.HTTPRequest, line 1223, in __getattr__ 
> 
> You did it almost right. You forgot to include the
> "Error Type" and "Error Value" information.




Exception Type

AttributeError



Exception Value

header




> 
> But, from what you have included, I guess that "request" does
> not have a "contact_us_form" attribute.
> 
Can you explain? I have a Formulator form called "contact_us_form" and it's in 
the same folder, so there's no problem with inheritance.

> I am unfamiliar with "Formulator" -- but it seems strange to me
> that you expect "request" to contain complete forms.
> 
Well, frankly, I built this site a long time ago before PTs were in vogue and 
it worked just fine using DTML. I changed it to PT for you to throw and capture 
this error ;)

Since this is happening with all applications and they worked just fine before 
I took the *zexp snapshots and loaded them into the new server, I was thinking 
this must come from something below the application level; namely, from a built 
of Zope itself. I thought maybe I built this from a FBSD port, but no, it's Z 
2.7.8 and I built it from source thus:

tar zxvf Zope-2.7.8-final.tgz 

cd Zope-2.7.8-final 

./configure --with-python=/usr/local/bin/python2.3 --prefix=/usr/local/zope/278 
&& make && make install 

/usr/local/zope/278/bin/mkzopeinstance.py 

Directory: /usr/local/zope/instance1 

cd /usr/local/zope/instance1 

vi etc/zope.conf 

effective-user tony 

chown tony var/ 

chown tony etc/ 

chown tony etc/* 

chown tony log/ 

chown tony log/*

This is fine, though, right? Also, I went to zope to find a copy of this 
tarball and couldn't! Every other tarball is on the list but 2.7.8!!
http://www.zope.org/Products/Zope/swpackage_releases
What's up with that??
TIA,
Tony




AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
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] SiteErrorLog

2007-07-23 Thread Peter Bengtsson

RSS feed of error_log
http://www.fry-it.com/oss/BetterSiteErrorLog/BetterSiteErrorLog-0.2.tgz/CHANGES.txt

On 7/23/07, Garito <[EMAIL PROTECTED]> wrote:

Hi!
It will be very interessant if this site error log will generate an Rss url.
With it we can get notifications if a production web raises an error

Thanks!

2007/7/11, Peter Bengtsson < [EMAIL PROTECTED]>:
> I'm not changing the traceback of the actual errors.
>
> Jonathan wrote:
> >
> > - Original Message - From: "Peter Bengtsson" <[EMAIL PROTECTED]>
> > To: "zope user list" < zope@zope.org>
> > Sent: Wednesday, July 11, 2007 11:16 AM
> > Subject: [Zope] SiteErrorLog
> >
> >
> >> I've been playing with a new monkey patch product for zope 2.8 (at
> >> least) and I confidentally call it 'BetterSiteErrorLog'. The only two
> >> features I've added so far is to make the error log searchable and
> >> that it shows the date of errors older than one day.
> >>
> >> What other products are there out there already that I should look at?
> >>
> >> What other features have you guys been desiring in the error_log but
> >> never had the time to do something about?
> >
> > Wish list item:  inclusion of line number where error occurs in a dtml
> > method (or code that caused the error)
> >
> > Many many thanks if you can make this happen!
> >
> > Jonathan
> >
> > ___
> > 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 )
> >
>
> --
> Peter Bengtsson,
> work www.fry-it.com
> home www.peterbe.com
> hobby www.issuetrackerproduct.com
> ___
> 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 )
>



--
Mis Cosas
http://blogs.sistes.net/Garito
___
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 )





--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
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 )