Dragonfly 0.60 Released!

A web framework in newLISP

Dragonfly 0.60 Released!

Postby itistoday » Wed Jan 06, 2010 4:37 pm

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby cormullion » Wed Jan 06, 2010 10:57 pm

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?
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly 0.60 Released!

Postby itistoday » Wed Jan 06, 2010 11:17 pm

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby cormullion » Thu Jan 07, 2010 10:52 pm

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: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly 0.60 Released!

Postby cormullion » Mon Jan 11, 2010 3:57 pm

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...
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly 0.60 Released!

Postby itistoday » Mon Jan 11, 2010 7:45 pm

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby cormullion » Mon Jan 11, 2010 9:35 pm

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...
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly 0.60 Released!

Postby itistoday » Mon Jan 11, 2010 9:46 pm

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby cormullion » Mon Jan 11, 2010 11:22 pm

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!
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly 0.60 Released!

Postby Hexs » Thu Feb 25, 2010 12:14 pm

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 :(
Hexs
 
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Postby itistoday » Thu Feb 25, 2010 7:24 pm

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby Hexs » Fri Feb 26, 2010 5:32 am

If I don't use Apache, how I can make .lsp (or other) files unreadable from stangers?
Hexs
 
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Postby itistoday » Fri Feb 26, 2010 5:39 am

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby Hexs » Fri Feb 26, 2010 5:41 am

You'll have to consult the documentation for whatever server you're using.


Nothing :). Dragonfly only.
Hexs
 
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm

Re: Dragonfly 0.60 Released!

Postby itistoday » Fri Feb 26, 2010 6:01 am

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.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.60 Released!

Postby Hexs » Fri Feb 26, 2010 1:45 pm

Thank you for the explanation. But I still try to test it on a small project.
Hexs
 
Posts: 4
Joined: Thu Feb 25, 2010 12:02 pm


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron