-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better build and seperation with new cmd line runner
git-svn-id: https://svn.plone.org/svn/collective/pretaweb.funnelweb/trunk@109030 db7f04ef-aaf3-0310-a811-c281ed44c4ad
- Loading branch information
djay
committed
Jan 20, 2010
1 parent
c35e32b
commit fe5bd18
Showing
5 changed files
with
104 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from collective.transmogrifier.tests import registerConfig | ||
from collective.transmogrifier.transmogrifier import Transmogrifier | ||
from pkg_resources import resource_string, resource_filename | ||
from collective.transmogrifier.transmogrifier import configuration_registry | ||
from Products.Five import zcml | ||
from zope.component import provideUtility | ||
from zope.interface import classProvides, implements | ||
import pretaweb.funnelweb | ||
|
||
class Context: | ||
pass | ||
|
||
def transmogrify(config, args): | ||
from collective.transmogrifier.transmogrifier import Transmogrifier | ||
# test.globs['transmogrifier'] = Transmogrifier(test.globs['plone']) | ||
|
||
import zope.component | ||
import collective.transmogrifier.sections | ||
zcml.load_config('meta.zcml', zope.app.component) | ||
zcml.load_config('meta.zcml', collective.transmogrifier) | ||
zcml.load_config('configure.zcml', collective.transmogrifier.sections) | ||
zcml.load_config('sections.zcml', pretaweb.funnelweb) | ||
|
||
|
||
context = Context() | ||
configuration_registry.registerConfiguration( | ||
u'transmogrify.config.funnelweb', | ||
u"", | ||
u'', config) | ||
|
||
transmogrifier = Transmogrifier(context) | ||
overrides = {} | ||
if type(args) == type(''): | ||
for arg in args: | ||
section,keyvalue = arg.split(':',1) | ||
key,value = keyvalue.split('=',1) | ||
overrides.setdefault('section',{})[key] = value | ||
else: | ||
overrides = args | ||
|
||
transmogrifier(u'transmogrify.config.funnelweb', **overrides) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
i18n_domain="pretaweb.funnelweb" | ||
xmlns:five="http://namespaces.zope.org/five" | ||
> | ||
|
||
|
||
|
||
<utility component=".webcrawler.WebCrawler" | ||
name="pretaweb.funnelweb.webcrawler" /> | ||
<utility component=".treeserializer.TreeSerializer" | ||
name="pretaweb.funnelweb.treeserializer" /> | ||
<utility component=".typerecognitor.TypeRecognitor" | ||
name="pretaweb.funnelweb.typerecognitor" /> | ||
|
||
<utility component=".templatefinder.TemplateFinder" | ||
name="pretaweb.funnelweb.templatefinder" /> | ||
|
||
<utility component=".relinker.Relinker" | ||
name="pretaweb.funnelweb.relinker" /> | ||
<utility component=".safeportaltransforms.SafePortalTransforms" | ||
name="pretaweb.funnelweb.safeportaltransforms" /> | ||
<utility component=".simplexpath.SimpleXPath" | ||
name="pretaweb.funnelweb.simplexpath" /> | ||
<utility component=".backlinkstitle.BacklinksTitle" | ||
name="pretaweb.funnelweb.backlinkstitle" /> | ||
<utility component=".isindex.IsIndex" | ||
name="pretaweb.funnelweb.isindex" /> | ||
<utility component=".pathmover.PathMover" | ||
name="pretaweb.funnelweb.pathmover" /> | ||
<utility component=".constructor.SafeConstructorSection" | ||
name="pretaweb.funnelweb.constructor" /> | ||
<utility component=".safeatschemaupdater.SafeATSchemaUpdaterSection" | ||
name="pretaweb.funnelweb.safeatschemaupdater" /> | ||
<utility component=".makeattachments.MakeAttachments" | ||
name="pretaweb.funnelweb.makeattachments" /> | ||
<utility component=".safeworkflowupdater.WorkflowUpdaterSection" | ||
name="pretaweb.funnelweb.workflowupdater" /> | ||
<utility component=".debugsection.DebugSection" | ||
name="pretaweb.funnelweb.debugsection" /> | ||
<!-- | ||
<utility component=".remoteconstructor.RemoteConstructorSection" | ||
name="pretaweb.funnelweb.remoteconstructor" /> | ||
<utility component=".fsconstructor.FSConstructorSection" | ||
name="pretaweb.funnelweb.fsconstructor" /> | ||
<utility component=".fsschemaupdater.FSSchemaUpdaterSection" | ||
name="pretaweb.funnelweb.fsschemaupdater" /> | ||
--> | ||
<utility component=".staticcreator.StaticCreatorSection" | ||
name="pretaweb.funnelweb.staticcreator" /> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters