Dragonfly 0.60 Released!

A web framework in newLISP
Locked
itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Dragonfly 0.60 Released!

Post by itistoday »

Hey Dragonfly Fans - A New Year's present for you!

Dragonfly 0.60 Is Now Available For Download!

Check out the complete list of changes, highlights include:
  • Dragonfly DB Interface included as a plugin
  • Objective newLISP included as part of the core
  • New handy DF_SELF, DF_PAGE and DF_SELF_DIR global variables
  • New route Route.CGI! (inactive by default)
  • New file path manipulation functions: file-ext del-ext basename dirname
  • DF:viewname removed, use DF_SELF or DF_PAGE + new path functions as replacements
  • Request:urlencode/decode functions now properly handle UTF8 characters (renamed to utf8-urlencode/utf8-urldecode)
If you've written your own routes, be sure to update them to use the new SET_DF_SELF function as described in the updated guide.

Enjoy, and check out the updated user guide, which now contains several new sections and now comes with syntax highlighting*! :-)

* If you don't see it, refresh the site to clear your cache.
Get your Objective newLISP groove on.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Dragonfly 0.60 Released!

Post by cormullion »

Cool - I will let you know how the upgrade goes over the next few days... :)

Are you using the ObjNL anywhere, or is it just there for the DB interface?

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Re: Dragonfly 0.60 Released!

Post by itistoday »

cormullion wrote:Cool - I will let you know how the upgrade goes over the next few days... :)

Are you using the ObjNL anywhere, or is it just there for the DB interface?
It's just there for the DB interface, and to allow you to easily implement object-oriented code in your Dragonfly web apps.
Get your Objective newLISP groove on.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Dragonfly 0.60 Released!

Post by cormullion »

Upgrade seemed to go well - I think I found most of the files that needed replacing. I want to get round to ObjNL some time, but at least it's now in place.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Dragonfly 0.60 Released!

Post by cormullion »

There's something odd going on on my computer:

1 Download Dragonfly 0.60 from rundragonfly.
2 cd to example site.
3 Run server ./newlispServer
4 go to localhost:8080. Everything is OK.
5 Stop server in terminal.
6 Restart server.
7 go to localhost:8080. Error:

ERR: missing argument in function set
called from user defined function load-once
called from user defined function load-files-in-dir

8 quit and restart Safari and server
9 Everything is OK again.

I'm using Safari/Snow Leopard 10.6.2/. I'm trying to investigate this weirdness, but any clues as to where to look would be helpful...

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Re: Dragonfly 0.60 Released!

Post by itistoday »

That's odd, I've tried but I haven't been able to reproduce this. Try re-downloading a fresh copy perhaps?

I'm not really sure what to suggest other than that. If anyone else is seeing this let us know!
Get your Objective newLISP groove on.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Dragonfly 0.60 Released!

Post by cormullion »

Tried with a new download, same thing. Since the only thing I'm doing is Ctrl-C -ing the server process, perhaps the problem's related to that. But I don't understand the error

"ERR: missing argument in function set
called from user defined function load-once
called from user defined function load-files-in-dir"

- like there's some file/directory error somewhere...?

wait...

Ah - this only happens with Safari!! Opera and Firefox are fine. Only Safari does it every time...

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Re: Dragonfly 0.60 Released!

Post by itistoday »

cormullion wrote:Ah - this only happens with Safari!! Opera and Firefox are fine. Only Safari does it every time...
I'm still not able to reproduce this unfortunately, even after clearing Safari's cache. :-(
Get your Objective newLISP groove on.

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Dragonfly 0.60 Released!

Post by cormullion »

After a bit more investigation, it seems that it's the second and subsequent pages which generate that error; the first one I load loads OK. I don't need to restart the server to see the error. No problems in Firefox, Opera, or Chrome. Conclusion - a weird Safari bug only on my machine that affects only locally-hosted Dragonfly sites... Weird!

Hexs
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Post by Hexs »

Thanks for this interesting thing. But when I begin use it, I don't understand, how protect my configuration files without Apache. My .htaccess contains:

Code: Select all

<Files ~ "\.lsp$">
Order deny,allow
Deny from all
</Files>
but when I request sitename/dragonfly-framework/config.lsp for example...
I see it :(

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Re: Dragonfly 0.60 Released!

Post by itistoday »

That's odd, that should protect it. Is it possible that your .htaccess file isn't being read in at all by Apache?

Try adding some obviously broken stuff and see if that causes 500 Internal Server errors.
Get your Objective newLISP groove on.

Hexs
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Post by Hexs »

If I don't use Apache, how I can make .lsp (or other) files unreadable from stangers?

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Re: Dragonfly 0.60 Released!

Post by itistoday »

Hexs wrote:If I don't use Apache, how I can make .lsp (or other) files unreadable from stangers?
You'll have to consult the documentation for whatever server you're using.
Get your Objective newLISP groove on.

Hexs
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Post by Hexs »

You'll have to consult the documentation for whatever server you're using.
Nothing :). Dragonfly only.

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Re: Dragonfly 0.60 Released!

Post by itistoday »

Hexs wrote:Nothing :). Dragonfly only.
Dragonfly isn't a server though. Dragonfly is a web framework. It runs on top of a server. For example, it could run on top of the newLISP server, which may be what you're referring to, however the newLISP web server should never be used to host a real live site, it's just useful for testing purposes.
Get your Objective newLISP groove on.

Hexs
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Post by Hexs »

Thank you for the explanation. But I still try to test it on a small project.

Locked