This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def edit_roles(request, space_url): | |
""" | |
The edit_role function works to provide a way for space administrators to | |
modify the users roles inside a space, at the space level. | |
It basically works as an AJAX communication where the frontend sends to key | |
values: userid and perm, containing the user ID and the permission code, | |
which later we compare with the permissions dictionary. If the user has the | |
permission we go to the next one and so on. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2010-2012 Cidadania S. Coop. Galega | |
# | |
# This file is part of e-cidadania. | |
# | |
# e-cidadania is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Determines the bot's default nick. | |
# | |
# Default value: supybot | |
### | |
supybot.nick: Pyjango | |
### | |
# Determines what alternative nicks will be used if the primary nick | |
# (supybot.nick) isn't available. A %s in this nick is replaced by the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addTableColumn() { | |
/* | |
addTableColumn() - Create a new column ny creating a new sortable TD in | |
all the rows. | |
*/ | |
var tableID = $('table').attr('id'); | |
var inputs = $('#' + tableID + ' input').length; | |
var tdlength = $('#' + tableID + ' td').length; | |
var criteriacount = $('#' + tableID + ' th[id^=debate-vcriteria]').length; | |
var formCount = parseInt($('#id_colform-TOTAL_FORMS').val()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" This script download the latest git version of e-cidadania, compiles | |
the documentation and places it in the documentation website | |
""" | |
import sys | |
import os | |
import subprocess |
NewerOlder