/[A3C]/lib/A3C
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Log of /lib/A3C

View Directory Listing Directory Listing


Sticky Revision:

Revision 199 - Directory Listing
Modified Tue Jun 17 23:04:29 2008 UTC (11 years, 1 month ago) by dpavlin
we don't really want to mess with instances here

Revision 197 - Directory Listing
Modified Tue Jun 17 21:32:12 2008 UTC (11 years, 1 month ago) by dpavlin
implemented StrixSelectSite action with two drop-down
menus (which are kept in sync) to select site for
which to show navigation

Revision 196 - Directory Listing
Modified Tue Jun 17 21:29:04 2008 UTC (11 years, 1 month ago) by dpavlin
id is used internally by Jifty for primary key

Revision 195 - Directory Listing
Modified Tue Jun 17 21:28:28 2008 UTC (11 years, 1 month ago) by dpavlin
we don't need ajax_validates

Revision 194 - Directory Listing
Modified Tue Jun 17 21:27:54 2008 UTC (11 years, 1 month ago) by dpavlin
whitespace

Revision 191 - Directory Listing
Modified Tue Jun 17 14:28:10 2008 UTC (11 years, 1 month ago) by dpavlin
added has_sites to StrixInstace which returns collection of all StrixSite for that instance

Revision 190 - Directory Listing
Modified Tue Jun 17 14:27:00 2008 UTC (11 years, 1 month ago) by dpavlin
added StrixSite local model to hold all strix sites

Revision 189 - Directory Listing
Modified Tue Jun 17 10:15:13 2008 UTC (11 years, 1 month ago) by dpavlin
move select link to left of list

Revision 187 - Directory Listing
Modified Mon Jun 16 23:24:25 2008 UTC (11 years, 1 month ago) by dpavlin
create links to strix in single place

Revision 186 - Directory Listing
Modified Mon Jun 16 22:56:14 2008 UTC (11 years, 1 month ago) by dpavlin
I feel good enought for this version to have it bump [0.05]

- dispatcher will automatically take first selected instance
- check if we can connect to database when adding instances to selection
- removed bunch of debug warn output
- display validation error messages in selector
- show selected instance in selector
- variable instance is now used for current user instance, and op_instace for selector
- dim layout link

Revision 183 - Directory Listing
Modified Mon Jun 16 21:33:59 2008 UTC (11 years, 1 month ago) by dpavlin
stirx instances selection is now usable

- show instances added to buffer on each page
- click on instance name will select that instance for operation

Revision 181 - Directory Listing
Modified Mon Jun 16 20:08:28 2008 UTC (11 years, 1 month ago) by dpavlin
make ldap2model use JiftyModelCreator and minor tweaks all over the place

Revision 174 - Directory Listing
Modified Mon Jun 16 16:48:16 2008 UTC (11 years, 1 month ago) by dpavlin
big rename of StrixSite to StrixInstance, added sitemap and layout

rename creates huge diff, which is rather unfortunate, but we needed
to get terminology stright: sites are part of strix instances

Revision 172 - Directory Listing
Modified Mon Jun 16 13:32:01 2008 UTC (11 years, 1 month ago) by dpavlin
simple sitemap for hard-coded instance and category

Revision 167 - Directory Listing
Modified Sun Jun 15 23:19:02 2008 UTC (11 years, 1 month ago) by dpavlin
move Strix specific stuff to own package

Revision 166 - Directory Listing
Modified Sun Jun 15 22:26:07 2008 UTC (11 years, 1 month ago) by dpavlin
cleanup templates to look somewhat nicer
(and have more consistent naming)

Revision 165 - Directory Listing
Modified Sun Jun 15 22:03:02 2008 UTC (11 years, 1 month ago) by dpavlin
and we need to render_as_classical_menu to make it work

