Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-csv-import
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-csv-import
Commits
5042777f
Commit
5042777f
authored
Oct 27, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- CSV Import:
Added support for Cost Center parsing
parent
71a5facd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
intranet-csv-import-procs.tcl
tcl/intranet-csv-import-procs.tcl
+1
-1
import-im_project.tcl
www/import-im_project.tcl
+2
-2
No files found.
tcl/intranet-csv-import-procs.tcl
View file @
5042777f
...
...
@@ -215,7 +215,7 @@ ad_proc -public im_csv_import_parsers {
date_european
"European Date Parser (DD.MM.YYYY)"
date_american
"American Date Parser (MM/DD/YYYY)"
category
"Category Parser"
cost_center
"Cost Center"
cost_center
"Cost Center
Parser
"
}
}
default
{
...
...
www/import-im_project.tcl
View file @
5042777f
...
...
@@ -207,14 +207,14 @@ foreach csv_line_fields $values_list_of_lists {
set err
[
lindex
$result
1
]
if
{
""
!=
$err
}
{
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: Error parsing field='
[
set
$varname
]
' using parser '
$p
':<pre>
$err
</pre></font>
\n
"
ns_write
"<li><font color=brown>Warning: Error parsing field='
$varname
' using parser '
$p
':<pre>
$err
</pre></font>
\n
"
}
}
set
$varname
$res
}
}
err_msg
]}
{
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: Error parsing field='
[
set
$varname
]
' using parser '
$p
':<pre>
$err
_msg</pre></font>"
ns_write
"<li><font color=brown>Warning: Error parsing field='
$varname
' using parser '
$p
':<pre>
$err
_msg</pre></font>"
}
}
}
...
...
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