Skip to content

Instantly share code, notes, and snippets.

View ovnicraft's full-sized avatar
🎯
Focusing

Christian Salamea ovnicraft

🎯
Focusing
View GitHub Profile
[2012/10/18 16:58:21.007481, 2] smbd/sesssetup.c:1279(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2012/10/18 16:58:21.009056, 2] smbd/sesssetup.c:1279(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2012/10/18 16:58:21.011262, 2] auth/token_util.c:455(finalize_local_nt_token)
WARNING: Failed to create BUILTIN\Administrators group! Can Winbind allocate gids?
[2012/10/18 16:58:21.013085, 2] auth/token_util.c:479(finalize_local_nt_token)
WARNING: Failed to create BUILTIN\Users group! Can Winbind allocate gids?
[2012/10/18 16:58:52.618838, 2] auth/auth.c:309(check_ntlm_password)
check_ntlm_password: authentication for user [nestor] -> [nestor] -> [nestor] succeeded
@ovnicraft
ovnicraft / gist:3929359
Created October 22, 2012 02:46
Descripcion de error
PEGAR AQUI ERROR
[2012/10/23 13:38:11.422738, 0] rpc_server/netlogon/srv_netlog_nt.c:931(_netr_ServerAuthenticate3)
_netr_ServerAuthenticate: no challenge sent to client SIDEM
useradd: group 'machines' does not exist
[2012/10/23 13:38:12.177648, 0] passdb/pdb_interface.c:475(pdb_default_create_user)
_samr_create_user: Running the command `sudo /usr/sbin/useradd -N -g machines -c Machine -d /var/lib/samba -s /bin/false sidem$' gave 6
Traceback (most recent call last):
File "/Users/ovnicraft/development/openerp/61/server/openerp/sql_db.py", line 421, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
File "/Library/Python/2.6/site-packages/psycopg2/__init__.py", line 179, in connect
connection_factory=connection_factory, async=async)
OperationalError: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
2012-10-24 01:20:57,297 6602 ERROR template1 openerp.netsvc: could not connect to server: Connection refused
Failed to issue the StartTLS instruction: Protocol error
[2012/10/24 08:33:42.712741, 0] rpc_server/netlogon/srv_netlog_nt.c:976(_netr_ServerAuthenticate3)
_netr_ServerAuthenticate3: netlogon_creds_server_check failed. Rejecting auth request from client SIDEM machine account SIDEM$
@ovnicraft
ovnicraft / gist:3975271
Created October 29, 2012 17:59
Validador cedula o ruc
def _check_cedula(self, identificador):
if len(identificador) == 13 and not identificador[10:13] == '001':
return False
else:
if len(identificador) < 10:
return False
coef = [2,1,2,1,2,1,2,1,2]
cedula = identificador[:9]
suma = 0
for c in cedula:
@ovnicraft
ovnicraft / gist:4040691
Created November 8, 2012 18:45
Ejemplo clase OpenERP
from osv import osv, fields
class CrossoveredBudgetType(osv.Model):
_name = 'crossovered.budget.type'
_description = 'Budget Types'
_order = 'code'
_columns = dict(
name = fields.char('Tipo', size=32, required=True),
@ovnicraft
ovnicraft / redefinicion de fields_view_get.py
Created November 8, 2012 21:33
Metodo para cargar dinamicamente los valores del campo estado segun la etapa
def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False):
journal_obj = self.pool.get('account.journal')
if context is None:
context = {}
if context.get('active_model', '') in ['res.partner'] and context.get('active_ids', False) and context['active_ids']:
partner = self.pool.get(context['active_model']).read(cr, uid, context['active_ids'], ['supplier','customer'])[0]
if not view_type:
view_id = self.pool.get('ir.ui.view').search(cr, uid, [('name', '=', 'account.invoice.tree')])
view_type = 'tree'
def foo():
'''
Mi funcion foo
'''
pass
lient Traceback (most recent call last):
File "/Users/ovnicraft/development/openerp/trunk/web/addons/web/http.py", line 174, in dispatch
response["result"] = method(self, **self.params)
File "/Users/ovnicraft/development/openerp/trunk/web/addons/web/controllers/main.py", line 1269, in call_button
action = self.call_common(req, model, method, args, domain_id, context_id)
File "/Users/ovnicraft/development/openerp/trunk/web/addons/web/controllers/main.py", line 1203, in call_common
return self._call_kw(req, model, method, args, {})
File "/Users/ovnicraft/development/openerp/trunk/web/addons/web/controllers/main.py", line 1227, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/Users/ovnicraft/development/openerp/trunk/web/addons/web/session.py", line 42, in proxy