• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix a couple broken links

5.0 merge

- adding ad-one to view/edit/delete Ads. Need to take its functionality

and move to /lib as a template so it can be used in www and www/admin.

file ad-one.adp was initially added on branch oacs-5-0.

file ad-one.tcl was initially added on branch oacs-5-0.

- Fixed bug in caterogies where it gathered custom fields belonging

to children of a category, when it should get from itself and any

parent category.

- Fixed noquote bug in index.

  1. … 1 more file in changeset.
- Fixed bug in categories cookie trail.

- Updated documentation.

  1. … 1 more file in changeset.
- Added -limit switch to get_assigned and get_unassigned ads to allow

for restricted number of ads to pull.

- Index page now uses list-builder (thanks Lars!!). I have to figure out

how to have dynamically-built -elements for LB.

  1. … 2 more files in changeset.
merge of changes between oacs-5-0-0b4 and oacs-5-0-0-final to HEAD

  1. … 284 more files in changeset.
- Fixed bug in ads query

- Fixed wrong call to Tcl functions

- Fixed link in index.adp

Many of these problems exist because I lost code in a hard drive crash

a few months ago when developing the package.

  1. … 1 more file in changeset.
Got rid of spaces after / in lines. Fixes #1348.

- Added missing files.

- Bumped package version

- Fixed create scripts

- Fixed callback function

- Fixed field-addedit and field-delete

  1. … 4 more files in changeset.
- Many fixes.

- More API refactoring (needs more).

- ad-new not working because I need to figure out a problem with default

values.

  1. … 7 more files in changeset.
- More per-category fields changes.

- Get rid of fields.xql and use API.

  1. … 5 more files in changeset.
- Realized I made a boo-boo by adding the keyword_id column that allows

per-category custom fields to the wrong table. Moved it to ca_attributes

and changed pl/pgsql and tcl api's accordingly.

- Create index in ca_attributes to improve speed. Still need to assess

where else we need indices.

- Changed API a bit. A couple functions named _exists_p were not boolean

at all, hence confusing.

- Updated user/admin files to reflect changes.

- Adding of custom fields now lets site-wide admin add site-wide custom

fields, otherwise only package-wise custom-fields.

- Improved fields UI. Needs more work.

- Updated Tcl callbacks.

    • -15
    • +1
    ./admin/field-addedit-postgresql.xql
  1. … 12 more files in changeset.
- Retrieving ads now returns all the custom fields for the category

asked for.

- New proc categories::get_custom_fields to return list of custom fields.

- Adding of custom fields now completely integrated with per-category

custom fields, plus improved UI.

    • -2
    • +61
    ./admin/field-addedit-postgresql.xql
  1. … 4 more files in changeset.
- Adding per-category custom fields modifications to admin UI.

- Improved UI for adding fields (still needs some work).

- Improved help texts.

- Added other options to ease adding of custom fields.

- Still need to add keyword_id.

- Fixed left-over from reversing widget-procs.tcl

- Moved attribute instantiation to a Tcl callback (because we now

support per-category custom fields)

- Working on www/index.tcl

  1. … 6 more files in changeset.
- Updated TODO.

- Thanks to the invaluable help from daveb, custom fields now working,

including updating of values, which wasn't working in the original version,

so fixed that bug too.

- Problems with ad_form (custom element not visible)

- Modified get_widget_param to generate ad_form statements instead of

template::element::create in attempt to fix the problem. Worked partially.

- Modified ad-one accordingly.

Now the problem seems to be that a custom element is available in the

-edit_request block, but for some reaons that element (which was

added through ad_form -extend) is not available in the -edit_data block.

Does anyone know why??

  1. … 3 more files in changeset.
- Fixed bug I introduced in ::ads::get

- Per-category custom field support added.

- ad-one and ad-new doing the right thing with custom fields.

  1. … 3 more files in changeset.
- Continuing to improve UI

- ad-delete now ad_form with confirmation

- ad-one handles deletion correctly

- Updated TODO.

  1. … 2 more files in changeset.
- Updated user categories page. Not final.

- Moved posgresql-specific queries to field-addedit-postgresql.xql

- Update TODO in documentation.

    • -0
    • +16
    ./admin/field-addedit-postgresql.xql
- Added procs to get context trail for ads.

- ad_one displays and edits ads.

- ad-delete with confirmation (still needs work).

- categories.* now link ads to ad-one

- Everything ad_form'ized.

  1. … 3 more files in changeset.
- Fixing ads::new

- Reformatted classified-ads-procs.tcl for legibility

- ad-new will be merged into ad-one which will take care of adding,

editing and displaying ads.

- Improved category administration.

  1. … 5 more files in changeset.
- Updated .info file

- Converted category-new and ad-new to use ad_form, hence getting rid of

a couple FIXME's.

  1. … 1 more file in changeset.
- Made assigned and unassigned ads return published date.

- Placing new ads now lets you know which category it's going into.

- More improvements to field-addedit

- Updated TODO

- Removed category-assign-2, since it had no point and to have

consistent behavior with category-remove

- Much better admin UI to manage categories and ads.

  1. … 2 more files in changeset.
- Improving categories UI.

- Improved documentation.

- Improved how ads are assigned to categories.