Any news on a new Webinterface?
The old webinterface was indeed split up into 2 parts: One part written in C# as a MP plugin, which kinda "mapped" the MP functions to expose them via a webservice and a frontend written in php. The .net plugin was necessary as php alone can't communicate with MP and tell for example that the DB was updated. The php part is not using Mambo at all, that's just the CMS for our MPW homepage.
Your suggestion is not really good, as we would loose a big advantage of the TV server: database independence.
Hmm, didn't do test with "newer" MP versions like 0.2.3 so I can't tell the current status. However in the past the problem occured, when MP was idle during and after adding the recording. Then it simply didn't realize the changed DB. When you use MP (for example entering the TV section) it did also notice changes in the past.I did some testing yesterday with scheduling recordings directly via sql into the database, and the results was good. I was able to both cancel recordings issued by MP, and insert new recordings. It seems that MP did as it was told without communicating via C#. Maybe I was just lucky?
TV Server is a totally different story, as so much has changed... Didn't test it there.Tested on MP 0.2.3 so things may change when using the new tv-server.
Maybe the pre- and post-recording times?MP had some problems with recording 15-20 minutes when it was suppose to record only 10.
Sorry, didn't notice the () Though you address one problem yourself. Even though the SQL queries don't need to be changed, you still needed to write different code for things like connecting to the different dbs etc. And for the persitence framework: MP already uses the gentle.net framework in TV server.I had parentheses around "my" as I prefer Mysql. Simple inserts and updates will work in any database so I don't see this is a problem. In places where special optimizations are required database independence may be a problem, but I find it hard to believe this is needed in this small project.
By using a persistentobject approach multiple database support will come out of the box any way. Getting PHP to work against M$ Sql is however another story
Sorry, don't know about that.Is it possible to turn on query logging in MP without recompiling anything? Since it is SQLite this is a bit tricky to do this othervice.
Thanks for the response
I did some testing yesterday with scheduling recordings directly via sql into the database, and the results was good. I was able to both cancel recordings issued by MP, and insert new recordings. It seems that MP did as it was told without communicating via C#. Maybe I was just lucky?
However(!), the idea is to definitely move away from stuff like this. I've been advocating a separate scheduling subsystem, behind a well defined service API. So writing directly into the database is an absolute "not-done" The proper way to register a schedule then is to go through the proper channels, talk to the scheduling service and ask it to do this for you.
The advantages are obvious: it is simple, and no matter what changes underneath (the database, some code, whatever), it will always remain working for you, the user of the service