[Zope] re: help required in [result.data_record_id_]

2008-06-02 Thread suhail shaik
Hi,

 I am a novice in zope. i have to debug a program where i get the key value
error, traversal error.

a lil info from the error log.

"Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
   - __traceback_info__:
here.getStoryNumber(here.catalog.data.getobject(result.data_record_id_,
REQUEST=None).getId())
  Module PythonExpr, line 1, in 
  Module Products.ZCatalog.ZCatalog, line 590, in getobject
  Module OFS.Traversable, line 284, in unrestrictedTraverse
   - __traceback_info__: (['20071122_9.txt', 'stories', 'text'], '20071122')
KeyError: '20071122'"


i am unable to understand why this error is occuring . at the expression.

 


i would be happy if some one could give me a sense of direction and give a
brief idea where the error could have occured and how i should approach.

thanks in advance.

suhail
___
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] statistics and click analysis for a plone site

2008-06-02 Thread Andreas Jung



--On 2. Juni 2008 07:22:06 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> wrote:


Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.


Do you really want to send intranet-related data to Google? :-)

Andreas

pgpgIisQIyYxi.pgp
Description: PGP signature
___
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] statistics and click analysis for a plone site

2008-06-02 Thread robert rottermann

Hi there,
for a Client using a plone2 intranet (with no access from the outside 
world) I installed awstat to track the usage of the intranet.

now I wonder how meningfull such statisics are.

The intranet usage is roughly as follows:
- user logs into the intranet authenticating against a 
Ldap/MSActiveDirectory

- she stays in the intranet all day, probably never logs out
- collects data as needed

The awstats setup is very basic. I just installed it and adopted the 
config files such that it finds the apache log files.
I did a second setup for the Z2.log (to get at the old data, as we do 
not rotate the Z2.log).


Looking at the awstats statistics I do not find them of overwhelming 
informative.
Now, I now awstats is not a click analysis tool. but maybe somebody has 
done some more analysis into how to provide useful statistics on the 
usage of an intranet.

Any pointers would be welcome.

thanks
robert
___
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] statistics and click analysis for a plone site

2008-06-02 Thread Andreas Jung



--On 2. Juni 2008 12:52:38 +0200 robert rottermann <[EMAIL PROTECTED]> wrote:




Looking at the awstats statistics I do not find them of overwhelming
informative.
Now, I now awstats is not a click analysis tool. but maybe somebody has
done some more analysis into how to provide useful statistics on the
usage of an intranet.


Since the information stored within the standard logs is limited, all tools 
can only perform an analysis on top of the available information. So the 
tools basically provide the same functionality and differ only in the way 
they present the results to the outside world.


Andreas

pgpFBgTPrRt7Q.pgp
Description: PGP signature
___
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] statistics and click analysis for a plone site

2008-06-02 Thread tom
that's a call that each individual has to make. if you're
uncomfortable with google knowing your intranets title tags and urls
then don't. the guy is looking for potential solutions not explantions
of why he can't or shoulndt do something.

On 6/2/08, Andreas Jung <[EMAIL PROTECTED]> wrote:
>
>
> --On 2. Juni 2008 07:22:06 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]>
> wrote:
>
>> Highly recommend Google Analytics:
>> http://www.google.com/analytics/
>> I've used it myself to track usage for a zope intranet which is only
>> accessible on an internal network.
>
> Do you really want to send intranet-related data to Google? :-)
>
> Andreas
___
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] statistics and click analysis for a plone site

2008-06-02 Thread Tom Von Lahndorff
Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.

