Commit 79a67107 authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

fix register_commands import

parent 3773492486f6
"""cubicweb-ctl plugin providing the mboximport command
:organization: Logilab
:copyright: 2007-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2007-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......@@ -9,11 +9,13 @@ __docformat__ = "restructuredtext en"
import sys
from cStringIO import StringIO
from cubicweb.toolsutils import (CONNECT_OPTIONS, Command,
register_commands, config_connect, pop_arg)
from logilab.common.clcommands import register_commands, pop_arg
from cubicweb.toolsutils import CONNECT_OPTIONS, Command, config_connect
from cubes.email.mboximport import MBOXImporter
class MBOXImportCommand(Command):
"""Import files using the Unix mail box format into an cubicweb application.
The application must use the email package.
......
"""entity/relation schemas to store email in an cubicweb instance
:organization: Logilab
:copyright: 2006-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2006-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......@@ -20,7 +20,7 @@ class Email(EntityType):
cc = SubjectRelation('EmailAddress')
parts = SubjectRelation('EmailPart', cardinality='*1', composite='subject')
attachment = SubjectRelation('File')
attachment = SubjectRelation('File') # XXX Image should be there until it inherits from File
reply_to = SubjectRelation('Email', cardinality='?*')
cites = SubjectRelation('Email')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment