plugin needs to store data in sql - how?

Development-related discussion, including bundled plugins
macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

plugin needs to store data in sql - how?

Postby macfly » 09 Apr 2013, 18:23

hi all,

I'm working on a plugin, that needs a configuration per feed. I would include a checkbox in classes/pref/feeds.php, but where should the data be stored? Am i permitted to use "ttrss_feed.view_settings"? i did not find any reference to this column. Or how is the policy with new columns and releases from fox?

Or would be best practice to create a new table (ttrss_feed_view with columns id, owner_uid, view_option) ?


With this setting (and the plugin, Work in Progress) one can configure if a feed should automatically be displayed with the full content of the article-url.

thanks for feeback,
macfly.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: plugin needs to store data in sql - how?

Postby fox » 09 Apr 2013, 19:05

Don't rely on tt-rss base schema stuff for plugin needs it might suddenly become used/unused/dropped in the future.

Nobody stops from writing an additional schema script fit for your plugin and asking users to install that.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: plugin needs to store data in sql - how?

Postby macfly » 10 Apr 2013, 11:21

thanks for feedback!

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: plugin needs to store data in sql - how?

Postby macfly » 10 Apr 2013, 16:24

fox, another question regarding policies:

am i allowed to modify your existing embed_original plugin (to add features like autofetch a full (mobilized) article) or do i have to write a spinoff-plugin (lets say auto_embed_content) ?

i'm just asking because i'm new to this project and new to git ...

regards,
macfly

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: plugin needs to store data in sql - how?

Postby fox » 10 Apr 2013, 16:26

In this case, I think it would be better to make a separate plugin.

>am i allowed to modify

Google GPL?

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: plugin needs to store data in sql - how?

Postby macfly » 10 Apr 2013, 16:58

yes, of course i am allowed (by law, GPL) - i was refering to you as the project owner .. :-)


Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests