cleanups
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 06 Jul 2010 09:39:06 +0200
changeset 5896 67683b7e591a
parent 5895 6a3f776292a5
child 5897 0c6f2f866202
cleanups
schema.py
schemas/base.py
server/schemaserial.py
web/views/primary.py
--- a/schema.py	Mon Jul 05 19:06:17 2010 +0200
+++ b/schema.py	Tue Jul 06 09:39:06 2010 +0200
@@ -417,7 +417,7 @@
             # avoid deleting the relation type accidentally...
             self.schema['has_text'].del_relation_def(self, self.schema['String'])
 
-    def schema_entity(self):
+    def schema_entity(self): # XXX @property for consistency with meta
         """return True if this entity type is used to build the schema"""
         return self.type in SCHEMA_TYPES
 
@@ -441,7 +441,7 @@
     def meta(self):
         return self.type in META_RTYPES
 
-    def schema_relation(self):
+    def schema_relation(self): # XXX @property for consistency with meta
         """return True if this relation type is used to build the schema"""
         return self.type in SCHEMA_TYPES
 
--- a/schemas/base.py	Mon Jul 05 19:06:17 2010 +0200
+++ b/schemas/base.py	Tue Jul 06 09:39:06 2010 +0200
@@ -15,9 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""core CubicWeb schema, but not necessary at bootstrap time
+"""core CubicWeb schema, but not necessary at bootstrap time"""
 
-"""
 __docformat__ = "restructuredtext en"
 _ = unicode
 
--- a/server/schemaserial.py	Mon Jul 05 19:06:17 2010 +0200
+++ b/server/schemaserial.py	Tue Jul 06 09:39:06 2010 +0200
@@ -15,9 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""functions for schema / permissions (de)serialization using RQL
+"""functions for schema / permissions (de)serialization using RQL"""
 
-"""
 __docformat__ = "restructuredtext en"
 
 import os
--- a/web/views/primary.py	Mon Jul 05 19:06:17 2010 +0200
+++ b/web/views/primary.py	Tue Jul 06 09:39:06 2010 +0200
@@ -15,9 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""The default primary view
+"""The default primary view"""
 
-"""
 __docformat__ = "restructuredtext en"
 _ = unicode