Revision 162 - Directory Listing
Modified Sun Jun 15 17:47:39 2008 UTC (11 years, 1 month ago) by dpavlin
added encoding to A3C::SQL so we can connect to databases which doesn't
have default UTF-8 encoding (like strix doesn't)

Revision 161 - Directory Listing
Modified Sun Jun 15 16:11:17 2008 UTC (11 years, 1 month ago) by dpavlin
Send SQL query to any strix site (possibly over ssh tunnel)

Revision 160 - Directory Listing
Modified Sun Jun 15 16:10:13 2008 UTC (11 years, 1 month ago) by dpavlin
BUG FIX: die on errors (it will be reported as action error as it should)

Revision 159 - Directory Listing
Modified Sun Jun 15 14:40:50 2008 UTC (11 years, 1 month ago) by dpavlin
added _column_names accessor to A3C::SQL

Revision 158 - Directory Listing
Modified Sun Jun 15 11:03:50 2008 UTC (11 years, 1 month ago) by dpavlin
fix model security

Revision 157 - Directory Listing
Modified Sun Jun 15 10:51:57 2008 UTC (11 years, 1 month ago) by dpavlin
create kind of copy/paste buffer which enables you to select some strix sites
and perform operations on them together (no ops implemented in this commit)

Revision 155 - Directory Listing
Modified Sat Jun 14 22:04:11 2008 UTC (11 years, 1 month ago) by dpavlin
minor tweaks

Revision 153 - Directory Listing
Modified Sat Jun 14 12:31:35 2008 UTC (11 years, 1 month ago) by dpavlin
split strix sites name differences into it's own page

Revision 152 - Directory Listing
Modified Tue Jun 3 19:40:12 2008 UTC (11 years, 1 month ago) by dpavlin
fix pod

Revision 149 - Directory Listing
Modified Tue Jun 3 15:32:14 2008 UTC (11 years, 1 month ago) by dpavlin
added bunch of fields and convert to table


Revision 148 - Directory Listing
Modified Tue Jun 3 10:23:52 2008 UTC (11 years, 1 month ago) by dpavlin
support escaped quotes in quoted strings
(used for site names in our configurations)


Revision 145 - Directory Listing
Modified Sat May 31 16:30:09 2008 UTC (11 years, 1 month ago) by dpavlin
Added dbh accessor to support connecting to any database

Revision 142 - Directory Listing
Modified Fri May 30 23:47:29 2008 UTC (11 years, 1 month ago) by dpavlin
added strix menu and basic view to report name differences

Revision 140 - Directory Listing
Modified Fri May 30 22:02:19 2008 UTC (11 years, 1 month ago) by dpavlin
fix encoding

on-disk php files are in ISO-8859-2, so support that and require
that PostgreSQL encoding is UTF-8

Revision 139 - Directory Listing
Modified Fri May 30 21:16:08 2008 UTC (11 years, 1 month ago) by dpavlin
Added Strix site config importer

When invoked like:

./bin/import-strix.pl

it reports something like:

INFO - 539 Strix sites imported

Not bad :-)

Revision 138 - Directory Listing
Modified Fri May 30 21:02:04 2008 UTC (11 years, 1 month ago) by dpavlin
cleanup, some documentation, seems to work

Revision 137 - Directory Listing
Modified Fri May 30 20:56:18 2008 UTC (11 years, 1 month ago) by dpavlin
document why are we sticky

Revision 136 - Directory Listing
Modified Fri May 30 20:53:14 2008 UTC (11 years, 1 month ago) by dpavlin
For the first time, we can parse actual strix php configuration

This required following in PHP parser:
- ignore include function
- implement true and false PHP constants
- protect @ in double quoted strings to make perl happy again

Diff looks much bigger because of identing fixes
(tab size 4 instead of spaces, yes evil, but I like it)

Revision 134 - Directory Listing
Modified Fri May 30 20:04:43 2008 UTC (11 years, 1 month ago) by dpavlin
added pod

