[Libreoffice-commits] .: Branch 'newbranch' - liboextensioncenter/am.liboextensioncenter
Andreas Mantke
andreasma at kemper.freedesktop.org
Thu Apr 14 12:55:27 PDT 2011
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/base.py | 8 +--
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_category.py | 2
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_docfolder.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_downloadablefile.py | 6 +-
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_filelink.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_functional.py | 6 +-
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_migration.py | 14 +++---
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project.py | 12 ++---
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project_doap.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposal.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposalfolder.py | 6 +-
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_pypi.py | 22 +++++-----
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_release.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_releasefolder.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_reviewer_security.py | 6 +-
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_security.py | 8 +--
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_setup.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_softwarecenter.py | 14 +++---
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_storage.py | 14 +++---
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_trove.py | 2
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_types.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_utils.py | 4 -
liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_validators.py | 4 -
23 files changed, 80 insertions(+), 80 deletions(-)
New commits:
commit dfe9f2ef0a5b172150b9ca7a2b5a422f895681c4
Author: Andreas Mantke <maand at gmx.de>
Date: Thu Apr 14 21:55:15 2011 +0200
change to liboextensioncenter
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/base.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/base.py
index 9594fba..8236b8e 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/base.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/base.py
@@ -15,7 +15,7 @@ ZopeTestCase.installProduct('DataGridField')
ZopeTestCase.installProduct('ExternalStorage')
# If PloneHelpCenter is available, initialize it.
ZopeTestCase.installProduct('PloneHelpCenter')
-ZopeTestCase.installProduct('PloneSoftwareCenter')
+ZopeTestCase.installProduct('liboextensioncenter')
from Products.PloneTestCase.PloneTestCase import PloneTestCase
from Products.PloneTestCase.PloneTestCase import FunctionalTestCase
@@ -32,7 +32,7 @@ def install_plugins():
ZopeTestCase.installPackage('collective.psc.externalstorage')
install_plugins()
-setupPloneSite(products=('PloneSoftwareCenter',))
+setupPloneSite(products=('liboextensioncenter',))
class DeveloperWarning(Warning):
pass
@@ -49,9 +49,9 @@ class PSCTestCase(PloneTestCase):
class layer(PloneSite):
@classmethod
def setUp(cls):
- import Products.PloneSoftwareCenter
+ import am.liboextensioncenter
fiveconfigure.debug_mode = True
- zcml.load_config('configure.zcml', Products.PloneSoftwareCenter)
+ zcml.load_config('configure.zcml', am.liboextensioncenter)
# loading externalstorage if present in the environment
try:
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_category.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_category.py
index 33aa560..7d98145 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_category.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_category.py
@@ -7,7 +7,7 @@ class TestCategoryView(PSCTestCase):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_docfolder.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_docfolder.py
index 9fc950a..c534084 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_docfolder.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_docfolder.py
@@ -6,7 +6,7 @@ class TestDocFolder(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.invokeFactory('PSCDocumentationFolder',
'documentation')
@@ -79,7 +79,7 @@ class TestDocFolderView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.invokeFactory('PSCDocumentationFolder',
'documentation')
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_downloadablefile.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_downloadablefile.py
index 4143b92..180a544 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_downloadablefile.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_downloadablefile.py
@@ -6,7 +6,7 @@ from tempfile import TemporaryFile
from ZPublisher.HTTPRequest import FileUpload
-from Products.PloneSoftwareCenter.tests.utils import PACKAGE_HOME
+from am.liboextensioncenter.tests.utils import PACKAGE_HOME
def createFileUpload(data, filename):
fp = TemporaryFile('w+b')
@@ -27,7 +27,7 @@ class TestPSCFile(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.releases.invokeFactory('PSCRelease', '1.0')
self.portal.psc.proj.releases['1.0'].invokeFactory('PSCFile', 'file')
@@ -61,7 +61,7 @@ class TestPSCFileView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.releases.invokeFactory('PSCRelease', '1.0')
self.portal.psc.proj.releases['1.0'].invokeFactory('PSCFile', 'file')
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_filelink.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_filelink.py
index 3111a5a..690de9d 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_filelink.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_filelink.py
@@ -4,7 +4,7 @@ class TestPSCFileLink(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.releases.invokeFactory('PSCRelease', '1.0')
self.portal.psc.proj.releases['1.0'].invokeFactory('PSCFileLink',
@@ -33,7 +33,7 @@ class TestPSCFileLinkView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.releases.invokeFactory('PSCRelease', '1.0')
self.portal.psc.proj.releases['1.0'].invokeFactory('PSCFileLink',
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_functional.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_functional.py
index 2b73d53..85233ba 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_functional.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_functional.py
@@ -7,7 +7,7 @@ import os
from ZPublisher.HTTPRequest import FileUpload
from Testing.ZopeTestCase import FunctionalDocFileSuite as Suite
-from Products.PloneSoftwareCenter.tests.base import PSCFunctionalTestCase
+from am.liboextensioncenter.tests.base import PSCFunctionalTestCase
OPTIONFLAGS = (doctest.REPORT_NDIFF |
@@ -22,7 +22,7 @@ def addMember(self, username, fullname="", email="", roles=('Member',)):
def setUp(context):
"""creates a software center"""
context.setRoles(['Manager'])
- context.portal.invokeFactory('PloneSoftwareCenter', id='psc')
+ context.portal.invokeFactory('liboextensioncenter', id='psc')
addMember(context, 'member1', 'Member one')
class FileHolder(object):
@@ -45,7 +45,7 @@ def test_suite():
return Suite(os.path.basename('pypi.txt'),
os.path.basename('permissions.txt'),
optionflags=OPTIONFLAGS,
- package='Products.PloneSoftwareCenter.tests',
+ package='am.liboextensioncenter.tests',
test_class=PSCFunctionalTestCase,
setUp=setUp, globs=globs)
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_migration.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_migration.py
index 394ccf0..5fddf80 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_migration.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_migration.py
@@ -1,12 +1,12 @@
"""Tests for migration."""
from socket import gaierror
import os
-from Products.PloneSoftwareCenter.tests.base import PSCTestCase
+from am.liboextensioncenter.tests.base import PSCTestCase
from Products.CMFCore.utils import getToolByName
-from Products.PloneSoftwareCenter.setuphandlers import before_1_5
-from Products.PloneSoftwareCenter.setuphandlers import extract_distutils_id
-from Products.PloneSoftwareCenter.setuphandlers import _pypi_certified_owner
+from am.liboextensioncenterr.setuphandlers import before_1_5
+from am.liboextensioncenter.setuphandlers import extract_distutils_id
+from am.liboextensioncenter.setuphandlers import _pypi_certified_owner
curdir = os.path.dirname(__file__)
@@ -18,7 +18,7 @@ class TestMigration(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
@@ -62,7 +62,7 @@ class TestMigration(PSCTestCase):
# testing the real server
# XXX this is not optimal
try:
- contacts = _pypi_certified_owner('Products.PloneSoftwareCenter')
+ contacts = _pypi_certified_owner('am.liboextensioncenter')
except gaierror:
pass
else:
@@ -75,7 +75,7 @@ class TestMigration(PSCTestCase):
def _owner(id_):
return 'tarek at ziade.org'
- from Products.PloneSoftwareCenter import setuphandlers
+ from am.liboextensioncenter import setuphandlers
setuphandlers._pypi_certified_owner = _owner
# let's add some files
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project.py
index fcfdf0e..e47b804 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project.py
@@ -7,8 +7,8 @@ import os
from Products.CMFCore.utils import getToolByName
-from Products.PloneSoftwareCenter.tests.utils import PACKAGE_HOME
-from Products.PloneSoftwareCenter.tests.utils import verifyURLWithRequestVars
+from am.liboextensioncenter.tests.utils import PACKAGE_HOME
+from am.liboextensioncenter.tests.utils import verifyURLWithRequestVars
from zExceptions import Unauthorized
@@ -29,7 +29,7 @@ class TestProject(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
@@ -287,7 +287,7 @@ class TestProject(PSCTestCase):
class TestProjectWithPloneHelpCenterIntegration(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
@@ -317,7 +317,7 @@ class TestProjectView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.proj = self.portal.psc.proj
self.resetView()
@@ -555,7 +555,7 @@ class TestProjectInternationalized(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project_doap.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project_doap.py
index 480bcfb..82aed60 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project_doap.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_project_doap.py
@@ -7,7 +7,7 @@ from tempfile import TemporaryFile
from ZPublisher.HTTPRequest import FileUpload
-from Products.PloneSoftwareCenter.tests.utils import PACKAGE_HOME
+from am.liboextensioncenter.tests.utils import PACKAGE_HOME
from Testing import ZopeTestCase
try:
@@ -36,7 +36,7 @@ class TestProjectDOAPView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.proj = self.portal.psc.proj
self.resetView()
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposal.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposal.py
index 406d725..e00d571 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposal.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposal.py
@@ -4,7 +4,7 @@ class TestProposal(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.invokeFactory('PSCImprovementProposalFolder',
'roadmap')
@@ -109,7 +109,7 @@ class TestProposalView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.invokeFactory('PSCImprovementProposalFolder',
'roadmap')
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposalfolder.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposalfolder.py
index 3c064a3..825c56b 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposalfolder.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_proposalfolder.py
@@ -4,7 +4,7 @@ class TestProposalFolder(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.invokeFactory('PSCImprovementProposalFolder',
'roadmap')
@@ -33,7 +33,7 @@ class TestProposalFolderView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.invokeFactory('PSCImprovementProposalFolder',
'roadmap')
@@ -60,7 +60,7 @@ class TestProposalFolderView(PSCTestCase):
self.view.state_title('being-discussed'))
def test_state_title_internationalized(self):
- self.warning("*** TODO: FUTURE - PloneSoftwareCenter is not "
+ self.warning("*** TODO: FUTURE - liboextensioncenter is not "
"internationalized yet. This method state_title actually is -- "
"it's just not clear how to test it! Also need to "
"internationalize PSCProject, method getCategoryTitles, among "
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_pypi.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_pypi.py
index 3abe8db..4a9061b 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_pypi.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_pypi.py
@@ -5,8 +5,8 @@ from AccessControl import Unauthorized
from Products.CMFCore.utils import getToolByName
-from Products.PloneSoftwareCenter.permissions import AddSoftwareCenter
-from Products.PloneSoftwareCenter.browser.pypi import PyPIView
+from am.liboextensioncenter.permissions import AddSoftwareCenter
+from am.liboextensioncenter.browser.pypi import PyPIView
def allowMembersToAddCenter(obj):
perms = [p for p in obj.ac_inherited_permissions(1) if p[0] == AddSoftwareCenter]
@@ -47,7 +47,7 @@ class TestPyPI(PSCTestCase):
def testSubmit(self):
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
# a user can submit a package
@@ -94,7 +94,7 @@ class TestPyPI(PSCTestCase):
def test_edit_project(self):
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
# making sure the project is correctly set
@@ -127,7 +127,7 @@ class TestPyPI(PSCTestCase):
# make sure the server doesn't fail on unexisting
# classifiers
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
# making sure the project is correctly set
@@ -160,7 +160,7 @@ class TestPyPI(PSCTestCase):
def test_list_classifiers(self):
# everyone can get the classifier list
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
self.login('user2')
@@ -175,7 +175,7 @@ class TestPyPI(PSCTestCase):
# let's create a PSC with a project that
# has the same name but no distutils fixed
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
psc.invokeFactory('PSCProject', 'iw.dist')
self.assertEquals(['iw.dist'], list(psc.objectIds()))
@@ -202,7 +202,7 @@ class TestPyPI(PSCTestCase):
# let's create a PSC with a project that
# has the same name but no distutils fixed
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
psc.invokeFactory('PSCProject', 'iw.dist')
self.assertEquals(['iw.dist'], list(psc.objectIds()))
@@ -228,11 +228,11 @@ class TestPyPI(PSCTestCase):
def test_filename_normalization(self):
""" Make sure product ids are following our conventions.
- http://plone.org/products/plonesoftwarecenter/issues/81
+ http://plone.org/products/liboextensioncenter/issues/81
"""
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
def createProductWithName(name):
@@ -255,7 +255,7 @@ class TestPyPI(PSCTestCase):
""" Make sure that release workflow state is being properly set using the upload's version as a guide. """
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
psc = self.portal.psc
wf = self.portal.portal_workflow
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_release.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_release.py
index 2eb32f6..343125a 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_release.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_release.py
@@ -8,7 +8,7 @@ class TestRelease(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.releases.invokeFactory('PSCRelease', '1.0')
self.release = self.portal.psc.proj.releases['1.0']
@@ -212,7 +212,7 @@ class TestReleaseView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.portal.psc.proj.releases.invokeFactory('PSCRelease', '1.0')
self.release = self.portal.psc.proj.releases['1.0']
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_releasefolder.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_releasefolder.py
index 1d1be8e..9549ed6 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_releasefolder.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_releasefolder.py
@@ -4,7 +4,7 @@ class TestReleaseFolder(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
@@ -35,7 +35,7 @@ class TestReleaseFolderView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.releases = self.portal.psc.proj.releases
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_reviewer_security.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_reviewer_security.py
index 333d7a2..ac4a153 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_reviewer_security.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_reviewer_security.py
@@ -40,10 +40,10 @@ def test_edit_project_fields():
* Project Creator: member3
* Generic User: member4
- >>> from Products.PloneSoftwareCenter.permissions import AddSoftwareCenter
+ >>> from am.liboextensioncenter.permissions import AddSoftwareCenter
>>> self.portal.manage_permission(AddSoftwareCenter,
... ['Manager', 'Owner'])
- >>> from Products.PloneSoftwareCenter.tests import utils
+ >>> from am.liboextensioncenter.tests import utils
>>> utils.setUpDefaultMembers(self.portal)
One member creates a software center, and another is promoted to Evaluator.
@@ -55,7 +55,7 @@ def test_edit_project_fields():
Now we create the software center.
>>> self.login('member1')
- >>> self.portal.Members.member1.invokeFactory('PloneSoftwareCenter',
+ >>> self.portal.Members.member1.invokeFactory('liboextensioncenter',
... 'psc')
'...'
>>> self.psc = self.portal.Members.member1.psc
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_security.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_security.py
index 6e4333d..3987a17 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_security.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_security.py
@@ -6,7 +6,7 @@ from AccessControl.Permission import Permission
from Products.CMFCore.utils import getToolByName
-from Products.PloneSoftwareCenter.permissions import AddSoftwareCenter
+from am.liboextensioncenter.permissions import AddSoftwareCenter
def allowMembersToAddCenter(obj):
perms = [p for p in obj.ac_inherited_permissions(1) if p[0] == AddSoftwareCenter]
@@ -37,7 +37,7 @@ class TestCenterSecurity(PSCTestCase):
membership.addMember('user2', 'secret', ['Member'], [])
self.login('user1')
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
def testProjectApproval(self):
self.login('user2')
@@ -63,7 +63,7 @@ class TestProjectSecurity(PSCTestCase):
membership.addMember('user2', 'secret', ['Member'], [])
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
self.login('user1')
@@ -127,7 +127,7 @@ class TestPloneHelpCenterIntegration(PSCTestCase):
membership.addMember('user2', 'secret', ['Member'], [])
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
self.login('user1')
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_setup.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_setup.py
index 0acc27d..bf8516e 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_setup.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_setup.py
@@ -5,7 +5,7 @@ class TestProductInstall(PSCTestCase):
def afterSetUp(self):
self.types = {
- 'PloneSoftwareCenter' : 'psc_area_workflow',
+ 'liboextensioncenter' : 'psc_area_workflow',
'PSCProject' : 'psc_package_workflow',
'PSCReleaseFolder' : None,
'PSCRelease' : 'psc_release_workflow',
@@ -62,7 +62,7 @@ class TestProductInstall(PSCTestCase):
def testNavtreePropertiesConfigured(self):
pmntq = self.portal.portal_properties.navtree_properties.parentMetaTypesNotToQuery
- for t in ('PloneSoftwareCenter', 'PSCReleaseFolder', 'PSCImprovementProposalFolder', 'PSCRelease'):
+ for t in ('liboextensioncenter', 'PSCReleaseFolder', 'PSCImprovementProposalFolder', 'PSCRelease'):
self.failUnless(t in pmntq)
# XXX I don't think this is a good test because
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_softwarecenter.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_softwarecenter.py
index 246ae81..14b220c 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_softwarecenter.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_softwarecenter.py
@@ -2,13 +2,13 @@ from base import PSCTestCase
from DateTime.DateTime import DateTime
-from Products.PloneSoftwareCenter.tests.utils import verifyURLWithRequestVars
+from am.liboextensioncenter.tests.utils import verifyURLWithRequestVars
class TestSoftwareCenter(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
def testValidateAvailableCategories(self):
@@ -131,7 +131,7 @@ class TestSoftwareCenterRoles(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
def testProjectEvaluatorRole(self):
@@ -141,7 +141,7 @@ class TestSoftwareCenterAsContainer(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
for id in ['proj4', 'proj3', 'proj2', 'proj1']:
@@ -197,7 +197,7 @@ class TestSoftwareCenterView(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.psc = self.portal.psc
self.resetView()
@@ -246,13 +246,13 @@ class TestSoftwareCenterView(PSCTestCase):
self.assertEqual(1, len(results))
def test_can_add_project(self):
- self.psc.manage_permission('PloneSoftwareCenter: Add Project',
+ self.psc.manage_permission('liboextensioncenter: Add Project',
roles=['Member'], acquire=0)
self.setRoles(['Member'])
self.failUnless(self.view.can_add_project())
- self.psc.manage_permission('PloneSoftwareCenter: Add Project',
+ self.psc.manage_permission('liboextensioncenter: Add Project',
roles=['Manager'], acquire=0)
self.failIf(self.view.can_add_project())
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_storage.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_storage.py
index 3412ca2..c6a5f33 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_storage.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_storage.py
@@ -1,15 +1,15 @@
-from Products.PloneSoftwareCenter.tests.base import PSCTestCase
-from Products.PloneSoftwareCenter.storage.interfaces import IPSCFileStorage
-from Products.PloneSoftwareCenter.storage.archetype import ArchetypeStorage
-from Products.PloneSoftwareCenter.storage import getFileStorageVocab
-from Products.PloneSoftwareCenter.storage import DynamicStorage
-from Products.PloneSoftwareCenter.storage import getFileStorageAdapters
+from am.liboextensioncenter.tests.base import PSCTestCase
+from am.liboextensioncenter.storage.interfaces import IPSCFileStorage
+from am.liboextensioncenter.storage.archetype import ArchetypeStorage
+from am.liboextensioncenter.storage import getFileStorageVocab
+from am.liboextensioncenter.storage import DynamicStorage
+from am.liboextensioncenter.storage import getFileStorageAdapters
class TestStorage(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_trove.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_trove.py
index 75e9247..63934fa 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_trove.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_trove.py
@@ -5,7 +5,7 @@ import unittest
import os
from App.Common import package_home
-from Products.PloneSoftwareCenter.trove import TroveClassifier
+from am.liboextensioncenter.trove import TroveClassifier
GLOBALS = globals()
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_types.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_types.py
index 8d44b0d..07fa478 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_types.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_types.py
@@ -6,9 +6,9 @@ class TestInstantiation(PSCTestCase):
self.setRoles(('Manager',))
try:
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
except:
- self.fail('Failed to instantiate a PloneSoftwareCenter')
+ self.fail('Failed to instantiate a liboextensioncenter')
self.psc = self.portal.psc
try:
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_utils.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_utils.py
index 89411a9..d3ca1a5 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_utils.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_utils.py
@@ -1,7 +1,7 @@
-""" Tests for Products.PloneSOftwareCenter.utils
+""" Tests for am.liboextensioncenter.utils
"""
import unittest
-from Products.PloneSoftwareCenter.utils import which_platform
+from am.liboextensioncenter.utils import which_platform
class TestUtils(unittest.TestCase):
diff --git a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_validators.py b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_validators.py
index 46fc653..cbf770d 100755
--- a/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_validators.py
+++ b/liboextensioncenter/am.liboextensioncenter/am/liboextensioncenter/tests/test_validators.py
@@ -1,12 +1,12 @@
from base import PSCTestCase
-from Products.PloneSoftwareCenter.validators import ProjectIdValidator
+from am.liboextensioncenter.validators import ProjectIdValidator
class TestValidators(PSCTestCase):
def afterSetUp(self):
self.setRoles(('Manager',))
- self.portal.invokeFactory('PloneSoftwareCenter', 'psc')
+ self.portal.invokeFactory('liboextensioncenter', 'psc')
self.portal.psc.invokeFactory('PSCProject', 'proj')
self.psc = self.portal.psc
More information about the Libreoffice-commits
mailing list