lp:~cmiller/desktopcouch/modules-sharpbang

Created by Chad Miller and last modified
Get this branch:
bzr branch lp:~cmiller/desktopcouch/modules-sharpbang
Only Chad Miller can upload to this branch. If you are Chad Miller please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Chad Miller
Project:
desktopcouch
Status:
Merged

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.

102. By Chad Miller

Make tests runnable from setuptools' setup.py 'test' rule.

101. By Chad Miller

Add tests to exercise some code that is previously neglected by tests.

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
This branch contains Public information 
Everyone can see this information.

Subscribers