예제 #1
0
파일: fossils.py 프로젝트: arturodr/indico
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 3 of the
## License, or (at your option) any later version.
##
## Indico is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Indico;if not, see <http://www.gnu.org/licenses/>.

from MaKaC.fossils.contribution import IContributionWithSpeakersFossil
from MaKaC.fossils.subcontribution import ISubContributionWithSpeakersFossil
from MaKaC.common.fossilize import addFossil
from MaKaC.conference import Contribution


class IContributionRMFossil(IContributionWithSpeakersFossil):
    """ This fossil is ready for when we add subcontribution granularity to contributions
        and to provide an example for a plugin-specific fossil
    """
    def getSubContributionList(self):
        pass

    getSubContributionList.result = ISubContributionWithSpeakersFossil


# We cannot include this fossil in the Contribution class directly because it belongs to a plugin
addFossil(Contribution, IContributionRMFossil)
예제 #2
0
 def setUp(self):
     addFossil(SimpleClass, IDynamicFossil)
     self.s = SimpleClass(1, 'a', 'foo')
     self.c = ComplexClass()
예제 #3
0
 def setUp(self):
     super(TestFossilize, self).setUp()
     addFossil(SimpleClass, IDynamicFossil)
     self.s = SimpleClass(1, 'a', 'foo')
     self.c = ComplexClass()
예제 #4
0
 def setUp(self):
     addFossil(SimpleClass, IDynamicFossil)
     self.s = SimpleClass(1, 'a', 'foo')
     self.c = ComplexClass()
예제 #5
0
파일: fossils.py 프로젝트: Ictp/indico
## Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 3 of the
## License, or (at your option) any later version.
##
## Indico is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Indico;if not, see <http://www.gnu.org/licenses/>.

from MaKaC.fossils.contribution import IContributionWithSpeakersFossil
from MaKaC.fossils.subcontribution import ISubContributionWithSpeakersFossil
from MaKaC.common.fossilize import addFossil
from MaKaC.conference import Contribution


class IContributionRMFossil(IContributionWithSpeakersFossil):
    """ This fossil is ready for when we add subcontribution granularity to contributions
        and to provide an example for a plugin-specific fossil
    """

    def getSubContributionList(self):
        pass
    getSubContributionList.result = ISubContributionWithSpeakersFossil

# We cannot include this fossil in the Contribution class directly because it belongs to a plugin
addFossil(Contribution, IContributionRMFossil)
예제 #6
0
 def setUp(self):
     super(TestFossilize, self).setUp()
     addFossil(SimpleClass, IDynamicFossil)
     self.s = SimpleClass(1, 'a', 'foo')
     self.c = ComplexClass()
예제 #7
0
from MaKaC.fossils.subcontribution import ISubContributionWithSpeakersFossil
from MaKaC.common.fossilize import addFossil
from MaKaC.conference import Contribution
from MaKaC.plugins.Collaboration.fossils import ICSErrorBaseFossil
from MaKaC.plugins.Collaboration.base import CollaborationTools


class IContributionWRFossil(IContributionWithSpeakersFossil):
    """ This fossil is ready for when we add subcontribution granularity to contributions
        and to provide an example for a plugin-specific fossil
    """

    def getSubContributionList(self):
        pass
    getSubContributionList.result = ISubContributionWithSpeakersFossil

    def getWebcastCapable(self):
        pass
    getWebcastCapable.produce = lambda self: CollaborationTools.isAbleToBeWebcastOrRecorded(self, "WebcastRequest")

# We cannot include this fossil in the Contribution class directly because it belongs to a plugin
addFossil(Contribution, IContributionWRFossil)

class IWebcastRequestErrorFossil(ICSErrorBaseFossil):

    def getOperation(self):
        pass

    def getInner(self):
        pass
예제 #8
0
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## CDS Indico is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with CDS Indico; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

from MaKaC.fossils.contribution import IContributionWithSpeakersFossil
from MaKaC.fossils.subcontribution import ISubContributionWithSpeakersFossil
from MaKaC.common.fossilize import addFossil
from MaKaC.conference import Contribution


class IContributionWRFossil(IContributionWithSpeakersFossil):
    """ This fossil is ready for when we add subcontribution granularity to contributions
        and to provide an example for a plugin-specific fossil
    """
    def getSubContributionList(self):
        pass

    getSubContributionList.result = ISubContributionWithSpeakersFossil


# We cannot include this fossil in the Contribution class directly because it belongs to a plugin
addFossil(Contribution, IContributionWRFossil)