lp:~cmiller/desktopcouch/modules-sharpbang
- Get this branch:
- bzr branch lp:~cmiller/desktopcouch/modules-sharpbang
Branch merges
- Stuart Langridge (community): Approve
- Tim Cole (community): Approve
-
Diff: 27 lines (+0/-3)3 files modifieddesktopcouch/local_files.py (+0/-1)
desktopcouch/start_local_couchdb.py (+0/-1)
desktopcouch/stop_local_couchdb.py (+0/-1)
Related bugs
Bug #486797: some python modules have a shebang line | Low | Fix Released |
Related blueprints
Branch information
Recent revisions
- 107. By Chad Miller
-
Remove execute bits from modules in tree, and remove shell-python booting
magic. - 106. By Chad Miller
-
lintian interprets sharp-bang lines at the top of python modules as a
_error_, can-you-believe. These files are too useful to be neutered and moving
them out to bin is silly, so I changed the first code line to be a valid python
string and a valid shell expression that executes Python. This will ensure
that even without a sharp-bang line, the right interpreter is called. - 105. By Manuel de la Peña
-
Ensures that the method that test for the presence of the record does not just check if the field is present but ensures the value is correct.
- 104. By Manuel de la Peña
-
For start-up, loop over finding the port in case the port is not available when the PID is.
In pid-finding and port-finding loops, loop for exponentially longer times instead of many short periods, and quit totally after ~7 seconds for each.
- 103. By Chad Miller
-
Use an explicit test context for testing. Add an implicit context for normal usage.
Add test context to pairing test functions.
Add a context to the update_
design_ documents( ) function. Make it peek at the context data dir location explicitly. - 100. By Chad Miller
-
Don't remove the HTML file that bookmarks point to. A description of the problem is better than a file-not-found error message in the web browser. The problem is not the file missing, it's what caused the file to be missing.
- 99. By Rick McBride
-
Add an apport hook to gather logs and configuration information for a desktop couch instance for which a bug is being filed.
- 98. By Chad Miller
-
Add CouchDatabase methods, 1) report_changes(cb), which calls a function for each of the db changes since the last time it was run or since the Database object was created. 2) get_changes() that returns a list of dictionaries with the changes. They does not recheck the database if the last time it was run is less than (a configurable) number of seconds ago. If there is an exception in the callback, then the event is not consumed, and the last-time-check is not updated.
'report_changes(f)' is not a call-this-
function- on-any- change function, since that requires some assertion about your execution model that this library does not really want to enforce. A common use of this might be to add calling this function when your main loop is idle, e.g., glib.mainloop.
idle_add or twisted. task.looping_ call .
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:desktopcouch