forked from indymedia/epicyon
Set git project names list within profile
parent
33458499bb
commit
42280d9737
11
daemon.py
11
daemon.py
|
@ -5688,6 +5688,17 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
else:
|
||||
if os.path.isfile(allowedInstancesFilename):
|
||||
os.remove(allowedInstancesFilename)
|
||||
# save git project names list
|
||||
gitProjectsFilename = \
|
||||
self.server.baseDir + '/accounts/' + \
|
||||
nickname + '@' + self.server.domain + \
|
||||
'/gitprojects.txt'
|
||||
if fields.get('gitProjects'):
|
||||
with open(gitProjectsFilename, "w") as aFile:
|
||||
aFile.write(fields['gitProjects'])
|
||||
else:
|
||||
if os.path.isfile(gitProjectsFilename):
|
||||
os.remove(gitProjectsFilename)
|
||||
# save actor json file within accounts
|
||||
if actorChanged:
|
||||
randomizeActorImages(actorJson)
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "عن المؤلف",
|
||||
"Edit blog post": "تحرير بلوق وظيفة",
|
||||
"Publicly visible post": "مشاركة مرئية بشكل عام",
|
||||
"Your Posts": "منشوراتك"
|
||||
"Your Posts": "منشوراتك",
|
||||
"Git Projects": "مشاريع Git",
|
||||
"List of project names that you wish to receive git patches for": "قائمة بأسماء المشاريع التي ترغب في تلقي تصحيحات git لها"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Sobre l’autor",
|
||||
"Edit blog post": "Edita la publicació del bloc",
|
||||
"Publicly visible post": "Publicació visible públicament",
|
||||
"Your Posts": "Les teves publicacions"
|
||||
"Your Posts": "Les teves publicacions",
|
||||
"Git Projects": "Git Projectes",
|
||||
"List of project names that you wish to receive git patches for": "Llista de noms de projectes dels quals voleu rebre els pedaços de git"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Am yr awdur",
|
||||
"Edit blog post": "Golygu post blog",
|
||||
"Publicly visible post": "Post sy'n weladwy i'r cyhoedd",
|
||||
"Your Posts": "Eich Swyddi"
|
||||
"Your Posts": "Eich Swyddi",
|
||||
"Git Projects": "Prosiectau Git",
|
||||
"List of project names that you wish to receive git patches for": "Rhestr o enwau prosiectau yr ydych yn dymuno derbyn darnau git ar eu cyfer"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Über den Autor",
|
||||
"Edit blog post": "Blog-Beitrag bearbeiten",
|
||||
"Publicly visible post": "Öffentlich sichtbarer Beitrag",
|
||||
"Your Posts": "Deine Posts"
|
||||
"Your Posts": "Deine Posts",
|
||||
"Git Projects": "Git-Projekte",
|
||||
"List of project names that you wish to receive git patches for": "Liste der Projektnamen, für die Sie Git-Patches erhalten möchten"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "About the author",
|
||||
"Edit blog post": "Edit blog post",
|
||||
"Publicly visible post": "Publicly visible post",
|
||||
"Your Posts": "Your Posts"
|
||||
"Your Posts": "Your Posts",
|
||||
"Git Projects": "Git Projects",
|
||||
"List of project names that you wish to receive git patches for": "List of project names that you wish to receive git patches for"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Sobre la autora",
|
||||
"Edit blog post": "Editar publicación de blog",
|
||||
"Publicly visible post": "Publicación públicamente visible",
|
||||
"Your Posts": "Tus publicaciones"
|
||||
"Your Posts": "Tus publicaciones",
|
||||
"Git Projects": "Proyectos Git",
|
||||
"List of project names that you wish to receive git patches for": "Lista de nombres de proyectos para los que desea recibir parches git"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "A propos de l'auteur",
|
||||
"Edit blog post": "Modifier le billet de blog",
|
||||
"Publicly visible post": "Message publiquement visible",
|
||||
"Your Posts": "Vos publications"
|
||||
"Your Posts": "Vos publications",
|
||||
"Git Projects": "Projets Git",
|
||||
"List of project names that you wish to receive git patches for": "Liste des noms de projets pour lesquels vous souhaitez recevoir des correctifs git"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Faoin tÚdar",
|
||||
"Edit blog post": "Cuir post an bhlag in eagar",
|
||||
"Publicly visible post": "Post atá infheicthe go poiblí",
|
||||
"Your Posts": "Do Phoist"
|
||||
"Your Posts": "Do Phoist",
|
||||
"Git Projects": "Tionscadail Git",
|
||||
"List of project names that you wish to receive git patches for": "Liosta d’ainmneacha tionscadail ar mhaith leat paistí git a fháil dóibh"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "लेखक के बारे में",
|
||||
"Edit blog post": "ब्लॉग पोस्ट संपादित करें",
|
||||
"Publicly visible post": "सार्वजनिक रूप से दिखाई देने वाली पोस्ट",
|
||||
"Your Posts": "आपके पोस्ट"
|
||||
"Your Posts": "आपके पोस्ट",
|
||||
"Git Projects": "गिट परियोजनाओं",
|
||||
"List of project names that you wish to receive git patches for": "उन प्रोजेक्ट नामों की सूची, जिनके लिए आप git पैच प्राप्त करना चाहते हैं"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Circa l'autore",
|
||||
"Edit blog post": "Modifica post del blog",
|
||||
"Publicly visible post": "Post pubblicamente visibile",
|
||||
"Your Posts": "I tuoi post"
|
||||
"Your Posts": "I tuoi post",
|
||||
"Git Projects": "Git Projects",
|
||||
"List of project names that you wish to receive git patches for": "Elenco di nomi di progetti per i quali si desidera ricevere patch git"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "著者について",
|
||||
"Edit blog post": "ブログ投稿を編集",
|
||||
"Publicly visible post": "一般公開の投稿",
|
||||
"Your Posts": "あなたの投稿"
|
||||
"Your Posts": "あなたの投稿",
|
||||
"Git Projects": "Gitプロジェクト",
|
||||
"List of project names that you wish to receive git patches for": "gitパッチを受け取りたいプロジェクト名のリスト"
|
||||
}
|
||||
|
|
|
@ -215,5 +215,7 @@
|
|||
"About the author": "About the author",
|
||||
"Edit blog post": "Edit blog post",
|
||||
"Publicly visible post": "Publicly visible post",
|
||||
"Your Posts": "Your Posts"
|
||||
"Your Posts": "Your Posts",
|
||||
"Git Projects": "Git Projects",
|
||||
"List of project names that you wish to receive git patches for": "List of project names that you wish to receive git patches for"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Sobre o autor",
|
||||
"Edit blog post": "Editar postagem do blog",
|
||||
"Publicly visible post": "Postagem publicamente visível",
|
||||
"Your Posts": "Seus posts"
|
||||
"Your Posts": "Seus posts",
|
||||
"Git Projects": "Projetos Git",
|
||||
"List of project names that you wish to receive git patches for": "Lista de nomes de projetos para os quais você deseja receber patches git"
|
||||
}
|
||||
|
|
|
@ -219,5 +219,7 @@
|
|||
"About the author": "Об авторе",
|
||||
"Edit blog post": "Редактировать сообщение в блоге",
|
||||
"Publicly visible post": "Публично видимый пост",
|
||||
"Your Posts": "Ваши сообщения"
|
||||
"Your Posts": "Ваши сообщения",
|
||||
"Git Projects": "Git Projects",
|
||||
"List of project names that you wish to receive git patches for": "Список имен проектов, для которых вы хотите получать git-патчи"
|
||||
}
|
||||
|
|
|
@ -218,5 +218,7 @@
|
|||
"About the author": "关于作者",
|
||||
"Edit blog post": "编辑博客文章",
|
||||
"Publicly visible post": "公开可见的帖子",
|
||||
"Your Posts": "您的帖子"
|
||||
"Your Posts": "您的帖子",
|
||||
"Git Projects": "Git项目",
|
||||
"List of project names that you wish to receive git patches for": "您希望收到git补丁的项目名称列表"
|
||||
}
|
||||
|
|
|
@ -951,6 +951,14 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str,
|
|||
with open(allowedInstancesFilename, 'r') as allowedInstancesFile:
|
||||
allowedInstancesStr = allowedInstancesFile.read()
|
||||
|
||||
gitProjectsStr = ''
|
||||
gitProjectsFilename = \
|
||||
baseDir + '/accounts/' + \
|
||||
nickname + '@' + domain + '/gitprojects.txt'
|
||||
if os.path.isfile(gitProjectsFilename):
|
||||
with open(gitProjectsFilename, 'r') as gitProjectsFile:
|
||||
gitProjectsStr = gitProjectsFile.read()
|
||||
|
||||
skills = getSkills(baseDir, nickname, domain)
|
||||
skillsStr = ''
|
||||
skillCtr = 1
|
||||
|
@ -1215,6 +1223,7 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str,
|
|||
editProfileForm += \
|
||||
' <textarea id="message" name="blocked" style="height:200px">' + \
|
||||
blockedStr + '</textarea>'
|
||||
|
||||
editProfileForm += \
|
||||
' <br><b><label class="labels">' + \
|
||||
translate['Federation list'] + '</label></b>'
|
||||
|
@ -1226,6 +1235,18 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str,
|
|||
editProfileForm += \
|
||||
' <textarea id="message" name="allowedInstances" ' + \
|
||||
'style="height:200px">' + allowedInstancesStr + '</textarea>'
|
||||
|
||||
editProfileForm += \
|
||||
' <br><b><label class="labels">' + \
|
||||
translate['Git Projects'] + '</label></b>'
|
||||
idx = 'List of project names that you wish to receive git patches for'
|
||||
editProfileForm += \
|
||||
' <br><label class="labels">' + \
|
||||
translate[idx] + '</label>'
|
||||
editProfileForm += \
|
||||
' <textarea id="message" name="gitProjects" ' + \
|
||||
'style="height:100px">' + gitProjectsStr + '</textarea>'
|
||||
|
||||
editProfileForm += ' </div>'
|
||||
editProfileForm += ' <div class="container">'
|
||||
editProfileForm += \
|
||||
|
|
Loading…
Reference in New Issue