Re: [Zope] PlacelessTranslationService

2010-03-22 Thread Radim Novotny
Milos Prudek napsal(a):
 Hi,
 
 is this the right place to post question about PlacelessTranslationService?
 
 

You may try comp.web.zope.plone.internationalization list as well.

-- 
Radim

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


[Zope-dev] Re: AW: Annoying: Download error: unknown url type: svn -- Some packages may not be found!

2008-05-07 Thread Radim Novotny

Roger Ineichen napsal(a):

Hi David
 
Betreff: [Zope-dev] Annoying: Download error: unknown url 
type: svn -- Some packages may not be found!


Which package is emitting the Download error: unknown url 
type: svn -- Some packages may not be found! Its quite 
annoying and I have been seeing it crop up in a few builds. 
Anyone else seeing this. Many thanks.


I see this too. Try the buildout debug option, probably this
will you give a better output.


I have got the same error today. buildout - was not sufficient so I 
added print output to setuptools/package_index.py and discovered this 
message is caused by z3c.form:


Getting required 'z3c.form'
  required by plone.z3cform 0.1b2.
Reading  http://pypi.python.org/simple/z3c.form/
Reading  svn://svn.zope.org/repos/main/z3c.form
Download error: unknown url type: svn -- Some packages may not be found!
Reading  http://svn.zope.org/z3c.form
We have the best distribution that satisfies 'z3c.form'.
Adding find link 'http://download.zope.org/distribution' from z3c.form 1.8.2
Picked: z3c.form = 1.8.2


--
Radim Novotny

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

http://mail.zope.org/mailman/listinfo/zope )


[Zope] Re: Defining a dictionary in ZPT?

2007-11-01 Thread Radim Novotny

michael nt milne napsal(a):

yeah I have modified to this

li tal:define = query here/testquery
 tal:repeat=result python:query(id='IT')
span tal:replace=python:repeat['result'].firstnameFirst 
Name/spannbsp;

  /li



1) don't make spaces around = in HTML attributes:
tal:define=query here/testquery

2) Why do you use repeat['result'] ? Can you point us to documentation 
where did you read it ?

   tal:replace=result/firstname  should work as expected or
   tal:replace=python:result['firstname'] in case of result is 
dictionary and you need to use python: for some reason.


3) what testquery returns ? I suppose it returns method, because you are 
calling this method wit parameter 'id', but I don't think you meant it 
in this way.


--
Radim Novotny

___
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: ATFolder Annotations on Plone, could not find adapter on Windows

2007-05-11 Thread Radim Novotny

IIRC, you must explicitly include annotation package in your configure.zcml:

 include package=zope.app.annotation /


Hi:

I have Plone 2.5.2 installed on Zope 2.9.5 in two different machines.
The first one is my Ubuntu box and the other one is a Windows server.

I've created a custom content-type that basically inherits from ATFolder
(Products.ATContentTypes.content.folder.ATFolder). After our zope3
training at Chappel Hill with Phillip, I'm trying to do my developments
in a Zope3-style, so I decided to store some data as an annotation of
this objects.

So, I mark my class with IAttributeAnnotatable, and when I try to adapt
my object to IAnnotations to get or set the annotations, it works on my
Linux but not on Windows.

If I go to the ZMI and check this object's Interfaces tab
(www.myserver.com/myobject/manage_interfaces), I can see that
IAttributeAnnotatable is in the interface list of the object, but Zope
fails to find the adapter.

I've added a pdb.set_trace() in my annotation accessing view, and
debugged it using runzope.bat but I'm still getting 'Could not adapt'
error. I paste the debugging session:

(Pdb) l
 80def __call__(self, *args, **kwargs):
 81context = aq_inner(self.context)
 82import pdb; pdb.set_trace()
 83try:
 84adapted = IAnnotations(context)
 85except:
 86from zope.app.annotation.interfaces import
IAttributeAnnotatable
 87data = IAttributeAnnotatable.providedBy(context)
 88return str(data)
 89
 90return adapted.get(self.ANNOTATION_KEY, '')
(Pdb) context
MUSubSite at /mu/subgep
(Pdb) from zope.app.annotation.interfaces import IAttributeAnnotatable as ii
(Pdb) from zope.app.annotation.interfaces import IAnnotations
(Pdb) ii.providedBy(context)
True
(Pdb) IAnnotations(context)
*** Type Error: ('Could not adapt', MUSubSite at /mu/subgep,
InterfaceClass zope.app.annotation.interfaces.IAnnotations)
(Pdb)

Firstly, I thought that perhaps there was some nasty Acquisition issue
here, so I tried with self.context (without the aq_inner thing), but it
also fails:

(Pdb) ii.providedBy(self.context)
True
(Pdb) IAnnotations(self.context)
*** Type Error: ('Could not adapt', MUSubSite at /mu/subgep,
InterfaceClass zope.app.annotation.interfaces.IAnnotations)
(Pdb)

In my Linux box, everything works great:

(Pdb) context
MUSubSite at /mu/eps
(Pdb) self.context
MUSubSite at /mu/eps
(Pdb) from zope.app.annotation.interfaces import IAnnotations
(Pdb) from zope.app.annotation.interfaces import IAttributeAnnotatable as ii
(Pdb) ii.providedBy(context)
True
(Pdb) ii.providedBy(self.context)
True
(Pdb) IAnnotations(context)
{}
(Pdb) IAnnotations(self.context)
{}

Any hint will be appreciated,

Best regards,

Mikel Larreategi




--
naro

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