Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/i/o/ionyweb-0.3/ionyweb/administration/views/file_manager.py   ionyweb(Download)
        current_dir = request.POST.get('current')
 
        dir_inside = Directory.objects.get(pk=inside.strip('dir-')) 
 
        if drop.startswith('dir-'):
            dir_drop = Directory.objects.get(pk=drop.strip('dir-'))
            managed_dir = request.website.file_manager().root
        else:
            managed_dir = Directory.objects.get(pk=pk)
        if managed_dir.get_root().filemanager.get().website.get() != request.website:
            raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
            managed_dir = request.website.file_manager().root
        else:
            managed_dir = Directory.objects.get(pk=pk)
 
        new_dir = Directory()
            managed_dir = request.website.file_manager().root
        else:
            managed_dir = Directory.objects.get(pk=pk)
 
        managed_dir.rename(request.POST.get('name'));

src/i/o/ionyweb-HEAD/ionyweb/administration/views/file_manager.py   ionyweb(Download)
        current_dir = request.POST.get('current')
 
        dir_inside = Directory.objects.get(pk=inside.strip('dir-')) 
 
        if drop.startswith('dir-'):
            dir_drop = Directory.objects.get(pk=drop.strip('dir-'))
            managed_dir = request.website.file_manager().root
        else:
            managed_dir = Directory.objects.get(pk=pk)
        if managed_dir.get_root().filemanager.get().website.get() != request.website:
            raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
            managed_dir = request.website.file_manager().root
        else:
            managed_dir = Directory.objects.get(pk=pk)
 
        new_dir = Directory()
            managed_dir = request.website.file_manager().root
        else:
            managed_dir = Directory.objects.get(pk=pk)
 
        managed_dir.rename(request.POST.get('name'));

src/i/o/ionyweb-0.3/ionyweb/file_manager/views.py   ionyweb(Download)
def render_directories_list_html(request, current=None):
 
    root = request.website.file_manager().root
    if current and current != '0':
        current = Directory.objects.get(pk=current)

src/i/o/ionyweb-HEAD/ionyweb/file_manager/views.py   ionyweb(Download)
def render_directories_list_html(request, current=None):
 
    root = request.website.file_manager().root
    if current and current != '0':
        current = Directory.objects.get(pk=current)