Beispiel #1
0
    # Variables of the whole workspace
    (r'^/((?P<workspace_id>\d+)/variable(s)?[/]?)?$',
     WorkSpaceVariableCollection(permitted_methods=(
         'PUT',
         'POST',
     ))),

    # channels of the whole workspace
    (r'^/((?P<workspace_id>\d+)/channel(s)?[/]?)?$',
     WorkSpaceChannelCollection(permitted_methods=('GET', ))),

    # Wiring info for the whole workspace
    (r'^/((?P<workspace_id>\d+)/wiring?[/]?)?$',
     ConnectableEntry(permitted_methods=(
         'PUT',
         'POST',
     ))),

    # Sharing workspace
    (r'^/(?P<workspace_id>\d+)/share/groups[/]?$',
     WorkSpaceSharerEntry(permitted_methods=('GET', ))),
    (r'^/((?P<workspace_id>\d+)/share/(?P<share_boolean>\w+)[/]?)?$',
     WorkSpaceSharerEntry(permitted_methods=('PUT', ))),

    # Coping workspace structure when adding package
    (r'^/((?P<workspace_id>\d+)/copy?[/]?)?$',
     WorkSpaceClonerEntry(permitted_methods=('GET', ))),

    # Linking workspace structure when adding package
    (r'^/((?P<workspace_id>\d+)/link?[/]?)?$',
     WorkSpaceLinkerEntry(permitted_methods=('GET', ))),
Beispiel #2
0
#     (at your option) any later version.
#
#     Morfeo EzWeb Platform is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU Affero General Public License for more details.
#
#     You should have received a copy of the GNU Affero General Public License
#     along with Morfeo EzWeb Platform.  If not, see <http://www.gnu.org/licenses/>.
#
#     Info about members and contributors of the MORFEO project
#     is available at
#
#     http://morfeo-project.org
#
#...............................licence...........................................#


#

from django.conf.urls.defaults import patterns

from connectable.views import ConnectableEntry

urlpatterns = patterns('connectable.views',

    # Connectables
    (r'^$', ConnectableEntry(permitted_methods=('GET', 'POST', 'PUT'))),

)