##// END OF EJS Templates
gists: Remove gist_type from update method in model. #4243...
Martin Bornhold -
r853:30d12223 stable
parent child Browse files
Show More
@@ -299,7 +299,6 b' class GistsController(BaseController):'
299 description=schema_data['description'],
299 description=schema_data['description'],
300 owner=c.gist.owner,
300 owner=c.gist.owner,
301 gist_mapping=schema_data['nodes'],
301 gist_mapping=schema_data['nodes'],
302 gist_type=schema_data['gist_type'],
303 lifetime=schema_data['lifetime'],
302 lifetime=schema_data['lifetime'],
304 gist_acl_level=schema_data['gist_acl_level']
303 gist_acl_level=schema_data['gist_acl_level']
305 )
304 )
@@ -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