Commit Graph

370 Commits

Author SHA1 Message Date
Brad Fitzpatrick e9991b1702 Barely tested App Engine stat handler support.
Change-Id: Ia8abc53e3f538198773940f9515ff551e97eb8de
2011-10-06 23:24:40 -07:00
Brad Fitzpatrick e69c74af54 Untested App Engine storage receive support.
Change-Id: Ib0e884857872064b9886808bd0f83c69d8f3aa77
2011-10-06 18:10:29 -07:00
Brad Fitzpatrick 2600d227eb introduce ContextWrapper to get App Engine its Context.
Change-Id: I789440f01a42b1172b6c70ff14f00ff5bd45786a
2011-10-06 17:44:30 -07:00
Brad Fitzpatrick b5cb593bf3 Start of an App Engine blob storage implementation.
Just a shell for now, but wired up.
2011-10-05 14:34:55 -07:00
Brad Fitzpatrick f522a6f588 More camlistore on App Engine work; starting to work. 2011-10-04 16:39:02 -07:00
Brad Fitzpatrick 3f5631d2d8 serverconfig: push abs path business to caller 2011-10-04 16:22:12 -07:00
Brett Slatkin b2c08dda1d camlistored appengine: App Engine symlink farm work, r59 hell
Change-Id: Id97f446c859ddd9caf4c5441b3cd1d2998f34d66
2011-09-30 05:43:56 +00:00
Brett Slatkin 008738ed7a Start of camlistored on App Engine
Change-Id: Iaae1ba699875c4a56f3e0f93dea6e6c91fe844fe
2011-09-30 05:25:21 +00:00
Brett Slatkin b967f04d4e camlistored: Refactor main() into tiny main and loader library
This will make running on App Engine a lot easier, letting us share code.

Change-Id: Ibe989387d44d94869c31c8306683e49af261496a
2011-09-30 05:07:04 +00:00
Brett Slatkin 8a96dc4037 camlistored: Refactoring main function into smaller pieces.
Change-Id: I66cc428c961f4b0582f20d906da4cb621a7e3aaa
2011-09-30 04:18:12 +00:00
Brad Fitzpatrick 8c72348a19 Rename Stat->StatBlobs, Remove->RemoveBlobs; add StatReceiver.
Also, return missing errors in google storage stubs.

Change-Id: I5b168bbcd8a2996e3db4ffc35d2ac06006b3a2d3
2011-09-28 19:37:28 -07:00
Brad Fitzpatrick 31488a1d5f Issue 43: clean and rename the "files" table and its columns
Part of Issue 17 (the files/bytes change)

Details:
http://code.google.com/p/camlistore/issues/detail?id=43
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ic6ebc018edf51f92bf2063c42fa19f80fe597181
2011-09-13 19:56:58 -07:00
Brad Fitzpatrick c0ea8dbcb1 Issue 17: file vs. bytes schema change
Details:
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ia1237952a2a66f1dcacd00c5c28eb360d9f1d1d7
2011-09-13 11:57:50 -07:00
mpl b0dda5e86f Various renamings. dropped getTagged.
Change-Id: I20982074071b819110fe07cb795ffcb7d6c8560e
2011-09-04 00:48:49 +02:00
mpl aa83d21048 added search by title,
merged with search by tag.
added general search.

Change-Id: I98244e62dbd8a4c75527c4a029bd78f8978cbadc
2011-09-02 13:45:55 +02:00
Brad Fitzpatrick 88c89757e1 gofixes for latest Go changes
Change-Id: Ib7b3aea5adff0e1683bcb421cc3549c31d9fe174
2011-08-25 19:14:47 +04:00
mpl d0d97a8b69 keep the url bar in sync when searching
Change-Id: Ibcf6edbd519bc4cb031ed1dba46555596ed3e0a3
2011-08-11 00:26:42 +02:00
mpl 4f4955dcc3 add search results to existing collection
Change-Id: I3211397acf161270caa51b809c081a05c70059c2
2011-08-07 21:59:33 +02:00
mpl 1b4f3fe243 started on issue 29:
-send searches on search.html
-added checkall tickbox

Change-Id: I28d5b61bedda2c1d9fb168a65b5b4d9a0b9cb3de
2011-08-06 15:27:32 +02:00
mpl 6498b71329 create permanodes from the filetree browser + ui details
Change-Id: I7d03f5891a3749cd904c1817dd63b2af4f883967
2011-07-22 18:31:22 +02:00
Brad Fitzpatrick fc154b900e schema: make DirectoryEntry return errors instead of nil
Change-Id: I7965e35fef75e54023903044f0b8150e4420a653
2011-07-18 19:06:56 -07:00
Brad Fitzpatrick 41c701d1f7 Merge "browsing a (permanoded) dir continuation of https://camlistore.org/r/36" 2011-07-19 01:47:18 +00:00
mpl 42dcd20ccb browsing a (permanoded) dir
continuation of https://camlistore.org/r/36

Change-Id: Idd4977bb5f4d3c5bf80831ffa4d09085485da0f0
2011-07-18 15:49:31 +02:00
Brad Fitzpatrick a0dcdfc74d Fix URL opening on windows.
Change-Id: I802b8d9a41a551c8af10d848ba9e60439a3a00d2
2011-07-17 17:57:48 -07:00
Brad Fitzpatrick 95a98d991d open admin UI on windows
Change-Id: I0df5042ddd9bb9058660468b862916a97b86c280
2011-07-17 17:30:40 -07:00
Lindsey Simon 5118bf7c68 Edit title works now.
Change-Id: Iedeab4ce600425f23c3c6e84415e7f914d8c6715
2011-07-11 13:09:25 -07:00
Lindsey Simon a461c76ccd Photo gallery stylin
Change-Id: Ibfe50a8d58ee2bb0f1f85b45a1b617026f154a71
2011-07-11 13:09:25 -07:00
mpl bce36761a1 undo merging of change If30e0a9613db42a94feda66bb225a844de6d1839 because still a wip
Change-Id: Id25f5aa0ae63b9d41d8a3ac9fd832194eafd07ee
2011-07-11 10:51:40 +02:00
Brad Fitzpatrick bf2f700445 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-07-10 19:33:46 -07:00
Brad Fitzpatrick 093d3b81bb Remove some square crop debugging.
Change-Id: Icc5cc7af44a01c6b6c8b41a9db247f494179c758
2011-07-10 19:33:34 -07:00
mpl ad49800183 hacky sketch for browsing a dir
Change-Id: If30e0a9613db42a94feda66bb225a844de6d1839
2011-07-10 12:30:29 -07:00
mpl 431af4fcf2 Contain global vars in CamliHome
Change-Id: I9ee3d1bdea870b0f8fae6db24aed546cabce02b8
2011-07-10 14:31:25 +02:00
Robert Hencke b886a74d39 make govet happier
Change-Id: Iee52786e9f68f0a0f94dd70fa7917cf24d54e8c3
2011-07-09 16:11:20 -05:00
Brad Fitzpatrick 93bb2c28c8 Somewhat broken image thumbnail squaring code.
Currently crashes on resize (due to recent core library image changes?)

Change-Id: I7887f79cb42f1be10384081e3c4faf20decf7279
2011-07-08 18:14:18 -07:00
Brad Fitzpatrick 16cc888842 Add configuration discovery to publish handler.
This permits metadata edits on the publish page if the
viewer is the owner.

(e.g. tagging, titling photos...)

Change-Id: I08b098eaae92f5b629b02707d67bec23a705c29f
2011-07-08 15:05:46 -07:00
Brad Fitzpatrick 711bcfbd44 Fix image resizing bug.
If the image was already smaller than the treshold, it was
trying to re-use a buffer that was already consumed.

Change-Id: Ifb61fe0bae401462188a8e08ddf2937c7080c4df
2011-07-08 13:33:55 -07:00
Brad Fitzpatrick 41ecf43eb0 publish: let js & css files be configurable
Temporary hack to unblock Lindsey

Fixes (partially) http://code.google.com/p/camlistore/issues/detail?id=26

Change-Id: I9541d62622116bd30ce7d7e5507a4808089fe6d7
2011-07-08 10:03:53 -07:00
Brad Fitzpatrick 18addb2c26 Let all handlers be able to be disabled in config file
Fixes http://code.google.com/p/camlistore/issues/detail?id=24

