Suggestion for opps apps

25 views
Skip to first unread message

Allisson Azevedo

unread,
Aug 8, 2013, 10:02:24 AM8/8/13
to opps-de...@googlegroups.com
From https://github.com/mitsuhiko/flask/blob/master/flask/ext/__init__.py

flask.ext
~~~~~~~~~

Redirect imports for extensions. This module basically makes it possible
for us to transition from flaskext.foo to flask_foo without having to
force all extensions to upgrade at the same time.

When a user does ``from flask.ext.foo import bar`` it will attempt to
import ``from flask_foo import bar`` first and when that fails it will
try to import ``from flaskext.foo import bar``.

We're switching from namespace packages because it was just too painful for
everybody involved.

:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.

I think we can use the same namespace workflow for opps apps.

Bruno Rocha

unread,
Aug 8, 2013, 10:07:31 AM8/8/13
to Allisson Azevedo, opps-de...@googlegroups.com

On Thu, Aug 8, 2013 at 11:02 AM, Allisson Azevedo <alli...@gmail.com> wrote:
We're switching from namespace packages because it was just too painful for
everybody involved.

+1 namespace packages does not works well in Django.

I like the idea!

from opps.ext import polls


Allisson Azevedo

unread,
Aug 8, 2013, 10:09:42 AM8/8/13
to opps-de...@googlegroups.com, Allisson Azevedo
Or

from opps.apps import polls

:)

Thiago Avelino

unread,
Aug 8, 2013, 10:16:56 AM8/8/13
to Allisson Azevedo, opps-de...@googlegroups.com
+1

like recommendation Allisson:

from opps.apps import polls




Cheers,
Thiago Avelino


--
Opps CMS
http://oppsproject.org
---
You received this message because you are subscribed to the Google Groups "Opps developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opps-develope...@googlegroups.com.
To post to this group, send email to opps-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/opps-developers.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages