| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
longer a root object. Rather, to avoid traversing a database object to
get to it, we create a separate RootFolder just so we can traverse it
to get to the application controller.
We (Guido and I) also renamed the global instance to have a name
starting with a lower case name. This caused the most file changes.
To do: rip out the application controller view registry in favor of
the actions menu.
|
|
|
|
|
|
| |
- no docstrings in test methods (convert to comments)
- whitespace normalization
- other minor cleanups
|
|
|
|
| |
introspector merge. ++module++ namespace lets you traverse to interfaces and classes in dotted notation (see Introspector usage, to be checked in momentarily)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
insist on having a context wrapped object here.
|
|
|
|
|
|
| |
discovering their physical paths. This doesn't apply for the root object,
for example, and might also not apply for objects that supply a different
PhysicallyLocatable adapter that doesn't depend on context wrappers.
|
| |
|
|
|
|
|
| |
This function was not being unit tested at all!
That's not good.
|
|
|
|
|
|
| |
functions.
Refactored tests for these functions for greater clarity and greater
coverage.
|
|
|
|
|
|
| |
It is possible that this should be catching more exceptions and treating
them in the same way. If so, put more specific excepts in. Do not put a
bare except back here!
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
service needs to be in place when testing. For this reason, I've
refactored PlacelessSetup to include events.
- I added a PlacelessSetup in Zope.Event.tests.
This module also registers a subscriber that collects all events in
a list and a function for getting all of the events that match an
optional event type or filter. This is useful so that component
tests can include tests to make sure that the proper events are
being fired.
- I added a PlacelessSetup in Zope.App.tests that combines the
PlacelessSetup from Zope.App.ComponentArchitecture and Zope.Event.
- I changed all the modules that imported
Zope.ComponentArchitecture.tests.PlacelessSetup to import
Zope.App.tests.PlacelessSetup.
|
| |
|
|
|
|
| |
characters in string literals without specifying an encoding.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"Service". Container services were given a plural form
(e.g. "RoleService" => "Roles"), but other services just lost the
suffix (e.g. "AuthenticationService" => "Authentication").
Fixed bug in ZopeSecurityPolicy that caused placeless role-permission
grants to be ignored for placefully assigned roles.
Also changed grant lookup order. Now placeless grants are checked
*before* placeful grants.
Finished the implementation of placeful principal role grants
(re)started at the EuroPython sprint.
Fixed a bug in service directives that caused service component lookup
to fail for unpriviledged users. This caused authentication using
Stephan's authentication service to fail in mysterious ways.
Now you can create users with Stephan's auth service, and assign them
roles using principal-role grants.
Added code to the ZMI (boring) standard_macros template to display the
user, which, BTW is available in request.user.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
side effects (e.g. ++skin++ZopeTop) are used.
Fixed up absolute url bread crumbs to not show side-effect steps in
bread crumbs, while retaining them in the breadcrumb urls.
Refactored side-effect handling slightly (changed context data names)
in absolute url and physical path code.
Added tests for side effect handling for absolute url, physical path,
and namespace handling code.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
namespace handlers:
<traversalNamespace name="etc" handler=".EtcNamespace.etc" />
Added a "skin" namespace so you can play with Sidbei's new UI work
by adding ++skin++ZopeTop to the front of your URLs:
http://localhost:8080/++skin++ZopeTop
Added some needed __init__ modules to some of the new ZopeTop packages
and fixed up ZopeTop configure.zcml.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
are no longer containers. They have a packages subobject (not a
packages service) that contains packages. TTW components are created
in packages. To register a component, create the appropriate component
directive objects (these should be called configuration objects).
This should be viewed as a prototype to illustrate the idea of
packages. Lots of things can change (especially UI) and many things
aren't done (e.g. visiting created directives).
In the course of this, I fixed a bunch of bugs and problems in
traversal machinery.
I also renamed Zope.ComponentArchitecture.IServiceManager back to
IServiceService, since this interface doesn't actually specify any
management.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
location from a tuple of strings or a string.
A canonical location is a slash-delimited unicode string, or a
tuple of unicode strings.
Location strings must not end in a slash (except the root), nor contain
more than one consecutive slashes, nor be of zero length.
Location tuples must not end with an empty string (except the root), nor
contain more than one consecutive empty string, nor be of zero length.
The root location is given as u'/' or (u'',)
|
|
|
|
|
|
|
|
| |
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace
Updated the service manager to use a menu.
Ripped out the old adder registry code.
|
|
|
|
|
|
|
|
|
|
| |
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace
A lot of clean up is needed, including:
- Implementation additional add menus, for example for services.
- Ripping out old unused implementation.
|
|
|
|
|
|
|
|
|
|
| |
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/MergeSecurityIntoZopeNamespace
While I was at it, I couldn't resist implementing a variation of:
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SecurityPackageReorg
which was a lot more work.
|
| |
|
|
|
|
| |
values.
|
| |
|
|
|
|
|
| |
changed zcml filenames to configure.zcml where feasible, and removed
the file attribute of include directives where I could.
|
|
|
|
|
|
|
|
|
|
| |
Zope.App.Traversing.
Fixed a few typos in the ContextWrapper docstrings, and also added
an isWrapper method to Zope/Proxy/IContextWrapper, mainly so that
I can raise nice errors if the convenience functions are passed
an unwrapped object, rather than returning objs or Nones or []s and
having programs fail at tenuously related other places.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Implemented the icon directive
- Implemented
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ResourcesProposal
- Added a special view, named '', for service manager containers that
allows resources to have URLs like:
http://foo.com/@@/resourcename
- Fixed some server code that caused HTTP response data to get
promoted to unicode
- Updated the folder contents page to display icons.
- Ported icons for folder, file, image, and zptpage. Many more icons
need to be ported or created.
|
|
|