[dev] Datatree patch

Ben Chavet ben at chavet.net
Tue Feb 15 19:59:51 PST 2005


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1463811839-600609253-1108526391=:29265
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

I've been trying to figure out how to get a list of users who have 
datatree objects in a given group for quite a while now.  The attached 
patch is the only way I can think of to get this data.

My motivation is to be able to present a list of users who have galleries 
in ansel.  I'm trying to clean up ansel's UI, and this would be a good 
step in that direction.  I'm sure this could be useful in other 
applications at some point, too.

Please chew on it a bit and let me know if this is worth building on.

--Ben
---1463811839-600609253-1108526391=:29265
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sql.php.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.61.0502152159510.29265 at pokey.chavet.net>
Content-Description: 
Content-Disposition: attachment; filename="sql.php.patch"

SW5kZXg6IHNxbC5waHANCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBm
aWxlOiAvcmVwb3NpdG9yeS9mcmFtZXdvcmsvRGF0YVRyZWUvRGF0YVRyZWUv
c3FsLnBocCx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTU5DQpkaWZmIC11
IC1yMS4xNTkgc3FsLnBocA0KLS0tIHNxbC5waHAJMTMgSmFuIDIwMDUgMTU6
NTk6MTQgLTAwMDAJMS4xNTkNCisrKyBzcWwucGhwCTE2IEZlYiAyMDA1IDAz
OjU0OjMxIC0wMDAwDQpAQCAtNzcsNiArNzcsMjIgQEANCiAgICAgfQ0KIA0K
ICAgICAvKioNCisgICAgICogUmV0dXJucyBhIGxpc3Qgb2YgYWxsIHVzZXJz
IHdobyBoYXZlIG9iamVjdHMgaW4gdGhpcyBncm91cC4NCisgICAgICoNCisg
ICAgICogQHJldHVybiBhcnJheSAgVGhlIHVzZXIgSURzDQorICAgICAqLw0K
KyAgICBmdW5jdGlvbiBnZXRVc2VycygpDQorICAgIHsNCisgICAgICAgICRx
dWVyeSA9IHNwcmludGYoJ1NFTEVDVCBESVNUSU5DVCB1c2VyX3VpZCBGUk9N
ICVzIFdIRVJFIGdyb3VwX3VpZCA9ICVzJywNCisgICAgICAgICAgICAgICAg
ICAgICAgICAgJHRoaXMtPl9wYXJhbXNbJ3RhYmxlJ10sDQorICAgICAgICAg
ICAgICAgICAgICAgICAgICR0aGlzLT5fZGItPnF1b3RlKCR0aGlzLT5fcGFy
YW1zWydncm91cCddKSk7DQorDQorICAgICAgICBIb3JkZTo6bG9nTWVzc2Fn
ZSgnU1FMIFF1ZXJ5IGJ5IERhdGFUcmVlX3NxbDo6Z2V0VXNlcnMoKTogJyAu
ICRxdWVyeSwgX19GSUxFX18sIF9fTElORV9fLCBQRUFSX0xPR19ERUJVRyk7
DQorDQorICAgICAgICByZXR1cm4gJHRoaXMtPl9kYi0+Z2V0Q29sKCRxdWVy
eSk7DQorICAgIH0NCisNCisgICAgLyoqDQogICAgICAqIExvYWQgKGEgc3Vi
c2V0IG9mKSB0aGUgZGF0YXRyZWUgaW50byB0aGUgJF9kYXRhIGFycmF5Lg0K
ICAgICAgKg0KICAgICAgKiBAYWNjZXNzIHByaXZhdGUNCg==

---1463811839-600609253-1108526391=:29265--


More information about the dev mailing list