Every repository with this icon (
Every repository with this icon (
| Description: | The official repo is now at http://github.com/couchapp/couchapp edit |
-
PROBLEM:
C:\stux> couchapp generate test Traceback (most recent call last): File "C:\dev\RAD\Tools\Python25\Scripts\couchapp-script.py", line 8, in <module> load_entry_point('couchapp==0.3.1', 'console_scripts', 'couchapp')() File "c:\dev\rad\tools\python25\lib\site-packages\couchapp-0.3.1-py2.5.egg\couchapp\bin\couchapp_cli.py", line 125, in main cli = CouchappCli(options.verbose) File "c:\dev\rad\tools\python25\lib\site-packages\couchapp-0.3.1-py2.5.egg\couchapp\bin\couchapp_cli.py", line 37, in __init__ self.ui = UI(verbose=verbose, logging_handler=console) File "c:\dev\rad\tools\python25\lib\site-packages\couchapp-0.3.1-py2.5.egg\couchapp\ui.py", line 42, in __init__ self.readconfig(rcpath()) File "c:\dev\rad\tools\python25\lib\site-packages\couchapp-0.3.1-py2.5.egg\couchapp\utils.py", line 76, in rcpath _rcpath = user_rcpath() File "c:\dev\rad\tools\python25\lib\site-packages\couchapp-0.3.1-py2.5.egg\couchapp\utils.py", line 52, in user_rcpath path.append(os.path.join(userprofile, '.couchapprc')) AttributeError: 'str' object has no attribute 'append' C:\stux>ENVIRONMENT:
C:\stux>python Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.SOLUTION:
Here's the patch that works for me:*** couchapp\utils.py Wed Jun 10 09:29:17 2009 --- couchapp\utils.py.changed Wed Jun 10 09:30:26 2009 *************** *** 49,55 **** path = os.path.join(home, '.couchapprc') userprofile = [os.environ.get('USERPROFILE')] if userprofile: ! path.append(os.path.join(userprofile, '.couchapprc')) return path else: def user_rcpath(): --- 49,55 ---- path = os.path.join(home, '.couchapprc') userprofile = [os.environ.get('USERPROFILE')] if userprofile: ! path = os.path.join(userprofile, '.couchapprc') return path else: def user_rcpath():Comments
-
In Readme: couchapp push http://localhost:5984/mydb
0 comments Created 4 months ago by msmart -
Hi
I followed the instructions in the wiki to generate a test application. The procedure completed successfully; but when I point my browser to the server:
http://tulligweb:5984/mytestapp/_design/test/index.html
I get this error message:
{"error":"not_found","reason":"Document is missing attachment"}
Running curl http://tulligweb:5984/mytestapp/_design/test seems to return the app OK.
Regards
Comments
-
couchapp push to url in single quotes with escaped characters fails
0 comments Created 3 months ago by podmanTrying to push to a db when the password has characters that need to be escaped and using single quotes (e.g. couchapp push . 'http://admin:mypas\$@url:5984/play_data') will result in a httplib.IncompleteRead: [] error. (http://gist.github.com/190362)
Using double quotes (e.g. couchapp push . "http://admin:mypas\$@url:5984/play_data") , however, works.
Comments
-
The help states:
couchapp generate [appdir]However in reality the arguments are reversed as such that one have to write
couchapp generate [appdir]
Comments
-
If a document ending in .json is loaded using !json, it should be validated as being valid JSON markup.
I had a large object that had one instance of ; instead of : ... and couchdb silently loaded the markup as a string value.
Comments
this version of couchapp is old. Current is here :
http://github.com/couchapp/couchappdoc :
-
Hi.
I have two .js files in /lists/ and two .html files in /templates/
Both list functions are like this:
function(head, req) {
// !json templates}
When pushed to couchdb none of the directives is translated to var templates = { ...
Comments












I there a way for me to upload the patch ?
I'm working on a couchdb/python project and I'll try using couchapp. I've been working in python since 1995 so if you need a hand let me know...
Thanos