Revision 133 - Directory Listing
Modified Fri May 30 20:04:23 2008 UTC (11 years, 1 month ago) by dpavlin
Added Parse::RecDescent PHP parser based on PHP::Include

PHP::Include puts new variables in current scope, while we
prefer to get single hash with all defined values.

Revision 131 - Directory Listing
Modified Mon May 26 18:12:15 2008 UTC (11 years, 1 month ago) by dpavlin
- validate uidNumber and gitNumber
- remove debug culutter

Revision 128 - Directory Listing
Modified Mon May 26 17:51:43 2008 UTC (11 years, 1 month ago) by dpavlin
Override hrEduOrg->create to accept arrays as values and convert
them into ' <*> ' delimited strings, just like ldap sync does
and test that functionality

Revision 127 - Directory Listing
Modified Sun May 25 16:43:36 2008 UTC (11 years, 1 month ago) by dpavlin
- fix URLS to absolute
- new organization form
- some css work

Revision 126 - Directory Listing
Modified Thu May 22 20:51:31 2008 UTC (11 years, 1 month ago) by dpavlin
use data about total entries from pager instead of collection
because from collection we get just number of results on this
page

Revision 125 - Directory Listing
Modified Thu May 22 20:48:42 2008 UTC (11 years, 1 month ago) by dpavlin
added custom CRUD for search of organization and search while
preserving most of Jifty ajax goodnes by overriding just a few
templates from jifty's Jifty::View::Declare::CRUD

Revision 124 - Directory Listing
Modified Tue May 20 09:49:27 2008 UTC (11 years, 1 month ago) by dpavlin
tune model (add indexes, distinct)

Revision 123 - Directory Listing
Modified Tue May 20 09:48:31 2008 UTC (11 years, 1 month ago) by dpavlin
use new model

Revision 122 - Directory Listing
Modified Tue May 20 09:47:59 2008 UTC (11 years, 1 month ago) by dpavlin
fix views for new models

Revision 121 - Directory Listing
Modified Thu May 15 19:18:45 2008 UTC (11 years, 2 months ago) by dpavlin
added depriciation warnings

Revision 120 - Directory Listing
Modified Thu May 15 19:08:08 2008 UTC (11 years, 2 months ago) by dpavlin
and use new models

Revision 119 - Directory Listing
Modified Thu May 15 19:07:38 2008 UTC (11 years, 2 months ago) by dpavlin
added auto-generated models with:

  ./bin/ldap2model.pl --model hrEduPerson --mixin posixAccount --mixin wtAdmin
  ./bin/ldap2model.pl --model hrEduOrg --mixin dcObject --mixin posixAccount


Revision 109 - Directory Listing
Modified Wed May 14 16:48:13 2008 UTC (11 years, 2 months ago) by dpavlin
convert repeatable arguments into single value before
inserting into database

Revision 106 - Directory Listing
Modified Thu May 1 17:06:02 2008 UTC (11 years, 2 months ago) by dpavlin
massive re-structuring to enable models specified in configuration file

- version bump [0.04]
- SyncOrganization now accept org_uid as argument
- objectClass(es) for person and organization are now in config.yml
  as well as link between them (filter on person)
- config.yml is now checked for validity in A3C::LDAP

Revision 104 - Directory Listing
Modified Thu May 1 14:52:48 2008 UTC (11 years, 2 months ago) by dpavlin
renamed semi-internal function

Revision 101 - Directory Listing
Modified Thu May 1 12:59:02 2008 UTC (11 years, 2 months ago) by dpavlin
fallback to same model name and objectClass if no mapping is defined
(for models created by bin/ldap2model.pl)

Revision 94 - Directory Listing
Modified Wed Apr 30 17:23:46 2008 UTC (11 years, 2 months ago) by dpavlin
use vocabulary where applicable (with fixes for known bugs)

Revision 93 - Directory Listing
Modified Wed Apr 30 17:23:21 2008 UTC (11 years, 2 months ago) by dpavlin
support usage in array context so we can add arbitrary data around original one

