On Wed, Apr 16, 2008 at 11:17 AM, Scott Sproule
<[EMAIL PROTECTED]> wrote:
>
> > Scotts-Computer:~/Documents/ror/contrib scott$ diff
> process/app/controllers/definition_controller.rb
> openwferu-densha-0.9.17/app/controllers/definition_controller.rb
> > 55,56c55
> > < @defurl = params[:defurl]
> >
> > < puts "lp id #{lp_id} defurl [EMAIL PROTECTED]"
> > ---
> > >
> > 58,60c57
> >
> > < lp =LaunchPermission.find_by_id lp_id
> > < @defurl=lp.url
> >
> > < lp
> > ---
> > > LaunchPermission.find_by_id lp_id
Hello Scott,
welcome on this mailing list. Thanks for detailing your patch.
I guess I have fixed this issue already :
http://openwferu.rubyforge.org/svn/trunk/densha/app/controllers/definition_controller.rb
---8<---
sonanda:densha mettraux$ svn diff -r 1612
app/controllers/definition_controller.rb
Index: app/controllers/definition_controller.rb
===================================================================
--- app/controllers/definition_controller.rb (revision 1612)
+++ app/controllers/definition_controller.rb (working copy)
@@ -51,18 +51,20 @@
def index
lp_id = params[:id]
- defurl = params[:defurl]
+ @defurl = params[:defurl]
@lp = if lp_id
LaunchPermission.find_by_id lp_id
else
- LaunchPermission.find_by_real_url defurl
+ LaunchPermission.find_by_real_url @defurl
# will return the first perm with that URL, not the one for this
# user, but it doesn't matter, we just need the load_process_definition
# method.
end
- return error_redirect("couldn't find process at #{lp_id} / #{defurl}") \
+ @defurl = @lp.real_url
+
+ return error_redirect("couldn't find process at #{lp_id} / [EMAIL
PROTECTED]") \
unless @lp
begin
--->8---
The fix will be part of the upcoming release.
I will move the source code of densha to http://github.com/jmettraux very soon.
Thans for you feeback, have a nice day,
--
John Mettraux -///- http://jmettraux.openwfe.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---