Change-Id: I65b66bc3f601854dfde6552ab4e5775f6f26b576
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
self.format_on_new(
content, project_id=session["project_id"], make_public=session["public"]
)
+ self.create_gitname(content, session)
_id = self.auth.create_project(content)
rollback.append({"topic": self.topic, "_id": _id})
self._send_msg("created", content, not_send_msg=None)
now = time()
project_desc["_id"] = str(uuid4())
project_desc["_admin"] = {"created": now, "modified": now}
+ project_desc["git_name"] = "osm_admin"
pid = self.backend.create_project(project_desc)
self.logger.info(
"Project '{}' created at database".format(project_desc["name"])
_filter = {}
else:
_filter = self._get_project_filter(session)
- _filter["name"] = content["name"]
+ _filter["git_name"] = content["name"]
if _id:
_filter["_id.neq"] = _id
if self.db.get_one(