Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
psets
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
psets
Commits
8bfc13f3
Commit
8bfc13f3
authored
Dec 01, 2007
by
podesign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- updates, moved excercises into the folders
parent
6601a5c7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
4 deletions
+84
-4
index.adp
1-quotations/index.adp
+22
-0
index.adp
2-notes/index.adp
+27
-0
list-notes.tcl
2-notes/list-notes.tcl
+1
-2
index.adp
index.adp
+34
-2
No files found.
1-quotations/index.adp
View file @
8bfc13f3
...
...
@@ -53,6 +53,28 @@ This very first Problem Set teaches you the basics of OpenACS:
<td>(<a href="../show-source?file_name=1-quotations/list-quotes.adp">adp source</a>)</td>
</tr>
<tr valign=top>
<td colspan=4>
<br>
<h1>Excercises</h1>
<ul>
<li>Exercise 1.1 Add a new field:<br>
Extend quotations by a new next field called "source"
and add this field to all relevant pages.
<br>
<li>Exercise 1.2 XML Export:<br>
Export quotations in XML format. Check Google for suitable XML standards.
<br>
<li>Exercise 1.3 Implement Searching:<br>
Add a small form at the top of list-quotes.tcl that takes a single query
word from the user. Build a target for this form that returns all quotes
containing the specified word. Your search should be case-insensitive and
also look through the authors column.
<br>
</ul>
</td>
</tr>
</table>
<br>
...
...
2-notes/index.adp
View file @
8bfc13f3
...
...
@@ -64,6 +64,33 @@ including database table and PlPg/SQL database API.</td>
<td></td>
</tr>
<tr valign=top>
<td colspan=5>
<br>
<h1>Excercises</h1>
<ul>
<li>Exercise 2.1 Extend Notes:<br>
Add a new Notes type "skype" to store Skype IDs.
<br>
<li>Exercise 2.2 Advanced Formatting:<br>
Modify the way Notes are rendered and show the note as
a HTTP link if the note is a URL or an Email and as skype:xxxxx if the
note is a skype ID.
<br>
<li>Exercise 2.3 Relating Notes to Other Objects: <br>
Extend the Notes object by a field "related_object_id" in order to
associate a note with other OpenACS/ ]project-open[ object.
Check the "categories" for a reference. Extend the /acs-admin/users/one
page with a list of all notes related to that user and allow to create
new notes in that page.
<br>
</ul>
</td>
</tr>
</table>
<br>
...
...
2-notes/list-notes.tcl
View file @
8bfc13f3
...
...
@@ -63,7 +63,7 @@ template::list::create \
}
creation_date
{
label
"Date"
link_url_eval
{[
export_vars -base new
{
note_id
object_id
return_url
}]}
link_url_eval
{[
export_vars -base new
{
note_id
{
form_mode display
}
return_url
}]}
}
creation_user
{
label
"By User"
...
...
@@ -71,7 +71,6 @@ template::list::create \
}
note
{
label
"Note"
link_url_eval
{[
export_vars -base new
{
note_id
{
form_mode display
}
return_url
}]}
}
}
...
...
index.adp
View file @
8bfc13f3
...
...
@@ -12,8 +12,40 @@ development style.
</pre>
<table width=600>
<tr valign=top>
<td>
<ul>
<li><a href="1-quotations">Problem Set 1 "Quotations": Basic HTML and
SQL</a><br>
This example represents a kind of "Hello World" with a basic way of
working directly with HTML and SQL.
The example demonstrates that you can work with OpenACS/ ]project-open[
just like with any other online platform.<br>
However, this style of programming is heavily deprecated now in favor
of more powerful constructs demonstrated in the examples further below.
<br>
</ul>
</td>
<td>
</td>
</tr>
<tr valign=top>
<td>
<ul>
<li><a href="1-quotations">Problem Set 1 "Quotations": Basic HTML and SQL</a>
<li><a href="2-notes">Problem Set 2 "Notes": Automated Forms and Lists</a>
<li><a href="2-notes">Problem Set 2 "Notes": Automated Forms and Lists</a><br>
This example introduces the concepts of "OpenACS Object", "Form Builder"
and "List Builder".
These techniques basicly eliminate the need to write HTML tags and
allow the developer to define forms and list in a declarative style.
</ul>
</td>
<td>
</td>
</tr>
</table>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment