Re: [Zope3-Users] How do I get the Interfaces in right order?

2005-08-01 Thread Stephan Richter
On Monday 18 July 2005 12:49, Johan Carlsson wrote:
> But how can I control that order?
>
> Also, which maybe is more of a question for the zope3 developers
> which I assume is on this list as well :-), woundn't it be a
> good idea to have someway of overriding the order of menus.
> Maybe just swaping the order of the sorting items from:

The order of menu items can also be controlled using the "order" attribute.

> (ifaces.index(item._for or Interface), item.order, item.title, item)
>
> to:
>
> (item.order, ifaces.index(item._for or Interface), item.title, item)

You really do not want to mess with the interface order, ever!

> But order doesn't seem to be implemented everywhere?
> For instance not all ZCML directives that implement the menu (MenuField)
> implemets the order field?

Then don't use those menu attributes and write out the menuItem directive 
explictely.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Importing resource directory hierarchy

2005-08-01 Thread Stephan Richter
On Tuesday 19 July 2005 05:42, Johan Carlsson wrote:
> Is the anyway to importing a hierarchy of folders as a resource,
> with the folder hierarchy intact.
>
> For instance the file tiny_mce/themes/advanced/editor_template.js
> should be accessed as @@/tiny_mce/themes/advanced/editor_template.js

Yes, look at the browser:resourceDirectory directive.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Providing schema information to Flash

2005-08-01 Thread Stephan Richter
On Thursday 21 July 2005 13:09, Alec Munro wrote:
> We're building a fairly sophisticated application that uses Flash as
> it's primary front end. I would really like to keep the specific data
> logic in Flash as simple as possible. I have a good communication
> setup using JSON-RPC (thanks to Jim Washington!), and now I want to
> expand on it, and figure out a good way to provide Flash with
> information about what types of data it should expect. I'm not sure
> how to accomplish this. My initial idea was to provide information
> about the interfaces to Flash, and allow Flash to interpret those.
>
> Any advice on the best way to proceed would be very helpful.

I think the above sounds like a good approach. Note that you could also 
develop Flash widgets, like we have HTML widgets now, that could have all 
sorts of things they can send to the Flash application.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Properties of content components as containers.

2005-08-01 Thread Stephan Richter
On Monday 25 July 2005 13:22, Alec Munro wrote:
> Writing it out, it seems like the second method is probably the more
> correct one, but I would appreciate people's opinions, as I have much
> to learn.

I think it would be good for you to read Phillip and my book. We cover those 
sort of cases.

Regardsm
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Multi-directional adapters.

2005-08-01 Thread Stephan Richter
On Wednesday 27 July 2005 10:04, Alec Munro wrote:
> I'm sure I'm using the wrong terminology, so here's what I'm trying to do.
> I have a generic container type (someContainer), and a specific object
> type (objA). objA can only be contained within AContainer (or
> containers that implement IAContainer), so in order to add objA to
> someContainer, we would need an adapter between IAContainer and
> IsomeContainer. To complicate the mix, there is no such adapter
> (because I don't want objA stored in someContainer). However, there is
> an adapter between IBContainer, and IsomeContainer. There is also an
> adapter between IobjA and IobjB.

This use case has been solved for a long time using the API of 
zope.app.containers.constraints and is documented in several places.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] svn problem

2005-08-01 Thread Jim Fulton

Leticia Larrosa wrote:

Thanks to Jim.
I try whith 
"svn://svn.zope.org/repos/main/Zope3/branches/ZopeX3-3.0/src/zwiki" too, but 
get the error:

"svn: Can't connect to host 'svn.zope.org': Connection timed out"

You can connect without problem?


Yup


Any have an idea about why get this error?


Nope, sorry.

Jim
--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] svn problem

2005-08-01 Thread Leticia Larrosa
Thanks to Jim.
I try whith 
"svn://svn.zope.org/repos/main/Zope3/branches/ZopeX3-3.0/src/zwiki" too, but 
get the error:
"svn: Can't connect to host 'svn.zope.org': Connection timed out"

You can connect without problem?
Any have an idea about why get this error?

The answer of this help me to look for other problems in my system, like the 
iptable in Debian, etc.

Thanks a lot !


-Original Message-
From: Jim Fulton <[EMAIL PROTECTED]>
To: Leticia Larrosa <[EMAIL PROTECTED]>
Cc: zope3-users@zope.org
Date: Sun, 31 Jul 2005 13:10:17 -0400
Subject: Re: [Zope3-Users] svn problem

> Leticia Larrosa wrote:
> > Hi all:
> >  
> >  I try to connect to the svn repository of zope 3 at this direction: 
> > http://svn.zope.org/Zope3/branches/ZopeX3-3.0/src/zwiki/
> > using TortoiseSVN, and test by other hand with the svn package of 
> > Debian. I both I get the error:
> >  
> > PROPFIND of "": 301 Moved Permanently ( http://svn.zope.org)
> 
> That is not an svn repository. It is a viewcvs view of the
> svn repo.
> 
> Use: svn://svn.zope.org/repos/main/Zope3/branches/ZopeX3-3.0/src/zwiki
> 
> Jim
> 
> -- 
> Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
> CTO  (540) 361-1714http://www.python.org
> Zope Corporation http://www.zope.com   http://www.zope.org
> 
> 




___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users