[Cubicweb] CWEP 0004 - Cubes as distributions

Christophe de Vienne christophe at unlish.com
Thu Oct 23 12:36:16 CEST 2014


Le 23/10/2014 12:09, Nicolas Chauvat a écrit :
> On Thu, Oct 23, 2014 at 11:04:04AM +0200, Denis Laxalde wrote:
>> So, if I understand correctly, we could keep the cubes "private" but
>> should remove the "cubes" namespace and add the "cubes" directory to
>> PYTHONPATH.
> Meaning we could "import blog" from a python shell instead of
> "import cubes.blog". Feels like going back in time to when relative
> imports was the norm. I happen to not dislike the clarity of a
> java-inspired "import org.cubicweb.cubes.blog".
>
PEP420 is your friend.




More information about the Cubicweb mailing list