Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Works for me:</p> <pre><code>aclark@Alex-Clarks-MacBook-Pro:~/Developer/test-4.1/src/ &gt; paster create -t plone_app MyApp Selected and implied templates: ZopeSkel#nested_namespace A basic Python project with a nested namespace (2 dots in name) ZopeSkel#plone_app A project for Plone products with a nested namespace (2 dots in name) Variables: egg: MyApp package: myapp project: MyApp Expert Mode? (What question mode would you like? (easy/expert/all)?) ['easy']: Version (Version number for project) ['1.0']: Description (One-line description of the project) ['']: Creating template nested_namespace Creating directory ./MyApp Recursing into +namespace_package+ Creating ./MyApp/MyApp/ Recursing into +namespace_package2+ Creating ./MyApp/MyApp/plone/ Recursing into +package+ Creating ./MyApp/MyApp/plone/MyApp/ Copying __init__.py_tmpl to ./MyApp/MyApp/plone/MyApp/__init__.py Copying __init__.py_tmpl to ./MyApp/MyApp/plone/__init__.py Copying __init__.py_tmpl to ./MyApp/MyApp/__init__.py Copying README.txt_tmpl to ./MyApp/README.txt Recursing into docs Creating ./MyApp/docs/ Copying HISTORY.txt_tmpl to ./MyApp/docs/HISTORY.txt Copying setup.py_tmpl to ./MyApp/setup.py Creating template plone_app Recursing into +namespace_package+ Recursing into +namespace_package2+ Recursing into +package+ Replace 0 bytes with 86 bytes (0/0 lines changed; 3 lines added) Copying __init__.py_tmpl to ./MyApp/MyApp/plone/MyApp/__init__.py Copying configure.zcml_tmpl to ./MyApp/MyApp/plone/MyApp/configure.zcml Copying tests.py_tmpl to ./MyApp/MyApp/plone/MyApp/tests.py Copying version.txt_tmpl to ./MyApp/MyApp/plone/MyApp/version.txt Recursing into docs Copying INSTALL.txt_tmpl to ./MyApp/docs/INSTALL.txt Copying LICENSE.GPL to ./MyApp/docs/LICENSE.GPL Copying LICENSE.txt_tmpl to ./MyApp/docs/LICENSE.txt Replace 890 bytes with 973 bytes (0/32 lines changed; 4 lines added) Copying setup.py_tmpl to ./MyApp/setup.py </code></pre> <p>With buildout:</p> <pre><code>aclark@Alex-Clarks-MacBook-Pro:~/Developer/test-4.1/ &gt; cat buildout.cfg [buildout] extends = http://dist.aclark.net/build/plone/4.1.x/develop.cfg develop = src/MyApp [plone] eggs += MyApp </code></pre> <p>Obviously this is not the result you expect though, paster created a triple nested namespace package called "MyApp.plone.MyApp" :-) </p> <p>Further note: this app will not appear in Add-ons in Plone, unless you add a GenericSetup profile in MyApp/plone/MyApp/configure.zcml like so:</p> <pre class="lang-xml prettyprint-override"><code>&lt;configure xmlns="http://namespaces.zope.org/zope" xmlns:five="http://namespaces.zope.org/five" xmlns:genericsetup="http://namespaces.zope.org/genericsetup" i18n_domain="MyApp.plone.MyApp"&gt; &lt;five:registerPackage package="." initialize=".initialize" /&gt; &lt;genericsetup:registerProfile name="default" title="MyApp" directory="profiles/default" description="MyApp" provides="Products.GenericSetup.interfaces.EXTENSION" /&gt; &lt;/configure&gt; </code></pre> <p>Then you should see:</p> <p><img src="https://i.stack.imgur.com/jIwZH.png" alt="enter image description here"></p> <p>Finally, there is nothing "wrong" with non-namespace packages, they are just convention (with pros/cons over flat namespace packages, and vice versa). See: </p> <ul> <li><a href="https://github.com/collective/loo" rel="nofollow noreferrer">https://github.com/collective/loo</a> </li> </ul> <p>for an example of a "flat" namespace Plone package.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload