Age | Commit message (Collapse) | Author | Files | Lines |
|
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.
With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:
JSON/qooxdoo -> ldb browser
Derrell
(This used to be commit 2406af10791cd8545c598c8591a48de5515c7dc5)
|
|
(This used to be commit 802ede34e83014fe216a5b7bcdf18586327a8a09)
|
|
With ldbbrowse, you can issue searches or browse the database in tree format.
To try it, ensure that "make installswat" is done (it's run by "make install"
so you shouldn't have to do anything special). Run smbd and connect with your
browser to http://localhost:901/apps/samba/utils/ldbbrowse.html
(It looks great in firefox. There's some problem with the layout in IE.
Maybe if I get really really motivated one of these days, I'll look into that.)
There's lots more that could be done with it, but as an example of using
qooxdoo and JSON-RPC, I think it accomplishes its task.
Enjoy!
Derrell
(This used to be commit 0888c7098daefc23738dd47fe1c072516ba55feb)
|
|
Issues left for the enterprising developers:
- Selection of the ldb file to open. This version always browses sam.ldb.
- When issuing a search which returns a huge amount of data, firefox times
out while adding the data to the page. The ldb functions on the server
should be upgraded to allow providing a starting offset in the result set,
and a limit of how many results to return. The application can then issue
multiple requests if necessary, to limit the amount of processing needed
to handle any single result set.
Next step for me is to make it look more like a Samba application and less
like a qooxdoo example application. Per Tridge's request, I'll leave the
debug console on the page.
Derrell
(This used to be commit 41ed250e020a0860d1769a3144ec7a153f138b57)
|
|
(This used to be commit 7789ad2372ce5f6cca287bf31d9d08979112a8c4)
|
|
The 'Browse' tab is now doing something seemingly fairly reasonable. It's
entirely usable. Still pending is dealing with attribute values whose length
exceeds the width of the column (even if dynamic resizing of the column is
inadequate). A tooltip which pops up would be nice, but seems difficult to
achieve with the Table implementation since it's 'virtual' and the whole table
is one widget.
Derrell
(This used to be commit ec63bd551b69c751290cef3376e2d80dda80918a)
|
|
(This used to be commit 6536e5a3c0f2fd3c20099fc5a53345ceadc2b49f)
|
|
(This used to be commit 039069b3fd10e2ea614c385c6b432b235e1c226b)
|
|
This has the layout complete so anyone interested can see what a qooxdoo
application might look like. It doesn't yet issue any JSON-RPC calls to do
anything useful (that's next), and it still has the appearance of a qooxdoo
test rather than something unique to Samba. I'll adjust the appearance later.
This layout is loosely (or not so loosely) based on 'gq'. A few things in
this layout won't apply to an ldb browser, but they're there for the time
being anyway until I decide exactly what to do with them.
Derrell
(This used to be commit 0780cbcdcc7672932b055966a9d0480d2cd705b4)
|
|
example applications
(This used to be commit ff28ab7314ff1eebcd62f387678b816091af8121)
|