[Zope3-checkins] SVN: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/httpfactory.py

Andreas Jung andreas at andreas-jung.com
Fri Oct 7 08:14:52 EDT 2005


Log message for revision 38875:
  

Changed:
  U   Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/httpfactory.py

-=-
Modified: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/httpfactory.py
===================================================================
--- Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/httpfactory.py	2005-10-07 12:12:32 UTC (rev 38874)
+++ Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/httpfactory.py	2005-10-07 12:14:52 UTC (rev 38875)
@@ -32,6 +32,18 @@
 
 
 def chooseClasses(method, environment):
+    from zope.app.publication.requestpublicationregistry import PublicationRegistry
+
+    content_type = environment.get('CONTENT_TYPE', '')
+    import pdb
+    pdb.set_trace()
+    factory = PublicationRegistry.lookup(method, content_type, environment)
+    if not factory:
+        raise RuntimeError('nothing found')
+    return factory()
+
+
+
     if method in ('GET', 'POST', 'HEAD'):
         content_type = environment.get('CONTENT_TYPE', '')
         if method == 'POST' and content_type.startswith('text/xml'):



More information about the Zope3-Checkins mailing list