Revision 91 - Directory Listing
Modified Wed Apr 30 16:15:25 2008 UTC (11 years, 2 months ago) by dpavlin
if key and value is different, prepare { display => 'xx', value => 'yy' }

Revision 89 - Directory Listing
Modified Tue Apr 29 21:43:36 2008 UTC (11 years, 2 months ago) by dpavlin
move away from XML::Simple to XML::Rule so we can preserve original order

Allthough, a bit more chatty that XML::Simple implementation, this one has
much better ratio of dark magic vs short notation, IMHO

Revision 88 - Directory Listing
Modified Tue Apr 29 19:54:52 2008 UTC (11 years, 2 months ago) by dpavlin
first try at integrating AAAIEduHr into A3C:

fetch XML from http://shema.aaiedu.hr/
cache it locally (to reduce network traffic and provide offline development) in
JSON format (human readable)

Revision 83 - Directory Listing
Modified Sat Apr 12 10:29:30 2008 UTC (11 years, 3 months ago) by dpavlin
added schools by counties (returns wrong number of municipalities, but
that's becase of noisy data)

Revision 82 - Directory Listing
Modified Sat Apr 12 10:28:38 2008 UTC (11 years, 3 months ago) by dpavlin
added DESTROY so that AUTOLOAD won't trigger on it

Revision 80 - Directory Listing
Modified Fri Apr 11 23:24:59 2008 UTC (11 years, 3 months ago) by dpavlin
added Town model with data

Revision 79 - Directory Listing
Modified Fri Apr 11 23:23:42 2008 UTC (11 years, 3 months ago) by dpavlin
example SQL query using new class

Revision 78 - Directory Listing
Modified Fri Apr 11 23:22:03 2008 UTC (11 years, 3 months ago) by dpavlin
pissed by Jifty::Collection way of group_by, I opted to write
small wrapper class which will turn SQL query into Collection-like
object with proper accessors

Revision 77 - Directory Listing
Modified Fri Apr 11 22:02:09 2008 UTC (11 years, 3 months ago) by dpavlin
added few columns, fixed labels

Revision 76 - Directory Listing
Modified Fri Apr 11 16:50:37 2008 UTC (11 years, 3 months ago) by dpavlin
fix indent


Revision 75 - Directory Listing
Modified Fri Apr 11 15:57:36 2008 UTC (11 years, 3 months ago) by dpavlin
deduce model class

Revision 74 - Directory Listing
Modified Fri Apr 11 15:55:03 2008 UTC (11 years, 3 months ago) by dpavlin
speed up load_or_create for A3C::Model::Person

Revision 73 - Directory Listing
Modified Fri Apr 11 15:49:50 2008 UTC (11 years, 3 months ago) by dpavlin
use direct accessors instead of __value which fixes encoding problems

Revision 72 - Directory Listing
Modified Thu Apr 10 23:16:56 2008 UTC (11 years, 3 months ago) by dpavlin
index page with non-working group by query

Revision 71 - Directory Listing
Modified Thu Apr 10 21:33:37 2008 UTC (11 years, 3 months ago) by dpavlin
- change URL scheme
- added some desriptions in h1
- make search action sticky, so that search parametars are left in form after submit

Revision 70 - Directory Listing
Modified Thu Apr 10 20:26:45 2008 UTC (11 years, 3 months ago) by dpavlin
added generic currnet_user_can implementation for models so that logged
users can actually see data :-)

Revision 69 - Directory Listing
Modified Thu Apr 10 20:08:01 2008 UTC (11 years, 3 months ago) by dpavlin
replaced Jifty::Plugin::AuthLDAPLogin with internal Jifty::Plugin::Authentication::Ldap

Revision 67 - Directory Listing
Modified Thu Apr 10 00:08:37 2008 UTC (11 years, 3 months ago) by dpavlin
require LDAP plugin which supports SSL and enable it