On Mon, Jun 2, 2008 at 6:52 AM, robert rottermann <[EMAIL PROTECTED]> wrote:
> Hi there,
> for a Client using a plone2 intranet (with no access from the outside world)
> I installed awstat to track the usage of the intranet.
> now I wonder how meningfull such statisics are.
>
> The intranet usage is roughly as follows:
> - user logs into the intranet authenticating against a
> Ldap/MSActiveDirectory
> - she stays in the intranet all day, probably never logs out
> - collects data as needed
>
> The awstats setup is very basic. I just installed it and adopted the config
> files such that it finds the apache log files.
> I did a second setup for the Z2.log (to get at the old data, as we do not
> rotate the Z2.log).
>
> Looking at the awstats statistics I do not find them of overwhelming
> informative.
> Now, I now awstats is not a click analysis tool. but maybe somebody has done
> some more analysis into how to provide useful statistics on the usage of an
> intranet.
> Any pointers would be welcome.
>
> thanks
> robert
> ___
> 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 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] statistics and click analysis for a plone site

2008-06-02 Thread robert rottermann

Andreas Jung schrieb:



--On 2. Juni 2008 07:22:06 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> 
wrote:



Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.


Do you really want to send intranet-related data to Google? :-)

Andreas

this is exactly why google analytics is no option (unfortunately).
robert
___
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] statistics and click analysis for a plone site

2008-06-02 Thread robert rottermann

Tom Von Lahndorff schrieb:

Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.

On Mon, Jun 2, 2008 at 6:52 AM, robert rottermann <[EMAIL PROTECTED]> wrote:

thanks, but the customer does not like the idea of having data on a public site.
robert
___
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] statistics and click analysis for a plone site

2008-06-02 Thread Andreas Jung



--On 2. Juni 2008 14:50:42 +0200 robert rottermann <[EMAIL PROTECTED]> wrote:


Tom Von Lahndorff schrieb:

Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.


Then look at the (incomplete) list of available tools:



and check their feature list.

Andreas

pgp1Lhyocnv31.pgp
Description: PGP signature
___
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] statistics and click analysis for a plone site

2008-06-02 Thread Tino Wildenhain

Hi,

robert rottermann wrote:

Hi there,
for a Client using a plone2 intranet (with no access from the outside 
world) I installed awstat to track the usage of the intranet.

now I wonder how meningfull such statisics are.


I guess you have something like apache in front of the zope,
if so you can make a custom log format (with relevant fields,
separated uniform, e.g. tabs) and spool them in a database,
for example I used some tables in postgres: uris (uri_id,'/foo/bar')
queries (query_id,'?foo=bar')   methods (method_id, 'GET'),
hostnames (host_id,'www.foo.de')
access (timestamp,host_id,bytes,time,method_id,uri_id,query_id )

with an insert-script and then you can easily run reports against
those structured data. You can also include various request parameters
I did not show above (like session cookie, auth_user, ...)

Regards
Tino


smime.p7s
Description: S/MIME Cryptographic Signature
___
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] Re: PageTemplates len() of unsized object

2008-06-02 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2008-5-28 21:52 +0200:
>Dieter Maurer wrote:
>>> 2008-05-24T09:31:32 ERROR Zope.SiteErrorLog 
>>> http://myurl/error_log/manage_main
>>> Traceback (innermost last):
>>>   Module ZPublisher.Publish, line 119, in publish
>>>   Module ZPublisher.mapply, line 88, in mapply
>>>   Module ZPublisher.Publish, line 42, in call_object
>>>   Module Shared.DC.Scripts.Bindings, line 313, in __call__
>>>   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
>>>   Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
>>>   Module Products.PageTemplates.PageTemplate, line 89, in pt_render
>>>   Module zope.pagetemplate.pagetemplate, line 117, in pt_render
>>>   Module zope.tal.talinterpreter, line 271, in __call__
>>>   Module zope.tal.talinterpreter, line 346, in interpret
>>>   Module zope.tal.talinterpreter, line 379, in do_startEndTag
>>>   Module zope.tal.talinterpreter, line 412, in do_startTag
>>> TypeError: len() of unsized object
> ...
>As far as I can tell, the code in zope.pagetemplate and zope.tales still 
>has the same traceback information that Products.PageTemplate had. 
>zope.tal, which contains the TAL interpreter, doesn't have any traceback 
>supplements, but then again, Zope 2's TAL package doesn't either.
>
>To conclude, I don't think there's a "step backward" at all.

