Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-xmlrpc
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
intranet-xmlrpc
Commits
679864f1
Commit
679864f1
authored
Aug 08, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added dummy files for call-test
parent
c4822da2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
123 additions
and
4 deletions
+123
-4
call-test.adp
www/call-test.adp
+44
-0
call-test.tcl
www/call-test.tcl
+65
-0
index.adp
www/index.adp
+2
-2
login-test.adp
www/login-test.adp
+12
-2
No files found.
www/call-test.adp
0 → 100644
View file @
679864f1
<master>
<property name="title">@page_title@</property>
<property name="main_navbar_label">admin</property>
<h1>@page_title@</h1>
<form action="call-test-2" method=POST>
<%= [export_form_vars url token timestamp user_id] %>
<table cellpadding=2 cellspacing=0 border=0>
<tr class=roweven>
<td valign=top>URL:</td>
<td>@url@</td>
</tr>
<tr class=rowodd>
<td valign=top>User ID:</td>
<td>@user_id@</td>
</tr>
<tr class=roweven>
<td valign=top>Timestamp:</td>
<td>@timestamp@</td>
</tr>
<tr class=rowodd>
<td valign=top>Token:</td>
<td>@token@</td>
</tr>
<tr class=roweven>
<td valign=top>Object Type:</td>
<td>
<select name=object_type>
@object_type_options;noquote@
</select>
</td>
</tr>
<tr>
<td></td>
<td><input type=submit></td>
</tr>
</table>
</form>
@error;noquote@
www/call-test.tcl
0 → 100644
View file @
679864f1
ad_page_contract
{
Autenticate the user and issue an auth-token
that needs to be specified for every xmlrpc-request
@author Frank Bergmann
(
frank.bergmann@project-open.com
)
}
{
user_id
timestamp
token
{
url
"/RPC2/"
}
}
# ------------------------------------------------------------
# Security & Defaults
# ------------------------------------------------------------
set
return_url
"
[
ad_conn url
]
?
[
ad_conn query
]
"
set
page_title
"Call-Test"
set
context_bar
[
im_context_bar
$page
_title
]
set
current_user_id
[
im_xmlrpc_get_user_id
]
# ------------------------------------------------------------
# Get the list of object types from the target system
# ------------------------------------------------------------
set
error
""
set
query_results
[
list
]
if
{[
catch
{
set authinfo
[
list
\
[
list
-string token
]
\
[
list
-int
$user
_id
]
\
[
list
-string
$timestamp
]
\
[
list
-string
$token
]
\
]
set query_results
[
xmlrpc::remote_call
\
http://172.26.0.3:30038/RPC2
\
sqlapi.object_types
\
-array
$authinfo
]
}
err_msg
]}
{
append error
$err
_msg
}
set
object_type_options
""
set
status
[
lindex
$query
_results 0
]
set
object_types_list
[
lindex
$query
_results 1
]
if
{
"ok"
!=
$status
}
{
set error
"
$status
"
append error
[
lindex
$query
_results 1
]
}
else
{
foreach object_type_record
$object
_types_list
{
set object_type
[
lindex
$object
_type_record 0
]
set pretty_name
[
lindex
$object
_type_record 1
]
append object_type_options
"<option value=
\"
$object
_type
\"
>
$pretty
_name</option>
\n
"
}
}
www/index.adp
View file @
679864f1
...
...
@@ -52,8 +52,8 @@
<h1>Available Tests</h1>
<ul>
<li><a href="select-test?@vars@">Select</a>
<li><a href="call-test?@vars@">Call</a>
<li><a href="select-test?@vars@">Select
Test Wizard
</a>
<li><a href="call-test?@vars@">Call
Test Wizard
</a>
</ul>
...
...
www/login-test.adp
View file @
679864f1
...
...
@@ -4,15 +4,25 @@
<h1>@page_title@</h1>
<p>
This form has already been set to a testing user.<br>
You just need to press Submit:
<ul>
<li>Email: "ssales@tigerpond.com"</li>
<li>Passwd: "sally"</li>
</ul>
<br>
</p>
<form action="login-test-2" method=POST>
<table cellpadding=1 cellspacing=0 border=0>
<tr>
<td valign=top>Email:</td>
<td><input type=text name=email value="
you@yourdomain
.com" size=30></td>
<td><input type=text name=email value="
ssales@tigerpond
.com" size=30></td>
</tr>
<tr>
<td valign=top>Password:</td>
<td><input type=password name=pass value="" size=30></td>
<td><input type=password name=pass value="
sally
" size=30></td>
</tr>
<tr>
<td></td>
...
...
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