Revision 66 - Directory Listing
Modified Wed Apr 9 23:14:47 2008 UTC (11 years, 3 months ago) by dpavlin
rename User model to Person

Revision 65 - Directory Listing
Modified Wed Apr 9 22:53:31 2008 UTC (11 years, 3 months ago) by dpavlin
require ldap login


Revision 59 - Directory Listing
Modified Wed Apr 2 17:02:43 2008 UTC (11 years, 3 months ago) by dpavlin
fix message


Revision 58 - Directory Listing
Modified Tue Apr 1 19:59:50 2008 UTC (11 years, 3 months ago) by dpavlin
tweaks in message and organization name

Revision 57 - Directory Listing
Modified Tue Apr 1 19:44:31 2008 UTC (11 years, 3 months ago) by dpavlin
and now: design! (OK, just one CSS class, but anyway)

Revision 56 - Directory Listing
Modified Tue Apr 1 19:44:02 2008 UTC (11 years, 3 months ago) by dpavlin
tune human-readable names

Revision 55 - Directory Listing
Modified Tue Apr 1 19:39:00 2008 UTC (11 years, 3 months ago) by dpavlin
- added SyncOrganization action with tests and GUI

Revision 54 - Directory Listing
Modified Tue Apr 1 19:27:06 2008 UTC (11 years, 3 months ago) by dpavlin
do canonicalization on load_or_create (so that fixing invalid dates would work)

Revision 53 - Directory Listing
Modified Tue Apr 1 17:32:59 2008 UTC (11 years, 3 months ago) by dpavlin
added filter arg to add additional filter to search

Revision 52 - Directory Listing
Modified Tue Apr 1 15:53:03 2008 UTC (11 years, 3 months ago) by dpavlin
better human-readable organization name which include also name and location

Revision 50 - Directory Listing
Modified Mon Mar 31 22:01:09 2008 UTC (11 years, 3 months ago) by dpavlin
added dispatcher hook to add menu entry

Revision 49 - Directory Listing
Modified Mon Mar 31 22:00:20 2008 UTC (11 years, 3 months ago) by dpavlin
simple search through local users (using auto-generated SearchModel action)

Revision 47 - Directory Listing
Modified Mon Mar 31 21:11:45 2008 UTC (11 years, 3 months ago) by dpavlin
make optional parametars named

Revision 45 - Directory Listing
Modified Sun Mar 30 22:29:42 2008 UTC (11 years, 3 months ago) by dpavlin
- added all fields from ldap to models
- models now have informative name accessor

Revision 44 - Directory Listing
Modified Sun Mar 30 21:59:34 2008 UTC (11 years, 3 months ago) by dpavlin
- removed limit for syncing
- specify model to sync from command line


Revision 42 - Directory Listing
Modified Sun Mar 30 16:58:21 2008 UTC (11 years, 3 months ago) by dpavlin
- move all LDAP-related logic in A3C::LDAP
- remove logic to link User and Organization
- ldap search base is now configurable in config.yml

Revision 41 - Directory Listing
Modified Sun Mar 30 15:23:35 2008 UTC (11 years, 3 months ago) by dpavlin
document internal method

Revision 40 - Directory Listing
Modified Sun Mar 30 15:02:55 2008 UTC (11 years, 3 months ago) by dpavlin
Turn A3C::LDAP into real object which looks more like Jifty::Collection

Revision 39 - Directory Listing
Modified Sun Mar 30 13:32:29 2008 UTC (11 years, 3 months ago) by dpavlin
fix syntax

Revision 38 - Directory Listing
Modified Sun Mar 30 13:32:12 2008 UTC (11 years, 3 months ago) by dpavlin
pod fix

Revision 37 - Directory Listing
Modified Sun Mar 30 02:33:01 2008 UTC (11 years, 3 months ago) by dpavlin
simple Template::Declare view to display LDAP dump

