Chora check-in capability

"Schwentner, Jeffrey" <[email protected]>
Newsgroups gmane.comp.horde.chora
Message-ID <[email protected]>
I have added functionality in Chora which allows a user to check-in files.  I have also added the capability to download a zip file containing the latest revisions of the source.  I found the functionality to be very useful and would like to share it with the group.  

I had to modify/add the following files:
framework/vc/vc/cvs.php - Filter out locking information in checkout text.  Added directory zip function.
horde/chora/cvs.php - Add links to check-in new files or download repository.
horde/chora/locks.php - Script that locks and unlocks a CVS/RCS repository file.
horde/chora/download_dir.php - Script that recursively checks-out and compresses files for the current directory.
horde/chora/ci.php - Displays dialogue box for data entry of new file information or updates to existing files.
horde/chora/lib/ciLib.php - Library to support ci.php.  Also contains functions to add and check permissions for a specific repository directory (or file).
horde/chora/lib/zipfile.inc - Library to support compression.

I used permission / category classes to support user permissions with respect to location privileges.  I added two functions, addLocationPerms and getLocationPerms to set and check whether a user has _PERMS_EDIT access to a specific file or directory.  Syntax is as follows:

addLocationPerms(_PERMS_EDIT, 'ExampleRep', 'Dir', 'username');
- Gives a user ('username') check-in capability of the 'Dir' directory and all sub-directories and files in the 'ExampleRep' repository.

getLocationPerms('ExampleRep', 'Dir/file', 'username')
- Returns the permissions for the given user ('username') at the location 'Dir/file' in the repository 'ExampleRep'.

If interested, I can pass the modified/added files to the group so it can be torn apart (if necessary) and improved!  Just let me know where to send them.

Regards,

Jeff Schwentner
> Lockheed Martin Simulation, Training & Support
email: [email protected]

-- 
Chora mailing list - Join the hunt: http://horde.org/bounties/#chora
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.