Skip to content

Instantly share code, notes, and snippets.

View batok's full-sized avatar

Domingo Aguilera batok

  • Consultant
  • Guadalajara, Mexico
  • X @batok
View GitHub Profile
AddOns-0.6-py2.6.egg
AuthKit-0.4.3-py2.6.egg
Babel-0.9.2-py2.6.egg
Beaker-1.0.2-py2.6.egg
Beaker-1.1.2-py2.6.egg
BeautifulSoup-3.0.7a-py2.6.egg
BytecodeAssembler-0.5.1-py2.6.egg
Catwalk-2.0_r152-py2.6.egg
CleverCSS-0.1-py2.6.egg
CouchDB.egg-link
URL: http://127.0.0.1:8080/login?came_from=http%3A%2F%2F127.0.0.1%3A8080%2Fmanage_permission_only
File '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/WebError-0.10-py2.6.egg/weberror/evalexception.py', line 429 in respond
app_iter = self.application(environ, detect_start_response)
File '/Users/director/turbogears_svn/trunk/tg/configuration.py', line 497 in remover
return app(environ, start_response)
File '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/repoze.tm2-1.0a3-py2.6.egg/repoze/tm/__init__.py', line 19 in __call__
result = self.application(environ, save_status_and_headers)
File '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/repoze.who-1.0.8-py2.6.egg/repoze/who/middleware.py', line 107 in __call__
app_iter = app(environ, wrapper.wrap_start_response)
File '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ToscaWidgets-0.9.5dev_20081026-py2.6.egg/tw/core/middleware.p
earching for Catwalk
Reading http://turbogears.org/2.0/downloads/current/index/Catwalk/
Couldn't find index page for 'Catwalk' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://turbogears.org/2.0/downloads/current/index/
No local packages or download links found for Catwalk
error: Could not find suitable distribution for Requirement.parse('Catwalk')
Searching for sprox
Reading http://turbogears.org/2.0/downloads/current/index/sprox/
Couldn't find index page for 'sprox' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://turbogears.org/2.0/downloads/current/index/
No local packages or download links found for sprox
error: Could not find suitable distribution for Requirement.parse('sprox')
function inicio(){
dojo.query(".headLink").forEach(function(n){
var widget = new dojox.widget.FisheyeLite({
properties: {
height:65
},
easeOut:dojox.fx.easing.bounceOut,
durationOut:700
},n);
var myTarget = dojo.query(".subtext",n)[0];
@batok
batok / gist:34202
Created December 10, 2008 02:23
This is also a hack on ObjectListView.py to make the control work in virtual and group mode in Mac OS X
def RefreshObjects(self, aList=None):
"""
Refresh all the objects in the given list
"""
# We can only refresh everything
self.lastGetObjectIndex = -1
print self.GetItemCount()
if self.GetItemCount() == 0:
pass
else:
@batok
batok / gist:34201
Created December 10, 2008 02:19
hack to make virtual and grouping objectlistview in Mac OS X
def RefreshObjects(self, aList=None):
"""
Refresh all the objects in the given list
"""
self.lastGetObjectIndex = -1
# If no list is given, refresh everything
if aList:
for x in aList:
idx = self.GetIndexOf(x)
if idx != -1:
lDias = ["Ausencias", "Permisos sin Goce de Sueldo", "Incapacidades", "Incapacidades EG", "Incapacidades maternidad","Incapacidades RT", "Sueldo Pendiente"]
lCampos = ["+ausencias", "+permisos_sin_goce", "+incapacidades", "+incapacidades_eg", "+incapacidades_maternidad", "+incapacidades_rt","-sueldo_pendiente"]
dlg = wx.MultiChoiceDialog(self.parent, u"Indique lo que se va a reconocer para obtener días", u"Días", lDias)
if dlg.ShowModal() == wx.ID_OK:
sDias = dlg.GetSelections()
dlg.Destroy()
lqdias = [" %s coalesce(b.%s,0)" % (x[0],x[1:]) for i,x in enumerate(lCampos) if i in (sDias) ]
qdias = "0 as diasdescontados, "
rom couchdb.schema import Document, View, IntegerField, TextField
from couchdb import Database
map_fun = """
function(doc){
emit(doc.name, doc.age);
}
"""
from couchdb.schema import Document, View, IntegerField, TextField
from couchdb import Database
map_fun = """
function(doc){
emit(doc.name, doc.age);
}
"""