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
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
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
import sys; sys.__plen = len(sys.path)
./mercurial-1.0.2-py2.6-macosx-10.3-ppc.egg
./Tempita-0.2-py2.6.egg
./Routes-1.10.1-py2.6.egg
./Pygments-0.11.1-py2.6.egg
./PasteDeploy-1.3.3dev_r7463-py2.6.egg
./paramiko-1.7.4-py2.6.egg
./pycrypto-2.0.1-py2.6-macosx-10.3-ppc.egg
/Users/director/couchdb_python_26_svn
./httplib2-0.4.0-py2.6.egg
"""Main Controller"""
from dic23.lib.base import BaseController
from tg import expose, flash, require
from pylons.i18n import ugettext as _
#from tg import redirect, validate
from dic23.model import DBSession, metadata
from catwalk.tg2 import Catwalk
from repoze.what import predicates
from dic23.controllers.secc import Secc
from sprox.formbase import AddRecordForm
[error] [<0.64.0>] {error_report,<0.22.0>,
{<0.64.0>,crash_report,
[[{pid,<0.64.0>},
{registered_name,[]},
{error_info,
{error,
{badmatch,{error,nxdomain}},
[{couch_rep,do_http_request,4},
{couch_rep,open_doc,3},
{couch_rep,replicate2,5},
def OnKeyDown(self, evt):
try:
mykey = evt.KeyCode()
except:
mykey = evt.GetKeyCode()
if mykey == wx.WXK_F6:
import wx
from breve.tags.html import tags as T
from breve.flatten import flatten
import os
from stat import *
"""
This is now a wxpython version.
Builds an show in browser and html file showing directories and files in selected PATH
"""
import smtplib
def mail():
fromAddr = "user@yourgoogleappsdomain" #if your account is from gmail don't use @yourgoogleappsdomain
password = "your google apps account password"
toAddrs = ["user@domain", "anotheruser@anotherdomainmaybe"]
subject = "testing"
body = "dont answer it is just a test"
help = wx.Menu()
self.help = help
ID_MENU_HELP_ABOUT = wx.NewId()
self.ID_MENU_HELP_ABOUT = ID_MENU_HELP_ABOUT
about = help.Append(ID_MENU_HELP_ABOUT,"About")
idle = help.Append(-1,"Date will be here")
mb.Append( engine, "Engine")
mb.Append( blog , "Blog")
mb.Append( help, "Help")
$ python client.py
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
......EE.E...F...F.
======================================================================
ERROR: test_include_docs (__main__.DatabaseTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "client.py", line 124, in test_include_docs
include_docs=True