Change-Id: Ia54815f70c62955c4abe442237b35e4ef6113448
2011-07-08 09:08:41 -07:00
Brad Fitzpatrick 6fe189a4cd publishing: new URLs, tests. Yay photo galleries.
Change-Id: I9081b49faf95f5193945032cbc6711f412bca198
2011-07-06 18:38:27 -07:00
Brad Fitzpatrick 5acac08a6f Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-07-06 16:36:50 -07:00
Brad Fitzpatrick 94242a9ac4 more publish path tests.
Change-Id: Ieeea2d76a476bc169f4fd3f962c18b0e3896719d
2011-07-06 16:33:31 -07:00
mpl c190805c93 bugfix: array -> element in showTaggedPermanodes
Change-Id: I62656958ee22ebd6dfabbeb46c52326f433b0653
2011-07-07 00:42:37 +02:00
mpl bdd3304c69 fix typo in camliSigDiscovery
Change-Id: Iee5a6a8ced27bccd39ab1912ed3f262ace14793e
2011-07-07 00:08:32 +02:00
mpl ef215f1203 create collection from tag search
Change-Id: I541837b86a39818df7373daa4dbbfbfe97cf5cfc
2011-07-06 22:09:54 +02:00
Brad Fitzpatrick 40c4e2e1f0 Start of publish tests.
Change-Id: I0fe2d03942c25d0bf28ba334568781a55324f013
2011-07-06 11:59:50 -07:00
Brad Fitzpatrick a477909f09 publish: support /mxxx subresources. aka HTML pages for permanode members. aka photo one-up pages from galleries.
Change-Id: I404e836a728048631c6149ef76eb6d7014ec7978
2011-07-05 17:27:10 -07:00
Brad Fitzpatrick ebaf8b563e publish: static file support. and ditch camli/misc/vfs now that it's in Go's pkg http.
Change-Id: I5bf87d3ee305173c722fab6d9f1568a7c1be081a
2011-07-05 12:10:35 -07:00
mpl 3a60067733 escape fileName
Change-Id: I747833a7144b0ae86624626d89a7c4d634034b7a
2011-07-04 22:23:14 +02:00
mpl db3ea3a4d6 first gallery draft
Change-Id: Iab293a89f395ec0113ca33693539365c7a7be3e8
2011-07-04 18:27:14 +02:00
Brad Fitzpatrick 18dd23f58d Some UI type work, and show thumbnails nicer.
Change-Id: Iaf151de73f518323cc64ec2a836f0805cb05193e
2011-07-03 15:24:58 -07:00
Brad Fitzpatrick 2c126a4841 Photo gallery thumbnails.
Change-Id: I71a628057ff790928e96909512e43d2997a76f85
2011-07-03 13:33:56 -07:00
Brad Fitzpatrick 0cfede3c93 Move UI thumbnail handler off into separate ImageHandler
Change-Id: I1b82dab2bf8342887453a89ac058e76222f3b43b
2011-07-03 13:33:41 -07:00
Brad Fitzpatrick 182a058232 publish: serve subresource files (e.g. gallery members), with access control
Change-Id: I9f91b596b145c83bb026ba93becb5174480acadc
2011-07-03 12:28:39 -07:00
Brad Fitzpatrick c201c98959 split off download handler code from the UIHandler.
Change-Id: Ifb0e80419f8712087ad9cad8214af330c7af8420
2011-07-03 10:53:02 -07:00
Brad Fitzpatrick 9de129e71c more publish cleanup
Change-Id: I9f326d91bb65533c535486f1df3b4d19aa91cfee
2011-07-03 10:18:54 -07:00
Brad Fitzpatrick 78078701d0 publish: start of file resource downloads, later thumbnails.
Change-Id: Ida5b009c11d359887edad7612aeec5dab96447e4
2011-07-02 23:32:42 -07:00
Brad Fitzpatrick 5b3a4e4d00 publish cleanup, add publishHttpRequest type.
Change-Id: I187aaaffb7abf75e83b68b25be442c2806cfcad5
2011-07-02 23:02:11 -07:00
Brad Fitzpatrick f3e409a15c publish cleanup
Change-Id: I81c5296acf3d3b7951782c5417348952902721cf
2011-07-02 18:29:57 -07:00
Brad Fitzpatrick 6179e508e3 publish: show title, members, include javascript blob metadata
start of awesomeness.