Revision 36 - Directory Listing
Modified Sun Mar 30 00:02:18 2008 UTC (11 years, 3 months ago) by dpavlin
move LDAP stuff in own package

Revision 35 - Directory Listing
Modified Tue Mar 18 19:58:34 2008 UTC (11 years, 4 months ago) by dpavlin
validate JMBG (REAL JMBGs :-)

Revision 33 - Directory Listing
Modified Tue Mar 18 19:22:30 2008 UTC (11 years, 4 months ago) by dpavlin
ignore case for none date (seen none and NONE)

Revision 32 - Directory Listing
Modified Tue Mar 18 19:03:53 2008 UTC (11 years, 4 months ago) by dpavlin
- move organisations in own model
- more general ldap2model sub will try to fill model with ldap entry data

Revision 29 - Directory Listing
Modified Tue Mar 18 16:15:16 2008 UTC (11 years, 4 months ago) by dpavlin
give up on virtual columns (for now)


Revision 27 - Directory Listing
Modified Mon Mar 17 21:30:59 2008 UTC (11 years, 4 months ago) by dpavlin
thanks to zostay on #jifty I know know that correct syntax is
"is virtual" instead of "type is 'virtual'"


Revision 25 - Directory Listing
Modified Mon Mar 17 13:06:40 2008 UTC (11 years, 4 months ago) by dpavlin
ignore objectClass by popular demand (mvela)


Revision 23 - Directory Listing
Modified Mon Mar 17 13:02:50 2008 UTC (11 years, 4 months ago) by dpavlin
added few more columns to match ldap


Revision 21 - Directory Listing
Modified Thu Mar 13 19:51:45 2008 UTC (11 years, 4 months ago) by dpavlin
fix cn label


Revision 18 - Directory Listing
Modified Thu Mar 13 19:26:56 2008 UTC (11 years, 4 months ago) by dpavlin
remove Jifty::Plugin::User::Mixin::Model::User and
implement it ourselfs, with few tweaks for other
mixins (email* accessors)


Revision 16 - Directory Listing
Modified Thu Mar 13 18:07:28 2008 UTC (11 years, 4 months ago) by dpavlin
- added uid, hrEduPersonUniqueID columns
- try to map LDAP mail into email column
- use Jifty::DBI::Filter::Date to get DateTime object from model
- hrEduPersonExpireDate support NONE as 2042-12-30


Revision 15 - Directory Listing
Modified Thu Mar 13 17:33:45 2008 UTC (11 years, 4 months ago) by dpavlin
work a bit more on model: valid syntax produce dropdowns, some reorder and sane default values

Revision 14 - Directory Listing
Modified Thu Mar 13 16:38:33 2008 UTC (11 years, 4 months ago) by dpavlin
encoding of file is utf-8, so tell it to perl


Revision 12 - Directory Listing
Modified Thu Mar 13 16:34:47 2008 UTC (11 years, 4 months ago) by dpavlin
render addresses as textarea

Revision 11 - Directory Listing
Modified Thu Mar 13 14:22:53 2008 UTC (11 years, 4 months ago) by dpavlin
Copied from: lib/CAdmin revision 4
rename application from CAdmin -> A3C, version bump [0.02]


Revision 4 - Directory Listing
Modified Mon Mar 10 00:19:52 2008 UTC (11 years, 4 months ago) by dpavlin
Original Path: lib/CAdmin
crude user model

Revision 2 - Directory Listing
Modified Sun Mar 9 22:39:58 2008 UTC (11 years, 4 months ago) by dpavlin
Original Path: lib/CAdmin
jifty model --name User

Revision 1 - Directory Listing
Added Sun Mar 9 01:42:55 2008 UTC (11 years, 4 months ago) by dpavlin
Original Path: lib/CAdmin
create skeleton of application with

$ jifty app --name CAdmin


  ViewVC Help
Powered by ViewVC 1.1.26