Esempio n. 1
0
def download(request, idDownload):
    """
    Downloadables management
    """
    if idDownload.strip() == '':
        return index(request)

    return DownloadsManager.manager().send(request, idDownload)
Esempio n. 2
0
def download(request, idDownload):
    '''
    Downloadables management
    '''
    if idDownload == '':
        files = [{
            'id': key,
            'name': val['name'],
            'comment': _(val['comment'])
        } for key, val in
                 DownloadsManager.manager().getDownloadables().items()]
        logger.debug('Files: {0}'.format(files))
        return render_to_response(theme.template('downloads.html'),
                                  {'files': files},
                                  context_instance=RequestContext(request))

    return DownloadsManager.manager().send(request, idDownload)
Esempio n. 3
0
def download(request, idDownload):
    """
    Downloadables management
    """
    if idDownload == '':
        files = [{'id': key, 'name': val['name'], 'comment': _(val['comment'])} for key, val in DownloadsManager.manager().getDownloadables().items()]
        logger.debug('Files: {0}'.format(files))
        return render(request, theme.template('downloads.html'), {'files': files})

    return DownloadsManager.manager().send(request, idDownload)
Esempio n. 4
0
def download(request, idDownload):
    '''
    Downloadables management
    '''
    if idDownload == '':
        files = [{'id': key, 'name': val['name'], 'comment': _(val['comment'])} for key, val in DownloadsManager.manager().getDownloadables().items()]
        logger.debug('Files: {0}'.format(files))
        return render_to_response(theme.template('downloads.html'), {'files': files}, context_instance=RequestContext(request))

    return DownloadsManager.manager().send(request, idDownload)
Esempio n. 5
0
def download(request, idDownload):
    """
    Downloadables management
    """
    if idDownload == '':
        files = [{'id': key, 'name': val['name'], 'comment': _(val['comment'])} for key, val in DownloadsManager.manager().getDownloadables().items()]
        logger.debug('Files: {0}'.format(files))
        return render(request, theme.template('downloads.html'), {'files': files})

    return DownloadsManager.manager().send(request, idDownload)
Esempio n. 6
0
from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from uds.core import VERSION

from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable('udsactor_{version}_all.deb'.format(version=VERSION),
                                                _('UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python >= 3.5)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor_{version}_all.deb'.format(version=VERSION),
                                                'application/x-debian-package')

DownloadsManager.manager().registerDownloadable('udsactor-{version}-1.noarch.rpm'.format(version=VERSION),
                                                _('UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor-{version}-1.noarch.rpm'.format(version=VERSION),
                                                'application/x-redhat-package-manager')

DownloadsManager.manager().registerDownloadable('udsactor-opensuse-{version}-1.noarch.rpm'.format(version=VERSION),
                                                _('UDS Actor for openSUSE, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor-opensuse-{version}-1.noarch.rpm'.format(version=VERSION),
                                                'application/x-redhat-package-manager')

DownloadsManager.manager().registerDownloadable('udsactor_2.2.0_legacy.deb'.format(version=VERSION),
                                                _('<b>Legacy</b> UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor_2.2.0_legacy.deb'.format(version=VERSION),
Esempio n. 7
0
# -*- coding: utf-8 -*-

#
# Copyright (c) 2012 Virtual Cable S.L.
# All rights reserved.
#

'''
@author: Adolfo Gómez, dkmaster at dkmon dot com
'''

from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from .WindowsOsManager import WindowsOsManager
from .WinDomainOsManager import WinDomainOsManager
from .WinRandomPassOsManager import WinRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(WindowsOsManager)
OSManagersFactory.factory().insert(WinDomainOsManager)
OSManagersFactory.factory().insert(WinRandomPassManager)

DownloadsManager.manager().registerDownloadable('UDSActorSetup.exe',
                                                _('UDS Actor for windows machines'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/UDSActorSetup.exe',
                                                'application/x-msdos-program')
Esempio n. 8
0
'''
@author: Adolfo Gómez, dkmaster at dkmon dot com
'''
from __future__ import unicode_literals

from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable('udsactor_1.7.0_all.deb',
                                                _('UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor_1.7.0_all.deb',
                                                'application/x-debian-package')

DownloadsManager.manager().registerDownloadable('udsactor-1.7.0-1.noarch.rpm',
                                                _('UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor-1.7.0-1.noarch.rpm',
                                                'application/x-redhat-package-manager')

DownloadsManager.manager().registerDownloadable('udsactor-opensuse-1.7.0-1.noarch.rpm',
                                                _('UDS Actor for openSUSE, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor-opensuse-1.7.0-1.noarch.rpm',
                                                'application/x-redhat-package-manager')
Esempio n. 9
0
from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from uds.core import VERSION

from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable(
    "udsactor_{version}_all.deb".format(version=VERSION),
    _("UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python 2.7)</b>"),
    os.path.dirname(sys.modules[__package__].__file__) + "/files/udsactor_{version}_all.deb".format(version=VERSION),
    "application/x-debian-package",
)

DownloadsManager.manager().registerDownloadable(
    "udsactor-{version}-1.noarch.rpm".format(version=VERSION),
    _("UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>"),
    os.path.dirname(sys.modules[__package__].__file__)
    + "/files/udsactor-{version}-1.noarch.rpm".format(version=VERSION),
    "application/x-redhat-package-manager",
)

DownloadsManager.manager().registerDownloadable(
    "udsactor-opensuse-{version}-1.noarch.rpm".format(version=VERSION),
    _("UDS Actor for openSUSE, ... Linux machines <b>(Requires python 2.7)</b>"),
    os.path.dirname(sys.modules[__package__].__file__)
Esempio n. 10
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable(
    'udsactor_1.7.0_all.deb',
    _('UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python 2.7)</b>'
      ),
    os.path.dirname(sys.modules[__package__].__file__) +
    '/files/udsactor_1.7.0_all.deb', 'application/x-debian-package')

DownloadsManager.manager().registerDownloadable(
    'udsactor-1.7.0-1.noarch.rpm',
    _('UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>'
      ),
    os.path.dirname(sys.modules[__package__].__file__) +
    '/files/udsactor-1.7.0-1.noarch.rpm',
    'application/x-redhat-package-manager')

DownloadsManager.manager().registerDownloadable(
    'udsactor-opensuse-1.7.0-1.noarch.rpm',
    _('UDS Actor for openSUSE, ... Linux machines <b>(Requires python 2.7)</b>'
      ),
Esempio n. 11
0
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from uds.core import VERSION

from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable(
    'udsactor_{version}_all.deb'.format(version=VERSION),
    _('UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python >= 3.5)</b>'
      ),
    os.path.dirname(sys.modules[__package__].__file__) +
    '/files/udsactor_{version}_all.deb'.format(version=VERSION),
    'application/x-debian-package')

DownloadsManager.manager().registerDownloadable(
    'udsactor-{version}-1.noarch.rpm'.format(version=VERSION),
    _('UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>'
      ),
    os.path.dirname(sys.modules[__package__].__file__) +
    '/files/udsactor-{version}-1.noarch.rpm'.format(version=VERSION),
    'application/x-redhat-package-manager')

DownloadsManager.manager().registerDownloadable(
    'udsactor-opensuse-{version}-1.noarch.rpm'.format(version=VERSION),
    _('UDS Actor for openSUSE, ... Linux machines <b>(Requires python 2.7)</b>'