[Erp5-report] r44348 jerome - /erp5/trunk/products/ERP5/Document/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 16 14:28:47 CET 2011
Author: jerome
Date: Wed Mar 16 14:28:46 2011
New Revision: 44348
URL: http://svn.erp5.org?rev=44348&view=rev
Log:
all this have to be protected with access, not view
Modified:
erp5/trunk/products/ERP5/Document/Alarm.py
erp5/trunk/products/ERP5/Document/Container.py
erp5/trunk/products/ERP5/Document/ContainerCell.py
erp5/trunk/products/ERP5/Document/ContainerLine.py
erp5/trunk/products/ERP5/Document/Delivery.py
erp5/trunk/products/ERP5/Document/DeliveryLine.py
erp5/trunk/products/ERP5/Document/DependentCapacity.py
erp5/trunk/products/ERP5/Document/ExternalSource.py
erp5/trunk/products/ERP5/Document/Image.py
erp5/trunk/products/ERP5/Document/IndependentCapacity.py
erp5/trunk/products/ERP5/Document/PDFDocument.py
erp5/trunk/products/ERP5/Document/SupplyChain.py
erp5/trunk/products/ERP5/Document/Telephone.py
erp5/trunk/products/ERP5/Document/TextDocument.py
Modified: erp5/trunk/products/ERP5/Document/Alarm.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Alarm.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Alarm.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Alarm.py [utf8] Wed Mar 16 14:28:46 2011
@@ -223,7 +223,7 @@ class Alarm(XMLObject, PeriodicityMixin)
# a new cache plugin which uses ZODB to store values
# for a long time.
- security.declareProtected(Permissions.View, 'report')
+ security.declareProtected(Permissions.AccessContentsInformation, 'report')
def report(self, reset=0, process=None):
"""
This methods produces a report (HTML) to display
Modified: erp5/trunk/products/ERP5/Document/Container.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Container.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Container.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Container.py [utf8] Wed Mar 16 14:28:46 2011
@@ -101,7 +101,7 @@ class Container(Movement, XMLObject):
"""
return 0
- security.declareProtected(Permissions.View, 'isDivergent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
def isDivergent(self):
"""
Returns 1 if the target is not met according to the current information
Modified: erp5/trunk/products/ERP5/Document/ContainerCell.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/ContainerCell.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/ContainerCell.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/ContainerCell.py [utf8] Wed Mar 16 14:28:46 2011
@@ -59,7 +59,7 @@ class ContainerCell(DeliveryCell):
, PropertySheet.ItemAggregation
)
- security.declareProtected(Permissions.AccessContentsInformation,
+ security.declareProtected(Permissions.AccessContentsInformation,
'isAccountable')
def isAccountable(self):
"""
@@ -70,7 +70,7 @@ class ContainerCell(DeliveryCell):
# Never accountable
return 0
- security.declareProtected(Permissions.View, 'isDivergent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
def isDivergent(self):
"""
Returns 1 if the target is not met according to the current information
Modified: erp5/trunk/products/ERP5/Document/ContainerLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/ContainerLine.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/ContainerLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/ContainerLine.py [utf8] Wed Mar 16 14:28:46 2011
@@ -79,7 +79,7 @@ class ContainerLine(DeliveryLine):
# Never accountable
return 0
- security.declareProtected(Permissions.View, 'isDivergent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
def isDivergent(self):
"""
Returns 1 if the target is not met according to the current information
Modified: erp5/trunk/products/ERP5/Document/Delivery.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Delivery.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Delivery.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Delivery.py [utf8] Wed Mar 16 14:28:46 2011
@@ -324,14 +324,14 @@ class Delivery(XMLObject, Immobilisation
#######################################################
# Causality computation
- security.declareProtected(Permissions.View, 'isConvergent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isConvergent')
def isConvergent(self,**kw):
"""
Returns 0 if the target is not met
"""
return int(not self.isDivergent(**kw))
- security.declareProtected(Permissions.View, 'isSimulated')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isSimulated')
def isSimulated(self):
"""
Returns 1 if all movements have a delivery or order counterpart
@@ -348,7 +348,7 @@ class Delivery(XMLObject, Immobilisation
# else Do we need to create a simulation movement ? XXX probably not
return 1
- security.declareProtected(Permissions.View, 'isDivergent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
def isDivergent(self, fast=0, **kw):
"""
Returns 1 if the target is not met according to the current information
@@ -365,7 +365,7 @@ class Delivery(XMLObject, Immobilisation
return 1
return 0
- security.declareProtected(Permissions.View, 'getDivergenceList')
+ security.declareProtected(Permissions.AccessContentsInformation, 'getDivergenceList')
def getDivergenceList(self, **kw):
"""
Return a list of messages that contains the divergences
Modified: erp5/trunk/products/ERP5/Document/DeliveryLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/DeliveryLine.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/DeliveryLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/DeliveryLine.py [utf8] Wed Mar 16 14:28:46 2011
@@ -203,7 +203,7 @@ class DeliveryLine(Movement, XMLObject,
"""
return XMLMatrix.getCellValueList(self, base_id=base_id)
- security.declareProtected( Permissions.View, 'getCell' )
+ security.declareProtected( Permissions.AccessContentsInformation, 'getCell' )
def getCell(self, *kw , **kwd):
"""
This method can be overriden
@@ -367,13 +367,13 @@ class DeliveryLine(Movement, XMLObject,
# divergence support with solving
- security.declareProtected(Permissions.View, 'isDivergent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
def isDivergent(self):
""" Returns true if the delivery line is divergent
"""
return bool(self.getDivergenceList())
- security.declareProtected(Permissions.View, 'getDivergenceList')
+ security.declareProtected(Permissions.AccessContentsInformation, 'getDivergenceList')
def getDivergenceList(self):
"""
Return a list of messages that contains the divergences
Modified: erp5/trunk/products/ERP5/Document/DependentCapacity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/DependentCapacity.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/DependentCapacity.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/DependentCapacity.py [utf8] Wed Mar 16 14:28:46 2011
@@ -53,7 +53,7 @@ class DependentCapacity(Capacity):
, PropertySheet.Amount
)
- security.declareProtected(Permissions.View, 'asCapacityItemList')
+ security.declareProtected(Permissions.AccessContentsInformation, 'asCapacityItemList')
def asCapacityItemList(self):
"""
Returns an association list of points and capacity values
Modified: erp5/trunk/products/ERP5/Document/ExternalSource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/ExternalSource.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/ExternalSource.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/ExternalSource.py [utf8] Wed Mar 16 14:28:46 2011
@@ -131,7 +131,7 @@ class ExternalSource(XMLObject, UrlMixin
"""
return None
- security.declareProtected(Permissions.View, 'isIndexContent')
+ security.declareProtected(Permissions.AccessContentsInformation, 'isIndexContent')
def isIndexContent(self, content=None):
"""
This method is able to tell if content object is an index or
Modified: erp5/trunk/products/ERP5/Document/Image.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Image.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Image.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Image.py [utf8] Wed Mar 16 14:28:46 2011
@@ -392,7 +392,7 @@ class Image(TextConvertableMixin, File,
"""At least see if it *might* be valid."""
return self.getWidth() and self.getHeight() and self.getData() and self.getContentType()
- security.declareProtected(Permissions.View, 'getSizeFromImageDisplay')
+ security.declareProtected(Permissions.AccessContentsInformation, 'getSizeFromImageDisplay')
def getSizeFromImageDisplay(self, image_display):
"""Return the size for this image display,
or dimension of this image.
Modified: erp5/trunk/products/ERP5/Document/IndependentCapacity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/IndependentCapacity.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/IndependentCapacity.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/IndependentCapacity.py [utf8] Wed Mar 16 14:28:46 2011
@@ -53,7 +53,7 @@ class IndependentCapacity(Capacity):
, PropertySheet.Amount
)
- security.declareProtected(Permissions.View, 'asCapacityItemList')
+ security.declareProtected(Permissions.AccessContentsInformation, 'asCapacityItemList')
def asCapacityItemList(self):
"""
Returns an association list of points and capacity values
Modified: erp5/trunk/products/ERP5/Document/PDFDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PDFDocument.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PDFDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PDFDocument.py [utf8] Wed Mar 16 14:28:46 2011
@@ -157,7 +157,7 @@ class PDFDocument(Image):
text += result
return text
- security.declareProtected(Permissions.View, 'getSizeFromImageDisplay')
+ security.declareProtected(Permissions.AccessContentsInformation, 'getSizeFromImageDisplay')
def getSizeFromImageDisplay(self, image_display):
"""
Return the size for this image display, or None if this image display name
Modified: erp5/trunk/products/ERP5/Document/SupplyChain.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SupplyChain.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SupplyChain.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SupplyChain.py [utf8] Wed Mar 16 14:28:46 2011
@@ -63,7 +63,7 @@ class SupplyChain(Path, XMLObject):
# Class variable
supply_link_portal_type="Supply Link"
- security.declareProtected(Permissions.View, 'getLastLink')
+ security.declareProtected(Permissions.AccessContentsInformation, 'getLastLink')
def getLastLink(self):
"""
Return the SupplyLink representing the last ridge of the
@@ -87,7 +87,7 @@ class SupplyChain(Path, XMLObject):
str(self.getRelativeUrl())
return result
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getNextSupplyLinkList')
def getNextSupplyLinkList(self, current_supply_link):
"""
@@ -111,7 +111,7 @@ class SupplyChain(Path, XMLObject):
return next_production_list
return next_supply_link_list
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getNextProductionSupplyLinkList')
def getNextProductionSupplyLinkList(self, current_supply_link):
"""
@@ -122,7 +122,7 @@ class SupplyChain(Path, XMLObject):
next_supply_link_list = self.getNextSupplyLinkList(current_supply_link)
return [x for x in next_supply_link_list if x.isProductionSupplyLink()]
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getNextProductionIndustrialPhaseList')
def getNextProductionIndustrialPhaseList(self, current_supply_link):
"""
@@ -136,7 +136,7 @@ class SupplyChain(Path, XMLObject):
ind_phase_dict.pop(None, None)
return ind_phase_dict.keys()
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getPreviousSupplyLinkList')
def getPreviousSupplyLinkList(self, current_supply_link):
"""
@@ -165,7 +165,7 @@ class SupplyChain(Path, XMLObject):
return previous_production_list
return previous_supply_link_list
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getPreviousProductionSupplyLinkList')
def getPreviousProductionSupplyLinkList(self, current_supply_link,
recursive=False, all=False,
@@ -219,7 +219,7 @@ class SupplyChain(Path, XMLObject):
# Return result
return transformation_link_list
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getPreviousPackingListSupplyLinkList')
def getPreviousPackingListSupplyLinkList(self, current_supply_link,
recursive=False, all=False,
@@ -286,7 +286,7 @@ class SupplyChain(Path, XMLObject):
ind_phase_list = ind_phase_dict.keys()
return ind_phase_list
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getPreviousProductionIndustrialPhaseList')
def getPreviousProductionIndustrialPhaseList(self, current_supply_link,
all=False):
@@ -299,7 +299,7 @@ class SupplyChain(Path, XMLObject):
"getPreviousProductionSupplyLinkList",
all=all)
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'getPreviousPackingListIndustrialPhaseList')
def getPreviousPackingListIndustrialPhaseList(self, current_supply_link):
"""
@@ -311,7 +311,7 @@ class SupplyChain(Path, XMLObject):
"getPreviousPackingListSupplyLinkList",
include_current=True)
- security.declareProtected(Permissions.View,
+ security.declareProtected(Permissions.AccessContentsInformation,
'test')
def test(self, current_supply_link, movement):
"""
Modified: erp5/trunk/products/ERP5/Document/Telephone.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Telephone.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Telephone.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Telephone.py [utf8] Wed Mar 16 14:28:46 2011
@@ -310,7 +310,7 @@ class Telephone(Coordinate, Base):
security.declareProtected(Permissions.ModifyPortalContent, '_setText')
_setText = fromText
- security.declareProtected(Permissions.View, 'asText')
+ security.declareProtected(Permissions.AccessContentsInformation, 'asText')
def asText(self):
"""
Returns the telephone number in standard format
@@ -379,10 +379,10 @@ class Telephone(Coordinate, Base):
return None
return 'tel:%s' % (url_string.replace(' ',''))
- security.declareProtected(Permissions.View, 'getText')
+ security.declareProtected(Permissions.AccessContentsInformation, 'getText')
getText = asText
- security.declareProtected(Permissions.View, 'standardTextFormat')
+ security.declareProtected(Permissions.AccessContentsInformation, 'standardTextFormat')
def standardTextFormat(self):
"""
Returns the standard text formats for telephone numbers
Modified: erp5/trunk/products/ERP5/Document/TextDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TextDocument.py?rev=44348&r1=44347&r2=44348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] Wed Mar 16 14:28:46 2011
@@ -116,7 +116,7 @@ class TextDocument(CachedConvertableMixi
return text
- security.declareProtected(Permissions.View, 'asSubjectText')
+ security.declareProtected(Permissions.AccessContentsInformation, 'asSubjectText')
def asSubjectText(self, substitution_method_parameter_dict=None, safe_substitute=True, **kw):
"""
Converts the subject of the document to a textual representation.
More information about the Erp5-report
mailing list