Change-Id: I45d63b04fa223b9aafceb9452b179e4ddc52bce5
2011-07-02 17:16:30 -07:00
Brad Fitzpatrick 66c0e430d0 UI: handle roots in the permanode page, show attribute debug at bottom.
Change-Id: Id95b478b7a8c1f3825187ea7b291331be4dbe3f5
2011-07-02 10:36:32 -07:00
Brad Fitzpatrick 5b583ee6e8 Add forgotten tag -> camliTag rename.
Change-Id: I70ae2610131981c40710728e3c1b6f1fe232f805
2011-07-02 10:35:46 -07:00
Brad Fitzpatrick 76b446ad40 When bootstrapping camliRoot publish nodes, set a title for the UI.
Change-Id: I2aad15e9fce6ac1e26b1f8f5ba45241983f6caca
2011-07-02 10:35:19 -07:00
Brad Fitzpatrick 024e801ca7 gofmt the whole tree
Change-Id: Ic1b3dd12a4ede83b299dcf51f342e72d4f8700da
2011-07-02 09:09:50 -07:00
Brad Fitzpatrick 08b8ba8570 On publish page, dump Describe response JSON.
Change-Id: I4e7aa9e12a78f53008873067116b5991f07a7b30
2011-07-02 09:06:34 -07:00
mpl 05c18e873e search for permanodes with the given tag(s)
Change-Id: Ibbe0163da522698c253615a26d4201a7e28348de
2011-07-02 17:16:19 +02:00
Brad Fitzpatrick 97141d4d27 Merge "ui: Linkify paths on permanode page." 2011-07-01 21:34:06 +00:00
Daniel Erat 5b84668e1d ui: Linkify paths on permanode page.
Change-Id: I056896715b174bd3abd91799a86c73f3a8d83d3f
2011-07-01 21:31:41 +00:00
Brad Fitzpatrick d304cb7a42 Merge "Implemented config file includes." 2011-07-01 20:34:12 +00:00
Daniel Erat 80d4e8912a server: Support deleting paths.
Add an "active" column to the indexer's path table and use
it to track deletion of path attributes.

Change-Id: I579d53a80302d0f7ecc51b5c49913cd23814ce73
2011-07-01 19:45:03 +00:00
Brad Fitzpatrick d572f898f7 search/publich: rename PathLookup to PathsLookup, add PathLookup
Change-Id: If6804af2229885cfa22d67d608d17e600d7402f3
2011-06-30 14:36:07 -07:00
Iain Peet 0ca7712691 Implemented config file includes.
I've implemented the previously stubbed out "_file" config expression.  The root
JSON object of the included file becomes the value of the field.  In addition to
searching the CWD and the config dir, the include will search directories listed
in the CAMLI_INCLUDE_PATH environment variable.  The include path is useful
because it gives us the ability to have default configs in git which can be
overridden by custom configs which are provided in another path directory which
gets searched first.

I ended up working on this because, as I was thinking about how to approach
supporting Google Storage, I realized that we would need to have secrets in
includes; this would be a pain when combined with the current configs and
runscripts in GIT.  So, one thing lead to another, and now this is done.

Change-Id: Ib256859326dfceefed90d0fadf83a76adffd538b
2011-06-30 14:21:26 -04:00
Brad Fitzpatrick a251f4064c search/publish: Add PathLook, wire up to publish handler.
Change-Id: I8645c54adbc6d84c18ecc814ca1966113da32d85
2011-06-27 18:42:00 -07:00
Brad Fitzpatrick 40739efa6b search + UI support for finding paths of a permanode
Change-Id: Iae9cfed38660204cf7e85342cd951d542a7258a2
2011-06-25 17:50:38 -07:00
Brad Fitzpatrick 47000868f5 UI: for publishing: let your create root path claims.
Change-Id: Icbe64995d3123190b1679583b8dff9b8427d4f10
2011-06-24 10:34:10 -07:00
Brad Fitzpatrick bf28e7e6e5 Add FileReader onerror handler
Chrome 14.0.797.0 (Official Build 89638) dev has a FileReader bug, btw.  Fixed in 798.

Change-Id: Ie370a368be0ad8e923354f6f02a0cc55705b4642
2011-06-23 18:26:27 -07:00
Brad Fitzpatrick 23ff0a071f publish work: optionally create publish root permanodes+claims on start
Change-Id: I8659e977cea8872443ff2b311a7d0d8a2804c269
2011-06-23 12:12:37 -07:00
Brad Fitzpatrick 12cdf34ea3 Start of publish handler creating its root permanode.
Change-Id: Iedefee0650bd250933e104328023c24e40a94bf6
2011-06-22 22:26:11 -07:00
Brad Fitzpatrick 1f39a91eee Relegate camli/search to camli/search/recent
Change-Id: I7f76db980fe1788a6d0ac556e8176bc83cd6828f
2011-06-22 21:59:17 -07:00
Lindsey Simon 3f7f7afd82 UI: Sexiness all around.
* Adds camli.css
* Updates permanode after mutations (tags, members)
* Inline member delete.

