Now that the some of TeamMentor’s TBot pages are controlled via the user data repository, this post shows how a change to one of the TBot RazorSharp scripts is propagated from the local dev box into a live qa server.
A personal blog about: transforming Web Application Security into an 'Application Visibility' engine, the OWASP O2 Platform, Application/Data interoperability and a lot more
Showing posts with label RazorSharp. Show all posts
Showing posts with label RazorSharp. Show all posts
Tuesday, 2 April 2013
Thursday, 21 March 2013
Using RazorSharp page to create CSV list of TeamMentor users
One of the feature requests for the 3.3. release of TM was to have a CSV exported list of users (see Provided CSV of user accounts for Tom)
In the previous version of TM adding this feature would required a number of server-side+GUI code changes, or the use of ASPX pages (which I specifically didn't want to use).
But since 3.3 supports RazorSharp (*.cshtml files), we can now create such CSV export page just like this:
In the previous version of TM adding this feature would required a number of server-side+GUI code changes, or the use of ASPX pages (which I specifically didn't want to use).
But since 3.3 supports RazorSharp (*.cshtml files), we can now create such CSV export page just like this:
Labels:
RazorSharp,
TeamMentor
Writing RazorSharp script to import TeamMentor users
Now that we are in the final stages of publishing TM 3.3. out of the door, one of the tasks I had to do is to import the old user schema into the new format.
To to that I wrote this RazorSharp script (which can be coded in a REPL like environment) to do the import:
To to that I wrote this RazorSharp script (which can be coded in a REPL like environment) to do the import:
Labels:
RazorSharp,
TeamMentor
Thursday, 14 March 2013
Catching an Exception in RazorSharp
Here is a cshtml RazorSharp page that shows how to catch an exception (note the multiple mixes of code and HTML)
Labels:
RazorSharp
Subscribe to:
Posts (Atom)