##// END OF EJS Templates
gists: Remove gist_type from update method in model. #4243...
Martin Bornhold -
r851:7e3c29b0 default
parent child Browse files
Show More
@@ -298,7 +298,6 b' class GistsController(BaseController):'
298 description=schema_data['description'],
298 description=schema_data['description'],
299 owner=c.gist.owner,
299 owner=c.gist.owner,
300 gist_mapping=schema_data['nodes'],
300 gist_mapping=schema_data['nodes'],
301 gist_type=schema_data['gist_type'],
302 lifetime=schema_data['lifetime'],
301 lifetime=schema_data['lifetime'],
303 gist_acl_level=schema_data['gist_acl_level']
302 gist_acl_level=schema_data['gist_acl_level']
304 )
303 )
@@ -176,8 +176,8 b' class GistModel(BaseModel):'
176 log.error(traceback.format_exc())
176 log.error(traceback.format_exc())
177 raise
177 raise
178
178
179 def update(self, gist, description, owner, gist_mapping, gist_type,
179 def update(self, gist, description, owner, gist_mapping, lifetime,
180 lifetime, gist_acl_level):
180 gist_acl_level):
181 gist = self._get_gist(gist)
181 gist = self._get_gist(gist)
182 gist_repo = gist.scm_instance()
182 gist_repo = gist.scm_instance()
183
183
@@ -204,7 +204,6 b' class GistModel(BaseModel):'
204 gist.gist_description = description
204 gist.gist_description = description
205 gist.gist_expires = gist_expires
205 gist.gist_expires = gist_expires
206 gist.owner = owner
206 gist.owner = owner
207 gist.gist_type = gist_type
208 gist.acl_level = gist_acl_level
207 gist.acl_level = gist_acl_level
209 self.sa.add(gist)
208 self.sa.add(gist)
210 self.sa.flush()
209 self.sa.flush()
General Comments 0
You need to be logged in to leave comments. Login now