Change-Id: I5525e622a5872afa704ea367bc2264c702c7de43
2011-06-22 18:38:58 -07:00
Lindsey Simon 3ee6467176 Adding padding to the drop target in the UI.
Testeroo.

Change-Id: Icdeedd7687e715e3071f40ebc86490fc95ee6b9f
2011-06-22 15:55:54 -07:00
Brad Fitzpatrick 7b36cfad94 UI: start of publish URL suffix HTML
Change-Id: I3bf9105a3bfc540710f2ef64fec98485b391d260
2011-06-19 14:52:36 -07:00
Brad Fitzpatrick fc9bf8f21f Always send long keyId in jsonsign discovery.
Change-Id: Ic61923268337536b84203a1b11bb2f5b6b7cd457
2011-06-19 14:51:30 -07:00
Brad Fitzpatrick 4915f6aee8 include publish roots in discovery response
Change-Id: I726462e83be9d93fa446e28a7a81410a38acc260
2011-06-19 14:12:56 -07:00
Brad Fitzpatrick ec817d3c0f prettier discovery debug output
Change-Id: I6a3a8e9370526dc0fd550d09a737844c7f32f767
2011-06-19 13:36:40 -07:00
Brad Fitzpatrick c32fec03e1 rename input element; missing from earlier renames.
Change-Id: I6bfce54ee1213943d6ba20528f0b67f32617b2cf
2011-06-19 13:31:44 -07:00
Brad Fitzpatrick 2790963643 More publish work, making UI handler aware of publish roots.
Change-Id: I9cbb00aa3506cece8cf3d7a7b11d445662c4873e
2011-06-19 13:09:43 -07:00
Brad Fitzpatrick ba467698a3 remove UI staticFiles config option, no longer needed.
Change-Id: I7c28a7bbd0eea4a38fce8865db9380a5dab6a949
2011-06-19 12:28:29 -07:00
Brad Fitzpatrick bd15b4a4c2 Serve UI files from binary's embedded copy.
Change-Id: Ibb7902381f80111c943897e82e1eaa2b0ee7fc2c
2011-06-18 12:01:34 -07:00
Brad Fitzpatrick 81547a9eb6 Support for embedding static files (html/js) into the resulting binary.
Also build system changes for start of move to camlistore.org/* namespace
for Go packages.

Not yet wired up to ui.go.

Potential changes required for Go's http package first:
http://codereview.appspot.com/4629047/

Change-Id: I3ae264a5401d3a41e0b6e42b12010f19a9c9dcf7
2011-06-17 14:13:01 -07:00
Brad Fitzpatrick 2520fc8eec Merge "use thumbnail in blobinfo" 2011-06-17 07:31:56 -07:00
mpl 9f32c111e5 use thumbnail in blobinfo
Change-Id: I48722b88ec4f2c80b689034df1c0e3fd5132b36c
2011-06-17 07:30:46 -07:00
Brett Slatkin 58bb35939e beginning of setting URL mount points for permanodes; nothing working yet
Change-Id: I9c33d67121e101369cdd797ef3b1c0ef74c8bdb0
2011-06-16 21:24:59 -07:00
Brad Fitzpatrick 6e388994da Merge "Start of publish handler." 2011-06-16 20:55:45 -07:00
Daniel Erat 3e4cb09ef8 Merge "ui: Add support for setting camliAccess attr on permanodes." 2011-06-16 20:49:40 -07:00
Daniel Erat b1e1193ca6 ui: Add support for setting camliAccess attr on permanodes.
The attribute can be set to "public" to share to everyone or deleted to
keep the permanode private.

Change-Id: I075dd7cc5fb6c3726083ae065282178dd7ae99a3
2011-06-16 20:48:12 -07:00
Brad Fitzpatrick 0d7581ede6 Start of publish handler.
Change-Id: I229c9e00a19aa985050373beda696c5468a94105
2011-06-16 20:48:06 -07:00
Brad Fitzpatrick 91db635396 Fix thumbnail handler 2011-06-16 19:31:36 -07:00
mpl 34c776c81c thumbnail support
Change-Id: Ie0ee67ce278c1d9790c43a9270fc909dd6e68923
2011-06-15 10:42:18 +02:00
Brad Fitzpatrick a57466fe82 Use blob title on index page too. 2011-06-12 10:06:49 -07:00
Brad Fitzpatrick f6fa8fd6d7 UI: show titles that describe returns now 2011-06-12 10:01:56 -07:00