|
/
Zope
/
gocept svn checkins
/
Archive
/
2004
/
2004-12
/
CVS: glome - version.txt:1.7
[
CVS: glome/tests - GlomeTestCase.py:1.8 / ... ]
[
CVS: DTMLTeX - DTMLTeX.py:1.12 / Thomas Lotze ... ]
CVS: glome - version.txt:1.7
Christian Zagrodnick <cz(at)gocept.com> |
2004-12-06 20:42:16 |
[ FULL ]
|
Update of /cvs/gocept/glome
In directory amy:/tmp/cvs-serv13079
Modified Files:
version.txt
Log Message:
0.7 + dependencies
=== glome/version.txt 1.6 => 1.7 ===
--- glome/version.txt:1.6 Tue Nov 30 19:05:00 2004
+++ glome/version.txt Mon Dec 6 20:26:36 2004
(at)(at) -1 +1 (at)(at)
-0.6
+0.7
|
CVS: AlphaFlow - version.txt:1.4
Christian Zagrodnick <cz(at)gocept.com> |
2004-12-06 20:51:38 |
[ FULL ]
|
Update of /cvs/gocept/AlphaFlow
In directory amy:/tmp/cvs-serv12805
Modified Files:
version.txt
Log Message:
version 0.4
=== AlphaFlow/version.txt 1.3 => 1.4 ===
--- AlphaFlow/version.txt:1.3 Tue Nov 30 20:45:40 2004
+++ AlphaFlow/version.txt Mon Dec 6 20:24:49 2004
(at)(at) -1 +1 (at)(at)
-0.3
+0.4
|
CVS: glome - patch.py:1.11
Thomas Lotze <tl(at)gocept.com> |
2004-12-15 10:24:28 |
[ FULL ]
|
Update of /cvs/gocept/glome
In directory amy:/tmp/cvs-serv9559
Modified Files:
patch.py
Log Message:
Added filtering hook to getCandidateLocalRoles on MembershipTool.
=== glome/patch.py 1.10 => 1.11 ===
--- glome/patch.py:1.10 Sat Dec 4 14:41:46 2004
+++ glome/patch.py Wed Dec 15 10:15:44 2004
(at)(at) -5,6 +5,7 (at)(at)
import zLOG
import OFS.content_types
+from Acquisition import aq_base
from zExceptions import Unauthorized, NotFound, Forbidden, BadRequest
from webdav.WriteLockInterface import WriteLockInterface
(at)(at) -81,6 +82,10 (at)(at)
else:
local_roles = [ role for role in member.getRolesInContext(obj)
if role not in ('Member', 'Authenticated') ]
+ if hasattr(aq_base(obj), 'filterCandidateLocalRoles'):
+ filtered_local_roles = obj.filterCandidateLocalRoles(
+ tuple(local_roles))
+ local_roles = [r for r in filtered_local_roles if r in local_roles]
local_roles.sort()
return tuple(local_roles)
|
CVS: glome - mangle.py:1.4
Michael Howitz <mh(at)gocept.com> |
2004-12-15 17:54:11 |
[ FULL ]
|
Update of /cvs/gocept/glome
In directory amy:/tmp/cvs-serv25163
Modified Files:
mangle.py
Log Message:
If the given id for Id is no string it is converted to a string
=== glome/mangle.py 1.3 => 1.4 ===
--- glome/mangle.py:1.3 Wed Dec 15 17:27:40 2004
+++ glome/mangle.py Wed Dec 15 17:28:00 2004
(at)(at) -26,4 +26,4 (at)(at)
count += 1
try_id = "%s_%i" % (id, count)
- return try_id
+ return try_id
|
CVS: glome/tests - test_mangle.py:1.4
Michael Howitz <mh(at)gocept.com> |
2004-12-15 17:54:42 |
[ FULL ]
|
Update of /cvs/gocept/glome/tests
In directory amy:/tmp/cvs-serv25916/tests
Modified Files:
test_mangle.py
Log Message:
If the given id for Id is no string it is converted to a string
=== glome/tests/test_mangle.py 1.3 => 1.4 ===
--- glome/tests/test_mangle.py:1.3 Wed Dec 15 17:27:41 2004
+++ glome/tests/test_mangle.py Wed Dec 15 17:30:37 2004
(at)(at) -32,6 +32,7 (at)(at)
(r'/Fnm\%,dm"$(at) M ,^cm%#dV\dfAS$(at)(at)', 'Fnmdm_M_cmdVdfAS'),
('Es grünt so grün... 21.9.1989', 'Es_grnt_so_grn_2191989'),
(None, 'None'),
+ (123, '123'),
]
errors = []
for test, expected in cases:
|
CVS: glome/tests - test_mangle.py:1.3
Michael Howitz <mh(at)gocept.com> |
2004-12-15 18:04:47 |
[ FULL ]
|
Update of /cvs/gocept/glome/tests
In directory amy:/tmp/cvs-serv25116/tests
Modified Files:
test_mangle.py
Log Message:
If the given id for Id is no string it is converted to a string
=== glome/tests/test_mangle.py 1.2 => 1.3 ===
--- glome/tests/test_mangle.py:1.2 Tue Sep 14 14:30:34 2004
+++ glome/tests/test_mangle.py Wed Dec 15 17:27:41 2004
(at)(at) -31,6 +31,7 (at)(at)
('gocept gmbh & Co. KG', 'gocept_gmbh__Co_KG'),
(r'/Fnm\%,dm"$(at) M ,^cm%#dV\dfAS$(at)(at)', 'Fnmdm_M_cmdVdfAS'),
('Es grünt so grün... 21.9.1989', 'Es_grnt_so_grn_2191989'),
+ (None, 'None'),
]
errors = []
for test, expected in cases:
|
CVS: glome - mangle.py:1.3
Michael Howitz <mh(at)gocept.com> |
2004-12-15 18:14:46 |
[ FULL ]
|
Update of /cvs/gocept/glome
In directory amy:/tmp/cvs-serv25116
Modified Files:
mangle.py
Log Message:
If the given id for Id is no string it is converted to a string
=== glome/mangle.py 1.2 => 1.3 ===
--- glome/mangle.py:1.2 Tue Sep 14 14:30:34 2004
+++ glome/mangle.py Wed Dec 15 17:27:40 2004
(at)(at) -10,6 +10,7 (at)(at)
_forbidden_chars = re.compile(r'[^A-Za-z0-9_]')
def __new__(cls, id):
+ id = str(id)
id = id.replace(' ', '_')
id = cls._forbidden_chars.sub('', id)
return id
|
CVS: glome/tests - test_utils.py:1.1
Christian Theune <ct(at)gocept.com> |
2004-12-15 18:25:10 |
[ FULL ]
|
Update of /cvs/gocept/glome/tests
In directory amy:/tmp/cvs-serv31550/tests
Added Files:
test_utils.py
Log Message:
- added utils for role modification
=== Added File glome/tests/test_utils.py ===
# -*- coding: latin1 -*-
# Copyright (c) 2004 gocept gmbh & co. kg
# See also LICENSE.txt
# $Id: test_utils.py,v 1.1 2004/12/15 16:53:02 ctheune Exp $
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
import unittest
from OFS.SimpleItem import SimpleItem
from Products.glome import utils
class UtilsTest(unittest.TestCase):
def test_addAndGetPerms(self):
ob = SimpleItem("testobject")
# Declare new role that doesn't have 'View' yet
ob._addRole('testrolle')
self.assert_('View' not in utils.getPermissionsOfRole(ob, 'testrolle'))
utils.addPermissionsToRoles(ob, ['testrolle'], ['View'])
self.assert_('View' in utils.getPermissionsOfRole(ob, 'testrolle'))
utils.removePermissionsFromRoles(ob, ['testrolle'], ['View'])
self.assert_('View' not in utils.getPermissionsOfRole(ob, 'testrolle'))
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(UtilsTest))
return suite
if __name__ == '__main__':
framework()
|
CVS: glome - utils.py:1.2
Christian Theune <ct(at)gocept.com> |
2004-12-16 09:53:09 |
[ FULL ]
|
Update of /cvs/gocept/glome
In directory amy:/tmp/cvs-serv24433
Modified Files:
utils.py
Log Message:
- another convenience method
=== glome/utils.py 1.1 => 1.2 ===
--- glome/utils.py:1.1 Wed Dec 15 17:53:02 2004
+++ glome/utils.py Thu Dec 16 09:53:09 2004
(at)(at) -24,3 +24,9 (at)(at)
permissions = [ perm['name'] for perm in permissions
if perm['selected'] ]
return permissions
+
+def getRolesOfPermission(obj, permission):
+ roles = obj.rolesOfPermission(permission)
+ roles = [ role['name'] for role in roles
+ if role['selected'] ]
+ return roles
|
CVS: glome - fields.py:1.6
Michael Howitz <mh(at)gocept.com> |
2004-12-21 12:58:44 |
[ FULL ]
|
Update of /cvs/gocept/glome
In directory amy:/tmp/cvs-serv6540
Modified Files:
fields.py
Log Message:
fixed an exception occuring when no file was uploaded but get_size was called
=== glome/fields.py 1.5 => 1.6 ===
--- glome/fields.py:1.5 Tue Sep 7 14:03:28 2004
+++ glome/fields.py Tue Dec 21 12:59:21 2004
(at)(at) -100,6 +100,8 (at)(at)
def get_size(self, instance):
"""get size"""
extfile = self.getRaw(instance)
+ if extfile == '':
+ return 0
return extfile.get_size()
|
|