The Zope 2.9 code had traceback support in "PageTemplate.pt_render"
which told us which template was affected.
As you can see in the traceback above, at least this traceback support
is lost in Zope 2.10.

To conclude: "no step backward at all" is incorrect.

Looking at Zope 2.11, the traceback support above seems to have
been resurrected.


Furthermore, I could not find the equivalent of the transback
support which formerly was in "Expressions.py" (I found the one
corresponding to "TALES" and "PythonExpr").









-- 
Dieter
___
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] Re: PageTemplates len() of unsized object

2008-06-02 Thread Philipp von Weitershausen

On 2 Jun 2008, at 20:44 , Dieter Maurer wrote:

Philipp von Weitershausen wrote at 2008-5-28 21:52 +0200:

Dieter Maurer wrote:

2008-05-24T09:31:32 ERROR Zope.SiteErrorLog http://myurl/error_log/manage_main
Traceback (innermost last):
 Module ZPublisher.Publish, line 119, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 42, in call_object
 Module Shared.DC.Scripts.Bindings, line 313, in __call__
 Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
 Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
 Module Products.PageTemplates.PageTemplate, line 89, in pt_render
 Module zope.pagetemplate.pagetemplate, line 117, in pt_render
 Module zope.tal.talinterpreter, line 271, in __call__
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 379, in do_startEndTag
 Module zope.tal.talinterpreter, line 412, in do_startTag
TypeError: len() of unsized object

...
As far as I can tell, the code in zope.pagetemplate and zope.tales  
still

has the same traceback information that Products.PageTemplate had.
zope.tal, which contains the TAL interpreter, doesn't have any  
traceback

supplements, but then again, Zope 2's TAL package doesn't either.

To conclude, I don't think there's a "step backward" at all.


The Zope 2.9 code had traceback support in "PageTemplate.pt_render"
which told us which template was affected.
As you can see in the traceback above, at least this traceback support
is lost in Zope 2.10.

To conclude: "no step backward at all" is incorrect.

Looking at Zope 2.11, the traceback support above seems to have
been resurrected.


Furthermore, I could not find the equivalent of the transback
support which formerly was in "Expressions.py" (I found the one
corresponding to "TALES" and "PythonExpr").


Thank you for that careful analysis. I was only comparing Zope 2.9  
with Zope 3 (which are AFAICT equivalent in their traceback info) but  
I didn't take 2.10 into consideration. I've now filed a bug report at https://bugs.launchpad.net/zope2/+bug/236938 
 to make sure the issue isn't lost. I will look into it a.s.a.p.


___
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] Reinventing a proxy wheel?

2008-06-02 Thread Gaute Amundsen
Hi.

I think I may just have reinvented a kind of cgi-proxy for authentication 
purposes. Seems to work nicely so far, but oh, so ugly. Thus I would be 
gratefull for any pointers towards some more enlightened solution.

Problem to solve: External php based facility needs to be made available to 
logged in zope users only, but have no built in mechanism to to 
handle "everyone must log in to see anything at all" situations. Some users 
can be synced by way of sql, but many can not. This is a given.

My solution so far: An external method that wraps wget. Rearanges the url to 
connect via 127.0.0.1, and use original host as host header. Use Apache to 
close access to everyone but 127.0.0.1. Rest of the script basically shuffles 
headers back and forth from zope to wget, and back. and the script can of 
course be subject to normal zope access checks.

If no major flaws with this approach appears, I will of course replace wget 
with urllib, and perhaps even productify the thing, but before I do that I 
have this nagging feeling of reinventing the wheel that I need to address...

Regards

Gaute Amundsen


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