summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* It isn't possible to catch an assertion error with python -Oancient-zope3Jeremy Hylton2002-12-201-2/+2
|
* Refactored ApplicationControl so that the application controller is noJim Fulton2002-12-203-11/+12
| | | | | | | | | | | | 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.
* test module cleanups:Barry Warsaw2002-12-201-13/+11
| | | | | | - no docstrings in test methods (convert to comments) - whitespace normalization - other minor cleanups
* cleaned-up merge of some code from Bangalore branch, in preparation for ↵Gary Poster2002-12-192-1/+34
| | | | introspector merge. ++module++ namespace lets you traverse to interfaces and classes in dotted notation (see Introspector usage, to be checked in momentarily)
* added missing period in docs.Steve Alexander2002-12-171-2/+2
|
* Removed extraneous imports.Steve Alexander2002-12-171-5/+3
|
* Merge named-component-configuration-branchMarius Gedminas2002-12-122-7/+16
|
* Add XXX comment to traverseName for SteveA to act upon.Guido van Rossum2002-12-061-0/+4
|
* getting Parent and Parents depends on them being wrapped, so we shouldSteve Alexander2002-12-052-5/+21
| | | | insist on having a context wrapped object here.
* Removed the requirement that objects are always context wrapped forSteve Alexander2002-12-052-33/+1
| | | | | | 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.
* Changed marker object from [] to object()Steve Alexander2002-11-291-2/+2
|
* Fixed bug in getPhysicalPathString convenience function.Steve Alexander2002-11-262-7/+28
| | | | | This function was not being unit tested at all! That's not good.
* Fixed bugs in the locationToTuple and locationToUnicode convenienceSteve Alexander2002-11-262-50/+71
| | | | | | functions. Refactored tests for these functions for greater clarity and greater coverage.
* Removed bare except:Steve Alexander2002-11-111-3/+2
| | | | | | 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!
* changed a name[:2]=='@@' to name.startswith('@@')Steve Alexander2002-10-281-2/+2
|
* Many components now need to generate events. This means that an eventJim Fulton2002-10-044-8/+8
| | | | | | | | | | | | | | | | | | | | 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.
* Stamp out the last uses of Interface.Base.Guido van Rossum2002-08-132-3/+3
|
* Replace pound sign with \xa3 to avoid warnings about non-ASCIIGuido van Rossum2002-08-051-5/+5
| | | | characters in string literals without specifying an encoding.
* Simplify test_suite() implementations when there is only one class.Jeremy Hylton2002-07-179-36/+18
|
* Renamed (changed service type id) if all services with names ending inJim Fulton2002-07-161-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | "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.
* Fixed bug in context management when uri segments that produce onlyJim Fulton2002-07-135-8/+104
| | | | | | | | | | | | | 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.
* Fixed copy-paste bug in the namespace setup for 'item'.Florent Guillaume2002-07-121-1/+1
|
* Fixed bug in the namespace setup for resources.Jim Fulton2002-07-121-1/+2
|
* Finally added a configuration directive for registering traversalJim Fulton2002-07-1211-39/+118
| | | | | | | | | | | | | | 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.
* Reimplemented service managers to be package based. Service managersJim Fulton2002-07-1112-87/+289
| | | | | | | | | | | | | | | | | | 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.
* Added convenience functions to Zope.App.Traversing to get a canonicalSteve Alexander2002-06-252-1/+104
| | | | | | | | | | | | | 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'',)
* Finished implementingJim Fulton2002-06-232-37/+3
| | | | | | | | http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace Updated the service manager to use a menu. Ripped out the old adder registry code.
* Gary and Jim implemented most of:Jim Fulton2002-06-201-1/+0
| | | | | | | | | | 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.
* implemented:Jim Fulton2002-06-201-1/+0
| | | | | | | | | | 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.
* added traverseName convenience function.Steve Alexander2002-06-182-2/+59
|
* added documentation warning against naively traversing using formSteve Alexander2002-06-181-0/+5
| | | | values.
* corrected inappropriate use of "self" as a marker.Steve Alexander2002-06-181-2/+3
|
* changed foo-meta.zcml in tests to meta.zcmlSteve Alexander2002-06-171-0/+0
| | | | | changed zcml filenames to configure.zcml where feasible, and removed the file attribute of include directives where I could.
* Added a set of convenience functions that you can import fromSteve Alexander2002-06-156-5/+380
| | | | | | | | | | 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.
* Got icons working, and, along the way:Jim Fulton2002-06-132-3/+46
| | | | | | | | | | | | | | | | | | | | - 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.
* Merged Zope-3x-branch into newly forked Zope3 CVS Tree.Jim Fulton2002-06-1022-0/+1210