~openerp-venezuela/+junk/check_management_trunk_def

« back to all changes in this revision

Viewing changes to python2lpr/__terp__.py

  • Committer: angelica barrios
  • Date: 2010-12-13 21:35:16 UTC
  • Revision ID: angelica@angelica-20101213213516-16mxk8246bnpw5so
[ADD]Se agregaron los modulos para la impresion 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- encoding: utf-8 -*-
 
3
###########################################################################
 
4
#    Module Writen to OpenERP, Open Source Management Solution
 
5
#    Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
 
6
#    All Rights Reserved
 
7
###############Credits######################################################
 
8
#    Coded by: humberto@openerp.com.ve 
 
9
#              angélicaisabelb@gmail.com
 
10
#              example of pycups-1.9.52
 
11
#    Planified by: Nhomar Hernande
 
12
#    Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve
 
13
#    Audited by: Humberto Arocha humberto@openerp.com.ve
 
14
#############################################################################
 
15
#    This program is free software: you can redistribute it and/or modify
 
16
#    it under the terms of the GNU General Public License as published by
 
17
#    the Free Software Foundation, either version 3 of the License, or
 
18
#    (at your option) any later version.
 
19
#
 
20
#    This program is distributed in the hope that it will be useful,
 
21
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
23
#    GNU General Public License for more details.
 
24
#
 
25
#    You should have received a copy of the GNU General Public License
 
26
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
27
##############################################################################
 
28
 
 
29
 
 
30
{
 
31
    'name': 'python2lpr'                                ,
 
32
    'version': '1.0'                                    ,
 
33
    'author': 'OpenERP Venezuela'                       ,
 
34
    'category': 'General'                               ,
 
35
    'description': """
 
36
        Impresion de Reportes
 
37
        Configuraciones Previas:
 
38
        1-  Instalar pycups:    # aptitude install python-cups 
 
39
        2-                      # apt-get install system-config-printer
 
40
        3-  Acceder al archivo de configuracion de cups (/etc/cups/cupsd.conf) y modificar:
 
41
            - En la Seccion: Only listen for connections from the local machine.
 
42
                Listen 631
 
43
                Listen /var/run/cups/cups.sock
 
44
            - En la Seccion: Default authentication type, when authentication is required...
 
45
                DefaultAuthTypeDigest
 
46
                DefaultEncryptionRe quired 
 
47
                DefaultEncryption Never
 
48
            - En la Seccion: Default authentication type, when authentication is required...
 
49
                DefaultAuthTypeDigest
 
50
                DefaultEncryptionRe quired 
 
51
                DefaultEncryption Never
 
52
            - En la Seccion: Restrict access to the server...
 
53
                <Location />
 
54
                  Allow all
 
55
                </Location>          
 
56
            - En la Seccion: Restrict access to the admin pages...
 
57
                <Location /admin>
 
58
                  Allow all
 
59
                </Location>
 
60
            - En la Seccion: Restrict access to configuration files...
 
61
                <Location /admin/conf>
 
62
                  AuthType Default
 
63
                  Require user @SYSTEM
 
64
                  Order allow,deny
 
65
                </Location>
 
66
        4-  Reiniciar cups:    #  /etc/init.d/cups restart
 
67
        5-  Instalar:   # aptitude install lpr
 
68
        6-  Istalar:    # apt-get install cups cups-driver-gutenprint gutenprint-locales foomatic-db foomatic-db-gutenprint foomatic-db-engine foomatic-filters foomatic-db-hpijs cups-bsd foo2zjs
 
69
        7-  PROCESO DE AÑADIR LA IMPRESORA
 
70
            7.1- Acceder a Common UNIX Printing System (asistente de impresoras Web): http://localhost:631/ si es, desde una maquina virtual con: http://192.168.*.* 
 
71
            7.2- Anadir la Impresora que se desea administrar
 
72
        8-  Instalar el modulo python2lpr
 
73
        9-  En el Servidor en la direccion: server/bin/report/report_sxw.py Editar este archivo por los comandos del archivo lpr_code.txt:
 
74
                INTRO CODE 1 --> despues del import common (parte superior)
 
75
                INTRO CODE 2 --> en la clase report_sxw en el metodo create despues de la setencia:  if not fnct_ret: return (False,False)
 
76
        10- Reiniciar el Servidor de OpenERP
 
77
    """                                                 ,
 
78
        "website": "http://www.openerp.com/"                ,
 
79
    'depends': ['base'                                  , 
 
80
                ]                                       ,
 
81
    'update_xml': [
 
82
                    "python2lpr_view.xml"               ,
 
83
    ]                                                   ,
 
84
    'installable': True                                 ,
 
85
    'active': False                                     ,
 
86
}
 
87