Giter Site home page Giter Site logo

mycompany.myproduct's Introduction

MyCompany.MyProduct

This product serves the only purpose to find out why its content types can't be installed ...

Features

  • An Archetypes-based content type "MyType";
  • A skin "myskin", with
  • a view "myview.pt", which uses
  • the stylesheet /++resource++myproduct/mystyles.css

Examples

This add-on can be seen in action at the following sites: - Is there a page on the internet where everybody can see the features?

Documentation

Full documentation for end users can be found in the "docs" folder, and is also available online at http://docs.plone.org/foo/bar

Translations

This product has been translated into

  • Klingon (thanks, K'Plai)

Installation

Install MyCompany.MyProduct by adding it to your buildout:

[buildout]

...

eggs =
    MyCompany.MyProduct

and then running bin/buildout

Contribute

Support

If you are having issues, please let us know. We have a mailing list located at: [email protected]

License

The project is licensed under the GPLv2.

mycompany.myproduct's People

Contributors

tobiasherp avatar

Watchers

James Cloos avatar

mycompany.myproduct's Issues

MyType objects can't be added TTW

After installaton of MyCompany.MyProduct in the Quick-Installer, the MyType type is visible in the portal_types tool; however, even if added to the types which are allowed for Folder, they are not offered for addition.

An instance debug session, using a minimally enhanced develop version of CMFCore , branch 2.2:

>>> root = app.plone  # use the id of your Plone instance
>>> from Products.CMFCore.utils import getToolByName
>>> tmp_folder = root.temp
>>> type_name = 'MyType'
>>> types_tool = getToolByName(tmp_folder, 'portal_types')
>>> type_info = types_tool.getTypeInfo(type_name)
>>> type_info
<DynamicViewTypeInformation at /vdz/portal_types/MyType>
>>> new_content_item = type_info._constructInstance(tmp_folder, 'shiny_new_object')
{'check_security': 0,
 'container': <ATFolder at /vdz/temp>,
 'm': None,
 'p': <App.FactoryDispatcher.FactoryDispatcher object at 0x8b760d0>,
 'pd': <App.FactoryDispatcher.ProductDispatcher object at 0x32ab050>,
 'self': <DynamicViewTypeInformation at /vdz/portal_types/MyType>,
 'self_factory': 'addMyType',
 'self_product': 'MyCompany.MyProduct'}
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/opt/zope/instances/wnzkb-trunk/src/Products.CMFCore/Products/CMFCore/TypesTool.py", line 551, in _constructInstance
    m = self._getFactoryMethod(container, check_security=0)
  File "/opt/zope/instances/wnzkb-trunk/src/Products.CMFCore/Products/CMFCore/TypesTool.py", line 467, in _getFactoryMethod
    self.getId())
ValueError: Product factory for MyType was invalid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.