Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
on update function in plugin.cfc question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Glyn Jackson  
View profile  
 More options Jan 16 2011, 4:13 pm
From: Glyn Jackson <cfspa...@gmail.com>
Date: Sun, 16 Jan 2011 13:13:39 -0800 (PST)
Local: Sun, Jan 16 2011 4:13 pm
Subject: on update function in plugin.cfc question
I noticed something when working with the plugin.cfc today.

It seems the 'on update' function from the plugin.cfc only gets called
when adding a new zip file. However if you edit a plug-in and change a
setting, the word  'update' is confusion. It makes me think the 'on
update' function would be called again, but not the case.

This does not give Slatwall issues when actually updating or
installing etc, however if a user decides to change their ORM
preference when not uploading a zip, it will not get executed, becuase
the 'on update' function is not called.

My question is.....

Was this behaviour BR decided on, or a bug? Personally I think this
function should get called on any update of the plugin, even if it's
just an update to a setting in the config.xml by a user. Otherwise the
plugin does not have a chance to respond to any changes the user has
made!

Interested to hear others opinions on this.

Glyn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Garcia  
View profile  
 More options Jan 16 2011, 4:27 pm
From: Tony Garcia <t...@dreamlabsmedia.com>
Date: Sun, 16 Jan 2011 16:27:10 -0500
Local: Sun, Jan 16 2011 4:27 pm
Subject: Re: on update function in plugin.cfc question
I think this is by design. You don't actually have to update or install
with a new zip for the update to fire. If you go to the edit plugin
screen (the screen where you can upload an updated zip) and just hit the
"Update" button at the bottom (without even uploading a new zip), the
update() function will fire. I learned this last year when I went to a
Mura training and I've gotten into the habit of doing this whenever I
changed any plugin config settings.

-Tony

On 1/16/11 4:13 PM, Glyn Jackson wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glyn Jackson  
View profile  
 More options Jan 16 2011, 4:38 pm
From: Glyn Jackson <cfspa...@gmail.com>
Date: Sun, 16 Jan 2011 13:38:38 -0800 (PST)
Local: Sun, Jan 16 2011 4:38 pm
Subject: Re: on update function in plugin.cfc question

> If you go to the edit plugin screen (the screen where you can upload an updated zip) and just hit the "Update" button at the bottom (without even uploading a new zip), the update() function will fire.

This is what I am staying, update does not seem to fire when doing
this. I think it should. If you edit the plugin.cfc for Slatwall add a
cfabort to the update event you will see if only gets executed when
adding a zip and then updating. if you were to just update nothing
happends for me.

If this is not the case for you then something else must be wrong for
me.

On Jan 16, 9:27 pm, Tony Garcia <t...@dreamlabsmedia.com> wrote:

> I think this is by design. You don't actually have to update or install
> with a new zip for the update to fire. If you go to the edit plugin
> screen (the screen where you can upload an updated zip) and just hit the
> "Update" button at the bottom (without even uploading a new zip), the
> update() function will fire. I learned this last year when I went to a;> Mura

 training and I've gotten into the habit of doing this whenever I


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glyn Jackson  
View profile  
 More options Jan 16 2011, 5:03 pm
From: Glyn Jackson <cfspa...@gmail.com>
Date: Sun, 16 Jan 2011 14:03:39 -0800 (PST)
Local: Sun, Jan 16 2011 5:03 pm
Subject: Re: on update function in plugin.cfc question
tested again by adding a var that does not exist into the update
function of plugin.cfc. reloaded the app edited the plugin then
clicked update. I did not get an error. this would make my think the
update function did not run. do the samething with a zip file and on
update you get an error (as it should). to me it looks like it does
not get run on update without adding a zip file. it this not the same
for you?

On Jan 16, 9:38 pm, Glyn Jackson <cfspa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Moser  
View profile  
 More options Jan 17 2011, 12:03 pm
From: Greg Moser <gregjmo...@gmail.com>
Date: Mon, 17 Jan 2011 09:03:05 -0800 (PST)
Local: Mon, Jan 17 2011 12:03 pm
Subject: Re: on update function in plugin.cfc question

Hey Glyn,

I also just verified that this was the case.  I added writeDump(request);
abort; to the update function, and it only worked when uploading a new zip.
 Initially I thought that this issue was because the plugin.cfc got cached
in the application scope until you uploaded a new zip file, and that was why
your error wasn't showing up because it was calling the function out of
cache before the var was set.  However I did a test where in the update
function I put:

application.timetest = now();

and then dumped the application scope in my default view.  Even after this
new plugin.cfc got cached (or didn't) if i just hit the update button it is
not updating the application.timetest varaible.

That being said, I originally thought that it worked the way that tony said.
 Maybe the guys at BR changed this for some reason.

-Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony G  
View profile  
 More options Jan 17 2011, 1:22 pm
From: Tony G <t...@dreamlabsmedia.com>
Date: Mon, 17 Jan 2011 10:22:55 -0800 (PST)
Local: Mon, Jan 17 2011 1:22 pm
Subject: Re: on update function in plugin.cfc question
Yeah, this is news to me. Might be worthwhile to ask the BR guys about
this.

-Tony

On Jan 17, 12:03 pm, Greg Moser <gregjmo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glyn Jackson  
View profile  
 More options Jan 18 2011, 4:37 am
From: Glyn Jackson <cfspa...@gmail.com>
Date: Tue, 18 Jan 2011 01:37:33 -0800 (PST)
Local: Tues, Jan 18 2011 4:37 am
Subject: Re: on update function in plugin.cfc question
Thanks for taking a look Tony and Greg. It does give us a few problems
in the furture. Do BR have a bug reporting system?

On Jan 17, 6:22 pm, Tony G <t...@dreamlabsmedia.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Moser  
View profile  
 More options Jan 18 2011, 10:06 am
From: Greg Moser <gregjmo...@gmail.com>
Date: Tue, 18 Jan 2011 07:06:32 -0800 (PST)
Local: Tues, Jan 18 2011 10:06 am
Subject: Re: on update function in plugin.cfc question

This is their trac site.  http://trac.blueriver.com/mura/

-Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glyn Jackson  
View profile  
 More options Jan 18 2011, 12:10 pm
From: Glyn Jackson <cfspa...@gmail.com>
Date: Tue, 18 Jan 2011 09:10:38 -0800 (PST)
Local: Tues, Jan 18 2011 12:10 pm
Subject: Re: on update function in plugin.cfc question
cool, submitted.

I just posted what Tony said and stated that it didn't work that way.
Will see what the response is.

http://trac.blueriver.com/mura/ticket/14380


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glyn Jackson  
View profile  
 More options Jan 23 2011, 5:18 pm
From: Glyn Jackson <cfspa...@gmail.com>
Date: Sun, 23 Jan 2011 14:18:53 -0800 (PST)
Local: Sun, Jan 23 2011 5:18 pm
Subject: Re: on update function in plugin.cfc question
Cool, looks like BR will be resolving this issue in the next update to
5.4!

ticket link: http://trac.blueriver.com/mura/ticket/14380

quote:

    * status changed from new to closed
    * resolution set to fixed

The behavior will be changed to fire the plugin.update() method every
time the settings are updated in 5.4


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Moser  
View profile  
 More options Jan 24 2011, 12:49 pm
From: Greg Moser <gregjmo...@gmail.com>
Date: Mon, 24 Jan 2011 09:49:53 -0800 (PST)
Local: Mon, Jan 24 2011 12:49 pm
Subject: Re: on update function in plugin.cfc question

Great, thanks for following up on this Glyn.

-Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »