Re: [Zope3-Users] newbie problems with new content-type

2006-02-08 Thread wata
> > c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir > [ traceback ] > ImportError: No module named z:.my_root_app_dir > > So I go to the z:\ dir and try another form: > > c:\path\to\my\instance\bin\test -vpu --dir my_root_app_dir > Running tests at level 1 > Total: 0 tests, 0 failu

Re: [Zope3-Users] newbie problems with new content-type

2006-02-09 Thread wata
> > Ok, that's my problem. My package was outside the instance lib > directory. I think I have read in the Zope Developers Book that you > could put your application anywhere in your harddisk as long as > PYTHONPATH includes it. > I understand that. a month ago I was in the same situation as

[Zope3-Users] child is not cataloged while adding parent

2006-03-02 Thread wata
I'm writing a folderish content class. That has a site manager, and some children. And the site manager has a catalog and some FieldIndex. It looks like: parent +-- child-1 +-- child-2 +-- child-3 +-- ++etc++site +-- default +-- Intids +-- Catalog

Re: [Zope3-Users] child is not cataloged while adding parent

2006-03-21 Thread wata
Hi, Stephan. I'm really glad to recieve an answer from you. > On Friday 03 March 2006 02:46, [EMAIL PROTECTED] wrote: > > and I've made an export/import view for that folder, where > > I succceeded to catalog children. basically both uses the > > same code. simply like: > > > >      parent[

Re: [Zope3-Users] child is not cataloged while adding parent

2006-03-22 Thread wata
I think that I figured out what is happening. this is what I figured out: (1) zapi.getSizeManager is hooked by zope.app.component.hooks.getSiteManager, which returns siteinfo.sm when 'context' argument is None. (2) so, if I want to use an adapter via getSiteManager(), I have to set "siteinfo" ap

Re: [Zope3-Users] problems with contains and containers

2006-03-23 Thread wata
Hi, Lorenzo. Today, I suffered the same problem as you met. This is what I figured out. 'containers' function add '__parent__' attribute to IMyContent interface, like you did to IMyContentContained interface. It means that new implementation of IMyContent has '__parent__', while old implem

[Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-26 Thread wata
Hi, I got a ploblem with SimpleVocabulary/SimpleTerm. Here is the situation of that. (1) I used Zope3.2 on Windows XP. (2) I made : a vocabulary, and a Choice field with the vocabulary, and a schema contains the field, and an add-form using the schema. (3) the vocabul

Re: [Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-27 Thread wata
Hi, Michael. Your explanations make things very clear. It was my misuse of SimleVocabulary/SimpleTerm. I misunderstood the responsibility of token. I didn't notice that DroopdownWidget renders token only when no title is given. When reading the docstrings of ITerm/ITokenizedTerm/ITitledTokenized

Re: [Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-27 Thread wata
I'd like to ask one more question. Why does SimpleVocabulary.fromValues/fromItems() not set 'title' ? Is there any good reason? Current implementation is unconvenient for non-ascii people. Regards, Katsutoshi -- Watanabe, Katsutoshi # I beg you to point out the error or rudeness of my english. #