Changeset 2c0227baca594585f82a1ef01f203a1e306d7b42
- Timestamp:
- 01/28/07 13:14:05
(2 years ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1169986445 +0100
- git-parent:
[ddf4857ac73e09383fa1f16ba00d8760bcd684eb]
- git-author:
- Christopher Jung <bktheg@web.de> 1169986445 +0100
- Message:
Ein paar Aufrufe verzweigen nun auf Context
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r60e85e2 |
r2c0227b |
|
| 270 | 270 | */ |
|---|
| 271 | 271 | public User getUser() { |
|---|
| 272 | | return getActiveUser(); |
|---|
| | 272 | return getContext().getActiveUser(); |
|---|
| 273 | 273 | } |
|---|
| 274 | 274 | |
|---|
| … | … | |
| 481 | 481 | |
|---|
| 482 | 482 | String content = ""; |
|---|
| 483 | | if( requireValidSession && (getActiveUser() == null) && "".equals(getString("sess")) ) { |
|---|
| | 483 | if( requireValidSession && (getContext().getActiveUser() == null) && |
|---|
| | 484 | getString("sess").length() == 0 ) { |
|---|
| 484 | 485 | addError( "FATAL ERROR: Es wurde keine session-id übergeben" ); |
|---|
| 485 | 486 | } |
|---|
| … | … | |
| 498 | 499 | } |
|---|
| 499 | 500 | if( templateEngine != null ) { |
|---|
| 500 | | if( getActiveUser() != null ) { |
|---|
| 501 | | getActiveUser().setTemplateVars( templateEngine ); |
|---|
| | 501 | if( getContext().getActiveUser() != null ) { |
|---|
| | 502 | getContext().getActiveUser().setTemplateVars( templateEngine ); |
|---|
| 502 | 503 | } |
|---|
| 503 | 504 | } |
|---|
| … | … | |
| 522 | 523 | addError("Es ist ein Fehler in der Action '"+action+"' aufgetreten:\n"+t.toString()+"\n\n"+stacktrace); |
|---|
| 523 | 524 | |
|---|
| 524 | | Common.mailThrowable(e, "DSGenerator Invocation Target Exception", "Action: "+action+"\nActionType: "+actionType+"\nUser: "+(getActiveUser() != null ? getActiveUser().getID() : "none")+"\nQuery-String: "+getContext().getRequest().getQueryString()); |
|---|
| | 525 | Common.mailThrowable(e, "DSGenerator Invocation Target Exception", |
|---|
| | 526 | "Action: "+action+"\n" + |
|---|
| | 527 | "ActionType: "+actionType+"\n" + |
|---|
| | 528 | "User: "+(getContext().getActiveUser() != null ? getContext().getActiveUser().getID() : "none")+"\n" + |
|---|
| | 529 | "Query-String: "+getContext().getRequest().getQueryString()); |
|---|
| 525 | 530 | if( getDatabase().isTransaction() ) { |
|---|
| 526 | 531 | getDatabase().tRollback(); |
|---|
| … | … | |
| 532 | 537 | catch( Exception e ) { |
|---|
| 533 | 538 | addError("Es ist ein Fehler beim Aufruf der Action '"+action+"' aufgetreten:\n"+e.toString()); |
|---|
| 534 | | Common.mailThrowable(e, "DSGenerator Exception", "Action: "+action+"\nActionType: "+actionType+"\nUser: "+(getActiveUser() != null ? getActiveUser().getID() : "none")+"\nQuery-String: "+getContext().getRequest().getQueryString()); |
|---|
| | 539 | Common.mailThrowable(e, "DSGenerator Exception", |
|---|
| | 540 | "Action: "+action+"\n" + |
|---|
| | 541 | "ActionType: "+actionType+"\n"+ |
|---|
| | 542 | "User: "+(getContext().getActiveUser() != null ? getContext().getActiveUser().getID() : "none")+"\n" + |
|---|
| | 543 | "Query-String: "+getContext().getRequest().getQueryString()); |
|---|
| 535 | 544 | if( getDatabase().isTransaction() ) { |
|---|
| 536 | 545 | getDatabase().tRollback(); |
|---|