Ricardo Velhote [Wed, 26 May 2010 23:30:52 +0000 (00:30 +0100)]
add: sample usage of subactions (groups are broken for now!)
Ricardo Velhote [Wed, 26 May 2010 23:30:08 +0000 (00:30 +0100)]
add: handling of subactions in the toolbar
Ricardo Velhote [Wed, 26 May 2010 23:29:43 +0000 (00:29 +0100)]
add: more routing options to handle subactions (specially, for now, in the
Accounts Controller
Ricardo Velhote [Wed, 26 May 2010 22:20:42 +0000 (23:20 +0100)]
add: a library file with the SAMR Manager
chg: the Account controller now uses the SAMR Manager Library
Ricardo Velhote [Wed, 26 May 2010 22:11:42 +0000 (23:11 +0100)]
fix: only the first group was being considered because the whitespace
wasn't being trimmed
Ricardo Velhote [Tue, 25 May 2010 23:33:37 +0000 (00:33 +0100)]
chg: for now, when the user authenticates, the username and password
are stored in the session to be reused. must find a better and safer way!
Ricardo Velhote [Tue, 25 May 2010 23:09:52 +0000 (00:09 +0100)]
add: action to show only groups in the Account controller
Ricardo Velhote [Tue, 25 May 2010 23:09:23 +0000 (00:09 +0100)]
chg: groups and users popup now show Samba Groups and Users
Ricardo Velhote [Tue, 25 May 2010 22:40:25 +0000 (23:40 +0100)]
fix: the group description was not being saved when the group was first created
Ricardo Velhote [Tue, 25 May 2010 22:28:26 +0000 (23:28 +0100)]
fix: correct redirection after adding a new group
Ricardo Velhote [Tue, 25 May 2010 22:15:35 +0000 (23:15 +0100)]
fix: the conditions always evaluated to true
fix: save exception the groups weren't being added correctly to the group_list
chg: now names are used instead of IDs. we need to convert it into a Group object anyway so we might as well use the name
Ricardo Velhote [Tue, 25 May 2010 22:13:14 +0000 (23:13 +0100)]
fix: wrong parameter name
Ricardo Velhote [Sat, 22 May 2010 13:58:23 +0000 (14:58 +0100)]
chg: changed parameter names to coincide with the class members. maybe
it will make changing the parameters easier (when implemented)
Ricardo Velhote [Sat, 22 May 2010 12:32:05 +0000 (13:32 +0100)]
add: Hidden form parameters
Ricardo Velhote [Sat, 22 May 2010 11:40:03 +0000 (12:40 +0100)]
add: group list configuration (see issue #19)
Ricardo Velhote [Sat, 22 May 2010 11:32:48 +0000 (12:32 +0100)]
fix: wrong variable name caused the list element type to stop working
Ricardo Velhote [Sat, 22 May 2010 11:19:13 +0000 (12:19 +0100)]
fix: removed log message
Ricardo Velhote [Sat, 22 May 2010 10:59:18 +0000 (11:59 +0100)]
add: Field configuration for the User Account Form
Ricardo Velhote [Sat, 22 May 2010 10:13:37 +0000 (11:13 +0100)]
fix: pylons crash when the tab state cookie contained url characters such
as = or ?
Ricardo Velhote [Sat, 22 May 2010 09:46:09 +0000 (10:46 +0100)]
add: User account parameters for the edit form
Ricardo Velhote [Sat, 22 May 2010 09:43:40 +0000 (10:43 +0100)]
fix: wrong import
Jelmer Vernooij [Tue, 11 May 2010 08:15:13 +0000 (10:15 +0200)]
Fix imports.
--BZR--
revision-id: jelmer@samba.org-
20100509184117-ctp793g7gsjrlfng
property-branch-nick: trunk
property-rebase-of: jelmer@samba.org-
20100509184117-o2jp9wvj9tcvys9s
Ricardo Velhote [Wed, 12 May 2010 22:12:36 +0000 (23:12 +0100)]
add: remove group and user
Ricardo Velhote [Wed, 12 May 2010 21:18:32 +0000 (22:18 +0100)]
add: redirect (temporary) for the cancel action
fix: authentication is required for CRUD operations. for now it's hardcoded
Ricardo Velhote [Tue, 11 May 2010 22:48:36 +0000 (23:48 +0100)]
add: started working on the save action
add: task name in the group editing form
Ricardo Velhote [Tue, 11 May 2010 22:22:08 +0000 (23:22 +0100)]
add: Cancel action (unimplemented)
add: Hidden form fields representing the id and type of account
add: FormSubmit class
fix: Form ID
Ricardo Velhote [Tue, 11 May 2010 22:19:15 +0000 (23:19 +0100)]
chg: yaml configurations
Ricardo Velhote [Tue, 11 May 2010 22:11:31 +0000 (23:11 +0100)]
add: began action building for the most common tasks
Ricardo Velhote [Tue, 11 May 2010 22:11:10 +0000 (23:11 +0100)]
add: real parameter values
Ricardo Velhote [Tue, 11 May 2010 22:10:50 +0000 (23:10 +0100)]
fix/chg: Name => ID and, type parameter (it's in the action)
Ricardo Velhote [Tue, 11 May 2010 22:03:39 +0000 (23:03 +0100)]
add: added a definition (to_list) to allow the differentiation of LDB and Classic
backends when it comes to list value types. this definition will convert
from a string to a list
fix/chg: always pass a value to the put method
Ricardo Velhote [Tue, 11 May 2010 21:49:49 +0000 (22:49 +0100)]
fix: Removed the getting of the value from the put definition to allow more
controllers to use this funcionality.
Ricardo Velhote [Mon, 10 May 2010 22:09:52 +0000 (23:09 +0100)]
add: User Account parameters (just to make sure they are still working)
Ricardo Velhote [Mon, 10 May 2010 22:04:10 +0000 (23:04 +0100)]
add: configuration parameter files for groups and users
add: configuration parameters for groups
add: base form configuration
Ricardo Velhote [Mon, 10 May 2010 21:39:03 +0000 (22:39 +0100)]
add: yaml configuration for some new actions and action stubs
Ricardo Velhote [Mon, 10 May 2010 21:18:30 +0000 (22:18 +0100)]
add: user and group editing templates
Ricardo Velhote [Mon, 10 May 2010 21:15:30 +0000 (22:15 +0100)]
add: some todos for later
Ricardo Velhote [Mon, 10 May 2010 21:07:23 +0000 (22:07 +0100)]
chg: Moved the form fields definitions to a separate component file
chg: Moving the above mentioned definitions to a different file meant I needed
to include the file. I created a 'field' namespace for this.
Ricardo Velhote [Sun, 9 May 2010 20:50:59 +0000 (21:50 +0100)]
add: Pagination to Groups and Users listing
chg: moved the Showing x of x to the pagination mako template
Ricardo Velhote [Sun, 9 May 2010 15:01:24 +0000 (16:01 +0100)]
add: options area with filters
Ricardo Velhote [Sun, 9 May 2010 14:51:39 +0000 (15:51 +0100)]
add: Edit onclick. I should put this in a JS file
Ricardo Velhote [Sun, 9 May 2010 14:39:27 +0000 (15:39 +0100)]
add: Alternate row styles
fix: changed has-shares to not-empty to be more reusable
Ricardo Velhote [Sun, 9 May 2010 14:27:15 +0000 (15:27 +0100)]
add: Show Groups or Users depending on the action
fix: Table columns were ordered incorrectly
Ricardo Velhote [Sun, 9 May 2010 13:42:09 +0000 (14:42 +0100)]
fix: separated user and group listing for better control when it comes to
individual actions
Ricardo Velhote [Sun, 9 May 2010 13:38:37 +0000 (14:38 +0100)]
add: user and group listing in table format
Ricardo Velhote [Sun, 9 May 2010 13:19:02 +0000 (14:19 +0100)]
add: Copied Calin Crisan's Account Management class (and a couple of
helper classes) from his 2009 GSoC project. Perhaps they should be a
library of their own? I only edited the __init__ method to remove the
credentials parameter because, at this moment, I don't have access to
this data.
Ricardo Velhote [Sun, 9 May 2010 12:10:00 +0000 (13:10 +0100)]
fix: forgot transparency
Ricardo Velhote [Sun, 9 May 2010 11:59:18 +0000 (12:59 +0100)]
fix: updated fugue icons link
Ricardo Velhote [Sun, 9 May 2010 11:58:21 +0000 (12:58 +0100)]
add: new icons and updated configuration to use them
Ricardo Velhote [Sun, 9 May 2010 11:15:51 +0000 (12:15 +0100)]
add: Toolbar configuration
add: Base template for the controller
Ricardo Velhote [Sun, 9 May 2010 11:07:04 +0000 (12:07 +0100)]
add: action stubs
Ricardo Velhote [Sun, 9 May 2010 11:05:34 +0000 (12:05 +0100)]
add: Base yaml configuration
add: New imagens
Ricardo Velhote [Sun, 9 May 2010 10:58:12 +0000 (11:58 +0100)]
add: yaml configuration file
Ricardo Velhote [Sun, 9 May 2010 10:55:11 +0000 (11:55 +0100)]
add: create the Account Management controller
Ricardo Velhote [Sun, 2 May 2010 13:47:26 +0000 (14:47 +0100)]
add: the ability to remove users from the list popup
Ricardo Velhote [Sun, 2 May 2010 13:32:20 +0000 (14:32 +0100)]
fix: e.message was returning empty
Ricardo Velhote [Sun, 2 May 2010 12:43:23 +0000 (13:43 +0100)]
fix: don't attempt authentication if username or password are empty
rem: old code
Ricardo Velhote [Sat, 1 May 2010 22:22:46 +0000 (23:22 +0100)]
fix: when there are no shares don't highlight the table row
Ricardo Velhote [Sat, 1 May 2010 21:58:16 +0000 (22:58 +0100)]
fix: some colors were being lost on multi-tab validations
Ricardo Velhote [Sat, 1 May 2010 21:14:45 +0000 (22:14 +0100)]
fix: also change the link color
Ricardo Velhote [Sat, 1 May 2010 14:21:20 +0000 (15:21 +0100)]
add: When a form element fails validation its parent tab is given an error
color
fix: If the item required validation and was disabled because it's not
supported the error message would appear between the help and
disabled messages. Now it appears bellow both
Ricardo Velhote [Wed, 28 Apr 2010 23:23:16 +0000 (00:23 +0100)]
add: 'Save and Add another Share' button. It's missing a proper image but
for now this one is ok.
Ricardo Velhote [Wed, 28 Apr 2010 23:16:49 +0000 (00:16 +0100)]
fix: The share name and path are in the first tab. If they were empty (fail
validation) but we were on the second they they would not get validated
because the class is, by default, set to ignore hidden elements.
Ricardo Velhote [Wed, 28 Apr 2010 22:45:02 +0000 (23:45 +0100)]
add: remove error messages for elements that pass validation
chg: onElementFail callback name
Ricardo Velhote [Wed, 28 Apr 2010 22:34:31 +0000 (23:34 +0100)]
add: path name is required
Ricardo Velhote [Wed, 28 Apr 2010 22:32:30 +0000 (23:32 +0100)]
add: visual feedback on clientside validation
Ricardo Velhote [Tue, 27 Apr 2010 22:06:17 +0000 (23:06 +0100)]
Ignore the smb.conf.old file
Ricardo Velhote [Tue, 27 Apr 2010 22:05:38 +0000 (23:05 +0100)]
fix: "hosts allow" in the Classic backend returns a list
fix: small fixes due to backend specific return values
Ricardo Velhote [Tue, 27 Apr 2010 21:55:49 +0000 (22:55 +0100)]
add: Classic Backend tests. They are practically the same as the LDB.
implementing them.
fix: Wasn't checking if the share already exists befere trying to add a new
one. This caused share duplication in the Backend.
chg: Removed the file param from the MockShareParams
create_backend_object method. It's not required because the same file
will always be used. I had other plans for this but ended up not
Ricardo Velhote [Tue, 27 Apr 2010 21:45:59 +0000 (22:45 +0100)]
chg: Moved the share_name_exists to the classic backend because it
required more specific implementation. I'm now loading the configuration
file every time this method is called to make sure nothing was added
since the last time we loaded the file.
Ricardo Velhote [Tue, 27 Apr 2010 21:06:41 +0000 (22:06 +0100)]
fix: success message in homes share action
Ricardo Velhote [Sat, 24 Apr 2010 22:22:43 +0000 (23:22 +0100)]
add: hability to toggle homes shares in the toolbar. the button should
indicate the current state but I'm not sure how I will do that right now
Ricardo Velhote [Sat, 24 Apr 2010 21:52:22 +0000 (22:52 +0100)]
add: small title message
Ricardo Velhote [Sat, 24 Apr 2010 21:51:15 +0000 (22:51 +0100)]
add: javascript form validator. at this moment there is no feedback on the
error.
Ricardo Velhote [Sat, 24 Apr 2010 21:17:10 +0000 (22:17 +0100)]
fix: when the share is new and the user gives it an empty name redirect
to the add share screen instead of index
Ricardo Velhote [Sat, 24 Apr 2010 21:16:33 +0000 (22:16 +0100)]
add: updated mootools to 1.2.4
Ricardo Velhote [Sat, 24 Apr 2010 21:14:48 +0000 (22:14 +0100)]
add: resize icon to popups
Ricardo Velhote [Sat, 24 Apr 2010 14:26:01 +0000 (15:26 +0100)]
fix: I had corrected this earlier because of a test failure but after I rewrote
the tests it failed again in the same place. the logic was wrong.
Ricardo Velhote [Sat, 24 Apr 2010 14:24:46 +0000 (15:24 +0100)]
fix/chg/add: tests. the others were not working because I couldn't control
the order or execution so most of them failed. I tried a different approach
that works ok. this is something to improve
Ricardo Velhote [Sat, 24 Apr 2010 14:22:49 +0000 (15:22 +0100)]
removed
Ricardo Velhote [Sat, 24 Apr 2010 12:57:15 +0000 (13:57 +0100)]
fix: blergh
Ricardo Velhote [Sat, 24 Apr 2010 11:49:22 +0000 (12:49 +0100)]
add: preliminar tests for the ldb backend (not all pass at this moment) due
to test cleanup issues.
Ricardo Velhote [Sat, 24 Apr 2010 11:48:53 +0000 (12:48 +0100)]
fix: when editing a share and the old_name is empty force the old name
to the normal name.
fix: when modifying a share name (not new) it should check if the new name
already exists
Ricardo Velhote [Sat, 24 Apr 2010 11:43:48 +0000 (12:43 +0100)]
add: new test file location for both backends
Ricardo Velhote [Thu, 22 Apr 2010 21:25:15 +0000 (22:25 +0100)]
add: backend test case files in config file
Ricardo Velhote [Thu, 22 Apr 2010 21:24:54 +0000 (22:24 +0100)]
add: two sample test files for the backend test cases
Ricardo Velhote [Thu, 22 Apr 2010 21:24:37 +0000 (22:24 +0100)]
chg: reset tests on existing files
Ricardo Velhote [Thu, 22 Apr 2010 21:13:44 +0000 (22:13 +0100)]
add: test files for the share backends
Ricardo Velhote [Tue, 20 Apr 2010 22:11:21 +0000 (23:11 +0100)]
fix/chg: Classic backend is now in working condition with additional error
checking and class share_name/share_old_name dependency
Ricardo Velhote [Tue, 20 Apr 2010 21:39:02 +0000 (22:39 +0100)]
chg: changed parameter call to the backend store method
fix/chg: better error handling while adding a share to LDB
fix/chg: removed dependency of share_name and share_old_name in the
LDB backend class.
Ricardo Velhote [Tue, 20 Apr 2010 21:13:46 +0000 (22:13 +0100)]
add: function to get the share directly from the backend (only in LDB for
now) to avoid the list "cache"
chg: I'm removing the use of __share_name and share_old_name in the
Backend classes. It's unnecessary because the name is an optional
parameter for each of the method. Why not use it correctly?
chg: the type parameter in ShareError is now optional
chg/fix: better error handling in copy and remove
note: the classic backend is broken in this commit
Ricardo Velhote [Mon, 19 Apr 2010 23:07:13 +0000 (00:07 +0100)]
chg/fix: improved display of the current number of items being displayed
on each page
Ricardo Velhote [Mon, 19 Apr 2010 23:05:04 +0000 (00:05 +0100)]
fix: the current page wasn't being property highlighted
Ricardo Velhote [Mon, 19 Apr 2010 23:04:35 +0000 (00:04 +0100)]
fix: the number of pages was being rounded down which caused the
wrong number of pages to appear.
Ricardo Velhote [Mon, 19 Apr 2010 22:54:04 +0000 (23:54 +0100)]
add: method to get the first available share name when using copy
Ricardo Velhote [Mon, 19 Apr 2010 22:34:19 +0000 (23:34 +0100)]
add: improved error handling in copy action and LDB backend copying
add: ShareException class just for testing
Ricardo Velhote [Mon, 19 Apr 2010 21:58:43 +0000 (22:58 +0100)]
fix: better error handling while removing shares. includes multiple removal
success and error
Ricardo Velhote [Mon, 19 Apr 2010 21:37:31 +0000 (22:37 +0100)]
chg: better error and redirection handling in edit and save actions
Ricardo Velhote [Mon, 19 Apr 2010 21:00:35 +0000 (22:00 +0100)]
fix: updated readme
Ricardo Velhote [Sun, 18 Apr 2010 21:26:57 +0000 (22:26 +0100)]
fix: removed outline on element